Package org.apache.drill.common.types
Interface TypeProtos.MajorTypeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TypeProtos.MajorType
,TypeProtos.MajorType.Builder
- Enclosing class:
- TypeProtos
public static interface TypeProtos.MajorTypeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionoptional .common.MinorType minor_type = 1;
getMode()
optional .common.DataMode mode = 2;
int
used for decimal types or as optional length for fixed size valueint
getScale()
used for decimal typesgetSubType
(int index) used by Union typeint
used by Union typeused by Union typeint
used by TimeStamp typeint
getWidth()
optional int32 width = 3;
boolean
optional .common.MinorType minor_type = 1;
boolean
hasMode()
optional .common.DataMode mode = 2;
boolean
used for decimal types or as optional length for fixed size valueboolean
hasScale()
used for decimal typesboolean
used by TimeStamp typeboolean
hasWidth()
optional int32 width = 3;
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasMinorType
boolean hasMinorType()optional .common.MinorType minor_type = 1;
- Returns:
- Whether the minorType field is set.
-
getMinorType
TypeProtos.MinorType getMinorType()optional .common.MinorType minor_type = 1;
- Returns:
- The minorType.
-
hasMode
boolean hasMode()optional .common.DataMode mode = 2;
- Returns:
- Whether the mode field is set.
-
getMode
TypeProtos.DataMode getMode()optional .common.DataMode mode = 2;
- Returns:
- The mode.
-
hasWidth
boolean hasWidth()optional int32 width = 3;
- Returns:
- Whether the width field is set.
-
getWidth
int getWidth()optional int32 width = 3;
- Returns:
- The width.
-
hasPrecision
boolean hasPrecision()used for decimal types or as optional length for fixed size value
optional int32 precision = 4;
- Returns:
- Whether the precision field is set.
-
getPrecision
int getPrecision()used for decimal types or as optional length for fixed size value
optional int32 precision = 4;
- Returns:
- The precision.
-
hasScale
boolean hasScale()used for decimal types
optional int32 scale = 5;
- Returns:
- Whether the scale field is set.
-
getScale
int getScale()used for decimal types
optional int32 scale = 5;
- Returns:
- The scale.
-
hasTimeZone
boolean hasTimeZone()used by TimeStamp type
optional int32 timeZone = 6;
- Returns:
- Whether the timeZone field is set.
-
getTimeZone
int getTimeZone()used by TimeStamp type
optional int32 timeZone = 6;
- Returns:
- The timeZone.
-
getSubTypeList
List<TypeProtos.MinorType> getSubTypeList()used by Union type
repeated .common.MinorType sub_type = 7;
- Returns:
- A list containing the subType.
-
getSubTypeCount
int getSubTypeCount()used by Union type
repeated .common.MinorType sub_type = 7;
- Returns:
- The count of subType.
-
getSubType
used by Union type
repeated .common.MinorType sub_type = 7;
- Parameters:
index
- The index of the element to return.- Returns:
- The subType at the given index.
-