Class FieldIdUtil

java.lang.Object
org.apache.drill.exec.vector.complex.FieldIdUtil

public class FieldIdUtil extends Object
  • Constructor Details

    • FieldIdUtil

      public FieldIdUtil()
  • Method Details

    • getFieldIdIfMatchesUnion

      public static TypedFieldId getFieldIdIfMatchesUnion(UnionVector unionVector, TypedFieldId.Builder builder, boolean addToBreadCrumb, PathSegment seg)
    • getFieldIdIfMatches

      public static TypedFieldId getFieldIdIfMatches(ValueVector vector, TypedFieldId.Builder builder, boolean addToBreadCrumb, PathSegment seg)
      Utility method to obtain TypedFieldId, providing metadata for specified field given by value vector used in code generation.
      Parameters:
      vector - a value vector the metadata is obtained for
      builder - a builder instance gathering metadata
      addToBreadCrumb - flag to indicate whether to include intermediate type
      seg - path segment corresponding to the vector
      Returns:
      type metadata for given vector
    • getFieldId

      public static TypedFieldId getFieldId(ValueVector vector, int id, SchemaPath expectedPath, boolean hyper)