Class FieldIdUtil
java.lang.Object
org.apache.drill.exec.vector.complex.FieldIdUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypedFieldId
getFieldId
(ValueVector vector, int id, SchemaPath expectedPath, boolean hyper) static TypedFieldId
getFieldIdIfMatches
(ValueVector vector, TypedFieldId.Builder builder, boolean addToBreadCrumb, PathSegment seg) Utility method to obtainTypedFieldId
, providing metadata for specified field given by value vector used in code generation.static TypedFieldId
getFieldIdIfMatchesUnion
(UnionVector unionVector, TypedFieldId.Builder builder, boolean addToBreadCrumb, PathSegment seg)
-
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 obtainTypedFieldId
, providing metadata for specified field given by value vector used in code generation.- Parameters:
vector
- a value vector the metadata is obtained forbuilder
- a builder instance gathering metadataaddToBreadCrumb
- flag to indicate whether to include intermediate typeseg
- 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)
-