public class RecordBatchSizer.ColumnSize extends Object
Modifier and Type | Field and Description |
---|---|
MaterializedField |
metadata |
String |
prefix |
Constructor and Description |
---|
ColumnSize(ValueVector v,
String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
allocateVector(ValueVector vector,
int recordCount) |
void |
buildVectorInitializer(VectorInitializer initializer)
Add a single vector initializer to a collection for the entire batch.
|
int |
getAllocSizePerEntry()
This returns actual entry size if rowCount > 0 or allocation size otherwise.
|
float |
getCardinality() |
Map<String,RecordBatchSizer.ColumnSize> |
getChildren() |
int |
getDataSizePerEntry()
This is the average actual per entry data size in bytes.
|
int |
getElementCount() |
int |
getNetSizePerEntry()
This is the average per entry size of just pure data plus
overhead of additional vectors we add on top like bits vector,
offset vector etc.
|
int |
getStdDataSizePerEntry()
std pure data size per entry from Drill metadata, based on type.
|
int |
getStdNetOrNetSizePerEntry()
If there is an accurate std net size, that is returned.
|
int |
getStdNetSizePerEntry()
std net size per entry taking into account additional metadata vectors
we add on top for variable length, cardinality etc.
|
int |
getTotalDataSize()
This is the total data size for the column, including children for map
columns.
|
int |
getTotalNetSize()
This is the total net size for the column, including children for map
columns.
|
int |
getValueCount() |
boolean |
hasStdDataSize()
Returns true if there is an accurate std size.
|
boolean |
isComplex() |
boolean |
isRepeatedList() |
boolean |
isVariableWidth() |
String |
toString() |
public final String prefix
public final MaterializedField metadata
public ColumnSize(ValueVector v, String prefix)
public boolean hasStdDataSize()
public int getStdDataSizePerEntry()
public int getStdNetSizePerEntry()
public int getDataSizePerEntry()
public int getNetSizePerEntry()
public int getAllocSizePerEntry()
public int getStdNetOrNetSizePerEntry()
public int getTotalDataSize()
public int getTotalNetSize()
public int getValueCount()
public int getElementCount()
public float getCardinality()
public boolean isVariableWidth()
public Map<String,RecordBatchSizer.ColumnSize> getChildren()
public boolean isComplex()
public boolean isRepeatedList()
public void allocateVector(ValueVector vector, int recordCount)
public void buildVectorInitializer(VectorInitializer initializer)
initializer
- the vector initializer to hold the hints
for this columnCopyright © 1970 The Apache Software Foundation. All rights reserved.