Package org.apache.drill.exec.store.mock
Class MockTableDef.MockColumn
java.lang.Object
org.apache.drill.exec.store.mock.MockTableDef.MockColumn
- Enclosing class:
- MockTableDef
Meta-data description of the columns we wish to create during a simulated
scan.
-
Field Summary
Modifier and TypeFieldDescriptionThe scan can request to use a specific data generator class.Column type given as a Drill minor type (that is, a type without the extra information such as cardinality, width, etc.Some tests want to create a very wide row with many columns. -
Constructor Summary
ConstructorDescriptionMockColumn
(String name, TypeProtos.MinorType minorType, TypeProtos.DataMode mode, Integer width, Integer precision, Integer scale, String generator, Integer repeat, Map<String, Object> properties) -
Method Summary
-
Field Details
-
minorType
Column type given as a Drill minor type (that is, a type without the extra information such as cardinality, width, etc. -
name
-
mode
-
width
-
precision
-
scale
-
generator
The scan can request to use a specific data generator class. The name of that class appears here. The name can be a simple class name, if that class resides in this Java package. Or, it can be a fully qualified name of a class that resides elsewhere. If null, the default generator for the data type is used. -
repeat
Some tests want to create a very wide row with many columns. This field eases that task: specify a value other than 1 and the data source will generate that many copies of the column, each with separately generated random values. For example, to create 20 copies of field, "foo", set repeat to 20 and the actual generated batches will contain fields foo1, foo2, ... foo20. -
properties
-
-
Constructor Details
-
MockColumn
-
-
Method Details