Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Drill >> mail # dev >> [07/12] DRILL-233: Move protobuf IDLs to a separate module and check in the compile Java sources


Copy link to this message
-
[07/12] DRILL-233: Move protobuf IDLs to a separate module and check in the compile Java sources
http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/07c6c21d/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
----------------------------------------------------------------------
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
new file mode 100644
index 0000000..2ec2683
--- /dev/null
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/ExecProtos.java
@@ -0,0 +1,7095 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: ExecutionProtos.proto
+
+package org.apache.drill.exec.proto;
+
+public final class ExecProtos {
+  private ExecProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+  }
+  /**
+   * Protobuf enum {@code exec.bit.RpcType}
+   *
+   * <pre>
+   *//// UserToBit RPC ///////
+   * </pre>
+   */
+  public enum RpcType
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>HANDSHAKE = 0;</code>
+     */
+    HANDSHAKE(0, 0),
+    /**
+     * <code>ACK = 1;</code>
+     */
+    ACK(1, 1),
+    /**
+     * <code>GOODBYE = 2;</code>
+     */
+    GOODBYE(2, 2),
+    /**
+     * <code>REQ_INIATILIZE_FRAGMENT = 3;</code>
+     *
+     * <pre>
+     * bit requests
+     * </pre>
+     */
+    REQ_INIATILIZE_FRAGMENT(3, 3),
+    /**
+     * <code>REQ_RECORD_BATCH = 4;</code>
+     *
+     * <pre>
+     * send record batch overview, returns Ack
+     * </pre>
+     */
+    REQ_RECORD_BATCH(4, 4),
+    /**
+     * <code>REQ_CANCEL_FRAGMENT = 6;</code>
+     *
+     * <pre>
+     * send a cancellation message for a fragment, returns Ack
+     * </pre>
+     */
+    REQ_CANCEL_FRAGMENT(5, 6),
+    /**
+     * <code>REQ_FRAGMENT_STATUS = 7;</code>
+     *
+     * <pre>
+     * get a fragment status, returns FragmentStatus
+     * </pre>
+     */
+    REQ_FRAGMENT_STATUS(6, 7),
+    /**
+     * <code>REQ_BIT_STATUS = 8;</code>
+     *
+     * <pre>
+     * get bit status.
+     * </pre>
+     */
+    REQ_BIT_STATUS(7, 8),
+    /**
+     * <code>RESP_FRAGMENT_HANDLE = 9;</code>
+     *
+     * <pre>
+     * bit responses
+     * </pre>
+     */
+    RESP_FRAGMENT_HANDLE(8, 9),
+    /**
+     * <code>RESP_FRAGMENT_STATUS = 10;</code>
+     */
+    RESP_FRAGMENT_STATUS(9, 10),
+    /**
+     * <code>RESP_BIT_STATUS = 11;</code>
+     */
+    RESP_BIT_STATUS(10, 11),
+    ;
+
+    /**
+     * <code>HANDSHAKE = 0;</code>
+     */
+    public static final int HANDSHAKE_VALUE = 0;
+    /**
+     * <code>ACK = 1;</code>
+     */
+    public static final int ACK_VALUE = 1;
+    /**
+     * <code>GOODBYE = 2;</code>
+     */
+    public static final int GOODBYE_VALUE = 2;
+    /**
+     * <code>REQ_INIATILIZE_FRAGMENT = 3;</code>
+     *
+     * <pre>
+     * bit requests
+     * </pre>
+     */
+    public static final int REQ_INIATILIZE_FRAGMENT_VALUE = 3;
+    /**
+     * <code>REQ_RECORD_BATCH = 4;</code>
+     *
+     * <pre>
+     * send record batch overview, returns Ack
+     * </pre>
+     */
+    public static final int REQ_RECORD_BATCH_VALUE = 4;
+    /**
+     * <code>REQ_CANCEL_FRAGMENT = 6;</code>
+     *
+     * <pre>
+     * send a cancellation message for a fragment, returns Ack
+     * </pre>
+     */
+    public static final int REQ_CANCEL_FRAGMENT_VALUE = 6;
+    /**
+     * <code>REQ_FRAGMENT_STATUS = 7;</code>
+     *
+     * <pre>
+     * get a fragment status, returns FragmentStatus
+     * </pre>
+     */
+    public static final int REQ_FRAGMENT_STATUS_VALUE = 7;
+    /**
+     * <code>REQ_BIT_STATUS = 8;</code>
+     *
+     * <pre>
+     * get bit status.
+     * </pre>
+     */
+    public static final int REQ_BIT_STATUS_VALUE = 8;
+    /**
+     * <code>RESP_FRAGMENT_HANDLE = 9;</code>
+     *
+     * <pre>
+     * bit responses
+     * </pre>
+     */
+    public static final int RESP_FRAGMENT_HANDLE_VALUE = 9;
+    /**
+     * <code>RESP_FRAGMENT_STATUS = 10;</code>
+     */
+    public static final int RESP_FRAGMENT_STATUS_VALUE = 10;
+    /**
+     * <code>RESP_BIT_STATUS = 11;</code>
+     */
+    public static final int RESP_BIT_STATUS_VALUE = 11;
+
+
+    public final int getNumber() { return value; }
+
+    public static RpcType valueOf(int value) {
+      switch (value) {
+        case 0: return HANDSHAKE;
+        case 1: return ACK;
+        case 2: return GOODBYE;
+        case 3: return REQ_INIATILIZE_FRAGMENT;
+        case 4: return REQ_RECORD_BATCH;
+        case 6: return REQ_CANCEL_FRAGMENT;
+        case 7: return REQ_FRAGMENT_STATUS;
+        case 8: return REQ_BIT_STATUS;
+        case 9: return RESP_FRAGMENT_HANDLE;
+        case 10: return RESP_FRAGMENT_STATUS;
+        case 11: return RESP_BIT_STATUS;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<RpcType>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<RpcType>
+        internalValueMap +          new com.google.protobuf.Internal.EnumLiteMap<RpcType>() {
+            public RpcType findValueByNumber(int n