Package io.dingodb.common
Interface Common.SchemaOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Common.Schema,Common.Schema.Builder
- Enclosing class:
- Common
public static interface Common.SchemaOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()index position starts from 0booleangetIsKey()Is primary keybooleanis allowed to be emptygetName()field name only for scala , others invalidcom.google.protobuf.ByteStringfield name only for scala , others invalidgetType()type of datainttype of dataMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTypeValue
int getTypeValue()type of data
.dingodb.pb.common.Schema.Type type = 1;- Returns:
- The enum numeric value on the wire for type.
-
getType
Common.Schema.Type getType()type of data
.dingodb.pb.common.Schema.Type type = 1;- Returns:
- The type.
-
getIsKey
boolean getIsKey()Is primary key
bool is_key = 2;- Returns:
- The isKey.
-
getIsNullable
boolean getIsNullable()is allowed to be empty
bool is_nullable = 3;- Returns:
- The isNullable.
-
getIndex
int getIndex()index position starts from 0
int32 index = 4;- Returns:
- The index.
-
getName
String getName()field name only for scala , others invalid
string name = 5;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()field name only for scala , others invalid
string name = 5;- Returns:
- The bytes for name.
-