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, parentColumn
Fields inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple
binding, children, members, nullBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractMapVector
createMap
(AbstractMapVector inputMap, MaterializedField schema, BufferAllocator allocator) int
innerCardinality
(int outerCardinality) void
setRowCount
(int rowCount) Methods inherited from class org.apache.drill.exec.physical.impl.scan.project.ResolvedTuple.ResolvedMap
addVector, allocator, buildMap, name, vector
Methods 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:
createMap
in classResolvedTuple.ResolvedMap
-
innerCardinality
public int innerCardinality(int outerCardinality) - Specified by:
innerCardinality
in classResolvedTuple
-
setRowCount
public void setRowCount(int rowCount) - Specified by:
setRowCount
in classResolvedTuple
-