public class VectorHashKeyWrapperBatch extends VectorColumnSetInfo
VectorColumnSetInfo.KeyLookupHelper
decimalIndices, decimalIndicesIndex, doubleIndices, doubleIndicesIndex, indexLookup, longIndices, longIndicesIndex, stringIndices, stringIndicesIndex
Constructor and Description |
---|
VectorHashKeyWrapperBatch(int keyCount) |
Modifier and Type | Method and Description |
---|---|
VectorHashKeyWrapper |
allocateKeyWrapper() |
static VectorHashKeyWrapperBatch |
compileKeyWrapperBatch(VectorExpression[] keyExpressions)
Prepares a VectorHashKeyWrapperBatch to work for a specific set of keys.
|
void |
evaluateBatch(VectorizedRowBatch batch)
Processes a batch:
Evaluates each key vector expression.
Copies out each key's primitive values into the key wrappers
computes the hashcode of the key wrappers
|
int |
getKeysFixedSize()
Returns the compiled fixed size for the key wrappers.
|
int |
getVariableSize(int batchSize) |
VectorHashKeyWrapper[] |
getVectorHashKeyWrappers()
Accessor for the batch-sized array of key wrappers.
|
Object |
getWritableKeyValue(VectorHashKeyWrapper kw,
int i,
VectorExpressionWriter keyOutputWriter)
Get the row-mode writable object value of a key from a key wrapper
|
addKey, finishAdding
public int getKeysFixedSize()
public VectorHashKeyWrapper[] getVectorHashKeyWrappers()
public void evaluateBatch(VectorizedRowBatch batch) throws HiveException
batch
- HiveException
public static VectorHashKeyWrapperBatch compileKeyWrapperBatch(VectorExpression[] keyExpressions) throws HiveException
HiveException
public VectorHashKeyWrapper allocateKeyWrapper()
public Object getWritableKeyValue(VectorHashKeyWrapper kw, int i, VectorExpressionWriter keyOutputWriter) throws HiveException
keyOutputWriter
- HiveException
public int getVariableSize(int batchSize)
Copyright © 2017 The Apache Software Foundation. All rights reserved.