Package org.apache.drill.exec.record
Class TypedFieldId
java.lang.Object
org.apache.drill.exec.record.TypedFieldId
Declares a value vector field, providing metadata about the field.
Drives code generation by providing type and other structural
information that determine code structure.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptioncloneWithChild(int id) cloneWithRemainder(PathSegment remainder) booleanint[]Class<? extends ValueVector> Return the class for the value vector (type, mode).static StringgetPath(TypedFieldId typeFieldId, RecordBatch recordBatch) Generates the full path to a field from the typefield idsinthashCode()booleanbooleanisDict(int depth) Check if it is aTypeProtos.MinorType.DICTtype at a given segment's depthbooleanbooleanstatic TypedFieldId.BuildertoString()
-
Method Details
-
cloneWithChild
-
getLastSegment
-
cloneWithRemainder
-
hasRemainder
public boolean hasRemainder() -
getRemainder
-
isHyperReader
public boolean isHyperReader() -
isListVector
public boolean isListVector() -
getIntermediateType
-
isDict
public boolean isDict(int depth) Check if it is aTypeProtos.MinorType.DICTtype at a given segment's depth- Parameters:
depth- depth of interest starting with 0- Returns:
trueif it is DICT,falseotherwise
-
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
-
getFieldIds
public int[] getFieldIds() -
getSecondaryFinal
-
newBuilder
-
hashCode
public int hashCode() -
equals
-
toString
-
getPath
Generates the full path to a field from the typefield ids- Parameters:
typeFieldId-recordBatch-- Returns:
-