Class TypedFieldId

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

public class TypedFieldId extends Object
Declares a value vector field, providing metadata about the field. Drives code generation by providing type and other structural information that determine code structure.
  • Method Details

    • cloneWithChild

      public TypedFieldId cloneWithChild(int id)
    • getLastSegment

      public PathSegment getLastSegment()
    • cloneWithRemainder

      public TypedFieldId cloneWithRemainder(PathSegment remainder)
    • hasRemainder

      public boolean hasRemainder()
    • getRemainder

      public PathSegment getRemainder()
    • isHyperReader

      public boolean isHyperReader()
    • isListVector

      public boolean isListVector()
    • getIntermediateType

      public TypeProtos.MajorType getIntermediateType()
    • isDict

      public boolean isDict(int depth)
      Check if it is a TypeProtos.MinorType.DICT type at a given segment's depth
      Parameters:
      depth - depth of interest starting with 0
      Returns:
      true if it is DICT, false otherwise
    • getIntermediateClass

      public Class<? extends ValueVector> getIntermediateClass()
      Return the class for the value vector (type, mode).
      Returns:
      the specific, generated ValueVector subclass that stores values of the given (type, mode) combination
    • getFinalType

      public TypeProtos.MajorType getFinalType()
    • getFieldIds

      public int[] getFieldIds()
    • getSecondaryFinal

      public TypeProtos.MajorType getSecondaryFinal()
    • newBuilder

      public static TypedFieldId.Builder newBuilder()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPath

      public static String getPath(TypedFieldId typeFieldId, RecordBatch recordBatch)
      Generates the full path to a field from the typefield ids
      Parameters:
      typeFieldId -
      recordBatch -
      Returns: