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
-
Method Summary
Modifier and TypeMethodDescriptioncloneWithChild
(int id) cloneWithRemainder
(PathSegment remainder) boolean
int[]
Class<? extends ValueVector>
Return the class for the value vector (type, mode).static String
getPath
(TypedFieldId typeFieldId, RecordBatch recordBatch) Generates the full path to a field from the typefield idsint
hashCode()
boolean
boolean
isDict
(int depth) Check if it is aTypeProtos.MinorType.DICT
type at a given segment's depthboolean
boolean
static TypedFieldId.Builder
toString()
-
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.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
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:
-