public class EncodedColumnBatch<BatchKey> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EncodedColumnBatch.ColumnStreamData
Slice of the data for a stream for some column, stored inside MemoryBuffer's.
|
Modifier and Type | Field and Description |
---|---|
protected BatchKey |
batchKey
The key that is used to map this batch to source location.
|
protected EncodedColumnBatch.ColumnStreamData[][] |
columnData
Stream data for each column that has true in the corresponding hasData position.
|
protected boolean[] |
hasData
Indicates which columns have data.
|
Constructor and Description |
---|
EncodedColumnBatch() |
Modifier and Type | Method and Description |
---|---|
BatchKey |
getBatchKey() |
EncodedColumnBatch.ColumnStreamData[] |
getColumnData(int colIx) |
int |
getTotalColCount() |
boolean |
hasData(int colIx) |
void |
initColumn(int colIx,
int streamCount) |
void |
reset() |
protected void |
resetColumnArrays(int columnCount) |
void |
setStreamData(int colIx,
int streamIx,
EncodedColumnBatch.ColumnStreamData csd) |
protected BatchKey batchKey
protected EncodedColumnBatch.ColumnStreamData[][] columnData
protected boolean[] hasData
public void reset()
public void initColumn(int colIx, int streamCount)
public void setStreamData(int colIx, int streamIx, EncodedColumnBatch.ColumnStreamData csd)
public BatchKey getBatchKey()
public EncodedColumnBatch.ColumnStreamData[] getColumnData(int colIx)
public int getTotalColCount()
protected void resetColumnArrays(int columnCount)
public boolean hasData(int colIx)
Copyright © 2021 The Apache Software Foundation. All rights reserved.