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

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


Copy link to this message
-
[05/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/SchemaDefProtos.java
----------------------------------------------------------------------
diff --git a/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java b/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java
new file mode 100644
index 0000000..0093789
--- /dev/null
+++ b/protocol/src/main/java/org/apache/drill/exec/proto/SchemaDefProtos.java
@@ -0,0 +1,1907 @@
+/**
+ * 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: SchemaDef.proto
+
+package org.apache.drill.exec.proto;
+
+public final class SchemaDefProtos {
+  private SchemaDefProtos() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+  }
+  /**
+   * Protobuf enum {@code exec.ValueMode}
+   */
+  public enum ValueMode
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * <code>VALUE_VECTOR = 0;</code>
+     */
+    VALUE_VECTOR(0, 0),
+    /**
+     * <code>RLE = 1;</code>
+     */
+    RLE(1, 1),
+    /**
+     * <code>DICT = 2;</code>
+     */
+    DICT(2, 2),
+    ;
+
+    /**
+     * <code>VALUE_VECTOR = 0;</code>
+     */
+    public static final int VALUE_VECTOR_VALUE = 0;
+    /**
+     * <code>RLE = 1;</code>
+     */
+    public static final int RLE_VALUE = 1;
+    /**
+     * <code>DICT = 2;</code>
+     */
+    public static final int DICT_VALUE = 2;
+
+
+    public final int getNumber() { return value; }
+
+    public static ValueMode valueOf(int value) {
+      switch (value) {
+        case 0: return VALUE_VECTOR;
+        case 1: return RLE;
+        case 2: return DICT;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap<ValueMode>
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static com.google.protobuf.Internal.EnumLiteMap<ValueMode>
+        internalValueMap +          new com.google.protobuf.Internal.EnumLiteMap<ValueMode>() {
+            public ValueMode findValueByNumber(int number) {
+              return ValueMode.valueOf(number);
+            }
+          };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
+      return getDescriptor().getValues().get(index);
+    }
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
+      return getDescriptor();
+    }
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return org.apache.drill.exec.proto.SchemaDefProtos.getDescriptor().getEnumTypes().get(0);
+    }
+
+    private static final ValueMode[] VALUES = values();
+
+    public static ValueMode valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      if (desc.getType() != getDescriptor()) {
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
+      }
+      return VALUES[desc.getIndex()];
+    }
+
+    private final int index;
+    private final int value;
+
+    private ValueMode(int index, int value) {
+      this.index = index;
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:exec.ValueMode)
+  }
+
+  public interface NamePartOrBuilder
+      extends com.google.protobuf.MessageOrBuilder {
+
+    // optional .exec.NamePart.Type type = 1;
+    /**
+     * <code>optional .exec.NamePart.Type type = 1;</code>
+     */
+    boolean hasType();
+    /**
+     * <code>optional .exec.NamePart.Type type = 1;</code>
+     */
+    org.apache.drill.exec.proto.SchemaDefProtos.NamePart.Type getType();
+
+    // optional string name = 2;
+    /**
+     * <code>optional string name = 2;</code>
+     *
+     * <pre>
+     * only required if this is a named type.
+     * </pre>
+     */
+    boolean hasName();
+    /**
+     * <code>optional string name = 2;</code>
+     *
+     * <pre>
+     * only required if this is a named type.
+     * </pre>
+     */
+    java.lang.String getName();
+    /**
+     * <code>optional string name = 2;</code>
+     *
+     * <pre>
+     * only required if this is a named type.
+     * </pre>
+     */
+    com.google.protobuf.ByteString
+        getNameBytes();
+  }
+  /**
+   * Protobuf type {@code exec.NamePart}
+   */
+  public static final class NamePart extends
+      com.google.protobuf.GeneratedMessage
+      implements NamePartOrBuilder {
+    // Use NamePart.newBuilder() to construct.
+    private NamePart(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
+      super(builder);
+      this.unknownFields = builder.getUnknownFields();
+    }
+    private NamePart(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
+
+    private static final NamePart defaultInstance;
+    public static NamePart getDefaultInstance() {
+      return defaultInstance;
+    }
+
+    public NamePart getDefaultInstanceForType() {
+      return defaultInstance;
+    }
+
+    private final com.google.protobuf.UnknownFieldSet unknownFields;
+