Interface FieldGen

All Known Implementing Classes:
AbstractFieldGen, BooleanGen, DateGen, DoubleGen, IntGen, MoneyGen, StringGen, VaryingStringGen

public interface FieldGen
Interface which all mock column data generators must implement. Each has a setup(org.apache.drill.exec.store.mock.ColumnDef, org.apache.drill.exec.vector.accessor.ScalarWriter) method which is given the column definition for the column. This definition may have additional configuration information for the column (column width, precision, etc.). Each also has a setValue() method that does the work of setting a specific value vector position to the generated value. The implementation is expected to cast the vector to the type supported by that particular generator. (This is test code; we're not overly concerned with the overhead of such casts.)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setup(ColumnDef colDef, ScalarWriter colLoader)
     
    void