Class VectorInitializer

java.lang.Object
org.apache.drill.exec.record.VectorInitializer

public class VectorInitializer extends Object
Prototype mechanism to allocate vectors based on expected data sizes. This version uses a name-based map of fields to sizes. Better to represent the batch structurally and simply iterate over the schema rather than doing a per-field lookup. But, the mechanisms needed to do the efficient solution don't exist yet.

The element count is a float because it might be fractional. If every tenth array has an element, then the count per array is 0.1.

  • Constructor Details

    • VectorInitializer

      public VectorInitializer()
  • Method Details