public static class TupleState.MapColumnState extends ColumnState.BaseContainerColumnState
Condition | Action | |
---|---|---|
Outside of Union | Inside of Union | |
Unprojected | N/A | Omitted from output |
Added in prior batch | Included in output | |
Added in present batch, before overflow | Included in output | |
Added in present batch, after overflow | Omitted from output this batch (added next batch) | Included in output |
The above rules say that, for maps in a union, the output schema is identical to the internal writer schema. But, for maps outside of union, the output schema is a subset of the internal schema with two types of omissions:
ColumnState.BaseContainerColumnState, ColumnState.PrimitiveColumnState, ColumnState.State
Modifier and Type | Field and Description |
---|---|
protected boolean |
isVersioned |
protected TupleState.MapState |
mapState |
protected ColumnMetadata |
outputSchema |
addVersion, cardinality, loader, outputIndex, state, vectorState, writer
Constructor and Description |
---|
MapColumnState(TupleState.MapState mapState,
AbstractObjectWriter writer,
VectorState vectorState,
boolean isVersioned) |
Modifier and Type | Method and Description |
---|---|
ContainerState |
container() |
boolean |
isProjected() |
boolean |
isVersioned()
Indicate if this map is versioned.
|
TupleState.MapState |
mapState() |
ColumnMetadata |
outputSchema() |
close, harvestWithLookAhead, rollover, startBatch, updateCardinality
allocateVectors, buildOutput, dump, innerCardinality, outerCardinality, schema, vector, vectorState, writer
protected final TupleState.MapState mapState
protected boolean isVersioned
protected final ColumnMetadata outputSchema
public MapColumnState(TupleState.MapState mapState, AbstractObjectWriter writer, VectorState vectorState, boolean isVersioned)
public TupleState.MapState mapState()
public ContainerState container()
container
in class ColumnState.BaseContainerColumnState
public boolean isProjected()
isProjected
in class ColumnState
public boolean isVersioned()
public ColumnMetadata outputSchema()
outputSchema
in class ColumnState
Copyright © 1970 The Apache Software Foundation. All rights reserved.