Uses of Enum
org.apache.drill.common.types.TypeProtos.DataMode
Package
Description
Logical function definitions.
Logical data types.
Drill expression materialization and evaluation facilities.
Provides a fluent schema builder.
Defines a mock data source which generates dummy test data for use
in testing.
-
Uses of TypeProtos.DataMode in org.apache.drill.common.expression.fn
Modifier and TypeMethodDescriptionstatic String
FunctionReplacementUtils.getReplacingFunction
(String functionName, TypeProtos.DataMode dataMode, TypeProtos.MinorType inputType) Get a replacing function for the original function, based on the specified data mode -
Uses of TypeProtos.DataMode in org.apache.drill.common.types
Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
TypeProtos.DataMode.forNumber
(int value) TypeProtos.MajorType.Builder.getMode()
optional .common.DataMode mode = 2;
TypeProtos.MajorType.getMode()
optional .common.DataMode mode = 2;
TypeProtos.MajorTypeOrBuilder.getMode()
optional .common.DataMode mode = 2;
static TypeProtos.DataMode
TypeProtos.DataMode.valueOf
(int value) Deprecated.static TypeProtos.DataMode
TypeProtos.DataMode.valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static TypeProtos.DataMode
Returns the enum constant of this type with the specified name.static TypeProtos.DataMode[]
TypeProtos.DataMode.values()
Returns an array containing the constants of this enum type, in the order they are declared.Modifier and TypeMethodDescriptionstatic com.google.protobuf.Internal.EnumLiteMap<TypeProtos.DataMode>
TypeProtos.DataMode.internalGetValueMap()
Modifier and TypeMethodDescriptionstatic TypeProtos.MajorType
Types.getMajorTypeFromName
(String typeName, TypeProtos.DataMode mode) static TypeProtos.MajorType
Types.overrideMode
(TypeProtos.MajorType originalMajorType, TypeProtos.DataMode overrideMode) TypeProtos.MajorType.Builder.setMode
(TypeProtos.DataMode value) optional .common.DataMode mode = 2;
static TypeProtos.MajorType
Types.withMode
(TypeProtos.MinorType type, TypeProtos.DataMode mode) static TypeProtos.MajorType
Types.withPrecision
(TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision) Builds major type using given minor type, data mode and precision.static TypeProtos.MajorType
Types.withPrecisionAndScale
(TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision, int scale) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.expr
Modifier and TypeMethodDescriptionprotected static String
BasicTypeHelper.buildErrorMessage
(String operation, TypeProtos.MinorType type, TypeProtos.DataMode mode) static com.sun.codemodel.JType
TypeHelper.getComplexHolderType
(com.sun.codemodel.JCodeModel model, TypeProtos.MinorType type, TypeProtos.DataMode mode) static Class<?>
BasicTypeHelper.getHolderReaderImpl
(TypeProtos.MinorType type, TypeProtos.DataMode mode) static com.sun.codemodel.JType
TypeHelper.getHolderType
(com.sun.codemodel.JCodeModel model, TypeProtos.MinorType type, TypeProtos.DataMode mode) static Class<?>
BasicTypeHelper.getReaderClassName
(TypeProtos.MinorType type, TypeProtos.DataMode mode, boolean isSingularRepeated) static Class<? extends ValueVector>
BasicTypeHelper.getValueVectorClass
(TypeProtos.MinorType type, TypeProtos.DataMode mode) static Class<?>
BasicTypeHelper.getWriterImpl
(TypeProtos.MinorType type, TypeProtos.DataMode mode) static Class<?>
BasicTypeHelper.getWriterInterface
(TypeProtos.MinorType type, TypeProtos.DataMode mode) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.expr.fn
Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
FunctionUtils.getReturnTypeDataMode
(List<LogicalExpression> logicalExpressions, FunctionAttributes attributes) Calculates return type data mode based on give logical expressions. -
Uses of TypeProtos.DataMode in org.apache.drill.exec.expr.fn.impl.hive
Modifier and TypeMethodDescriptionstatic org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector
ObjectInspectorHelper.getDrillObjectInspector
(TypeProtos.DataMode mode, TypeProtos.MinorType minorType, boolean varCharToStringReplacement) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.record
ModifierConstructorDescriptionMajorTypeHolder
(TypeProtos.MinorType minorType, TypeProtos.DataMode mode, Integer width, Integer precision, Integer scale) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.record.metadata
Modifier and TypeMethodDescriptionMapBuilder.add
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) SchemaBuilder.add
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) void
TupleBuilder.add
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) MapBuilder.addDecimal
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision, int scale) SchemaBuilder.addDecimal
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision, int scale) void
TupleBuilder.addDecimal
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision, int scale) static MaterializedField
SchemaBuilder.columnSchema
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) Create a column schema using the "basic three" properties of name, type and cardinality (AKA "data mode.") Use theColumnBuilder
for to set other schema attributes.static AbstractColumnMetadata
AbstractColumnMetadata.createColumnMetadata
(String name, String type, TypeProtos.DataMode mode, Map<String, String> properties) static ColumnMetadata
MetadataUtils.newDecimal
(String name, TypeProtos.DataMode mode, int precision, int scale) static ColumnMetadata
MetadataUtils.newDecimal
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, int precision, int scale) static MapColumnMetadata
MetadataUtils.newMap
(String name, TypeProtos.DataMode dataMode, TupleMetadata schema) static PrimitiveColumnMetadata
MetadataUtils.newScalar
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) static PrimitiveColumnMetadata
MetadataUtils.newScalar
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, boolean schemaForUnknown) static VariantColumnMetadata
MetadataUtils.newVariant
(String name, TypeProtos.DataMode cardinality) ColumnBuilder.setMode
(TypeProtos.DataMode mode) ModifierConstructorDescriptionAbstractColumnMetadata
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) AbstractMapColumnMetadata
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, TupleSchema schema) DictBuilder
(org.apache.drill.exec.record.metadata.SchemaContainer parent, String name, TypeProtos.DataMode mode) DictColumnMetadata
(String name, TypeProtos.DataMode mode) MapBuilder
(String memberName, TypeProtos.DataMode mode) MapBuilder
(org.apache.drill.exec.record.metadata.SchemaContainer parent, String memberName, TypeProtos.DataMode mode) MapColumnMetadata
(String name, TypeProtos.DataMode mode, TupleSchema tupleSchema) PrimitiveColumnMetadata
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) PrimitiveColumnMetadata
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode, boolean forUnknownSchema) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.record.metadata.schema.parser
Modifier and TypeMethodDescriptionstatic ColumnMetadata
SchemaExprParser.parseColumn
(String name, String type, TypeProtos.DataMode mode) Parses given column name, type and mode intoColumnMetadata
instance. -
Uses of TypeProtos.DataMode in org.apache.drill.exec.resolver
Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
TypeCastRules.getLeastRestrictiveDataMode
(TypeProtos.DataMode... dataModes) Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
TypeCastRules.getLeastRestrictiveDataMode
(TypeProtos.DataMode... dataModes) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.easy.json.loader
-
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.hdf5.writers
Modifier and TypeMethodDescriptionWriterSpec.makeWriter
(String name, TypeProtos.MinorType type, TypeProtos.DataMode mode) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.jdbc
ModifierConstructorDescriptionJdbcWriterField
(String fieldName, TypeProtos.MinorType dataType, TypeProtos.DataMode mode) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.mock
ModifierConstructorDescriptionMockColumn
(String name, TypeProtos.MinorType minorType, TypeProtos.DataMode mode, Integer width, Integer precision, Integer scale, String generator, Integer repeat, Map<String, Object> properties) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.parquet
Modifier and TypeMethodDescriptionstatic TypeProtos.DataMode
ParquetReaderUtility.getDataMode
(org.apache.parquet.schema.Type.Repetition repetition) Converts Parquet'sType.Repetition
to Drill'sTypeProtos.DataMode
.Modifier and TypeMethodDescriptionstatic org.apache.parquet.schema.Type.Repetition
ParquetTypeHelper.getRepetitionForDataMode
(TypeProtos.DataMode dataMode) -
Uses of TypeProtos.DataMode in org.apache.drill.exec.store.parquet.columnreaders
Modifier and TypeMethodDescriptionstatic TypeProtos.MajorType
ParquetToDrillTypeConverter.toMajorType
(org.apache.parquet.schema.PrimitiveType.PrimitiveTypeName primitiveTypeName, int length, TypeProtos.DataMode mode, org.apache.parquet.format.SchemaElement schemaElement, OptionManager options)