Class ResolvedTuple.ResolvedMapArray
java.lang.Object
org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple
org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple.ResolvedMap
org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple.ResolvedMapArray
- All Implemented Interfaces:
VectorSource
- Enclosing class:
ResolvedTuple
Represents a map tuple (not the map column, rather the value of the
map column.) When projecting, we create a new repeated map vector,
but share the offsets vector from input to output. The size of the
offset vector reveals the number of elements in the "inner" array,
which is the number of null values to create if null columns are
added.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple
ResolvedTuple.ResolvedDict, ResolvedTuple.ResolvedDictArray, ResolvedTuple.ResolvedMap, ResolvedTuple.ResolvedMapArray, ResolvedTuple.ResolvedRow, ResolvedTuple.ResolvedSingleDict, ResolvedTuple.ResolvedSingleMap -
Field Summary
Fields inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple.ResolvedMap
inputMap, outputMap, parentColumnFields inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple
binding, children, members, nullBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMapVectorcreateMap(AbstractMapVector inputMap, MaterializedField schema, BufferAllocator allocator) intinnerCardinality(int outerCardinality) voidsetRowCount(int rowCount) Methods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple.ResolvedMap
addVector, allocator, buildMap, name, vectorMethods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple
add, addChild, buildColumns, buildNulls, cascadeRowCount, close, columns, isSimpleProjection, loadNulls, nullBuilder, removeChild, reset
-
Constructor Details
-
ResolvedMapArray
-
-
Method Details
-
createMap
protected AbstractMapVector createMap(AbstractMapVector inputMap, MaterializedField schema, BufferAllocator allocator) - Specified by:
createMapin classResolvedTuple.ResolvedMap
-
innerCardinality
public int innerCardinality(int outerCardinality) - Specified by:
innerCardinalityin classResolvedTuple
-
setRowCount
public void setRowCount(int rowCount) - Specified by:
setRowCountin classResolvedTuple
-