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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setup
(ColumnDef colDef, ScalarWriter colLoader) void
setValue()
-
Constructor Details
-
StringGen
public StringGen()
-
-
Method Details
-
setup
- Specified by:
setup
in interfaceFieldGen
- Overrides:
setup
in classAbstractFieldGen
-
setValue
public void setValue()
-