Package org.apache.drill.exec.store.mock
Class StringGen
java.lang.Object
org.apache.drill.exec.store.mock.AbstractFieldGen
org.apache.drill.exec.store.mock.StringGen
- All Implemented Interfaces:
FieldGen
Generates a mock string field of the given length. Fields are composed
of upper case letters uniformly distributed from A to Z, and repeated
or the length of the field. Exampled for a 4-character field:
DDDD, MMMM, AAAA, RRRR, ...
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.mock.AbstractFieldGen
colDef, colWriter, rand -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetup(ColumnDef colDef, ScalarWriter colLoader) voidsetValue()
-
Constructor Details
-
StringGen
public StringGen()
-
-
Method Details
-
setup
- Specified by:
setupin interfaceFieldGen- Overrides:
setupin classAbstractFieldGen
-
setValue
public void setValue()
-