Package org.apache.drill.exec.store.mock
Class DateGen
java.lang.Object
org.apache.drill.exec.store.mock.AbstractFieldGen
org.apache.drill.exec.store.mock.DateGen
- All Implemented Interfaces:
FieldGen
Very simple date value generator that produces ISO dates
uniformly distributed over the last year. ISO format
is: 2016-12-07.
There are many possible date formats; this class does not attempt to generate all of them. Drill provides a date type, but we use a string format because example cases from people using the product often read text files. Finally, we (reluctantly) use the old-style date formats instead of the new Java 8 classes because Drill prefers to build with Java 7.
-
Field Summary
Fields inherited from class org.apache.drill.exec.store.mock.AbstractFieldGen
colDef, colWriter, rand
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.drill.exec.store.mock.AbstractFieldGen
setup
-
Constructor Details
-
DateGen
public DateGen()
-
-
Method Details
-
setValue
public void setValue()
-