Class MockTableDef.MockColumn

java.lang.Object
org.apache.drill.exec.store.mock.MockTableDef.MockColumn
Enclosing class:
MockTableDef

public static class MockTableDef.MockColumn extends Object
Meta-data description of the columns we wish to create during a simulated scan.
  • Field Details

    • minorType

      public TypeProtos.MinorType minorType
      Column type given as a Drill minor type (that is, a type without the extra information such as cardinality, width, etc.
    • name

      public String name
    • mode

      public TypeProtos.DataMode mode
    • width

      public Integer width
    • precision

      public Integer precision
    • scale

      public Integer scale
    • generator

      public String 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

      public Integer 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

      public Map<String,Object> properties
  • Constructor Details

  • Method Details