public class VectorHashKeyWrapper extends KeyWrapper
VectorHashKeyWrapperBatch
to hash vectorized processing units (batches).Constructor and Description |
---|
VectorHashKeyWrapper(int longValuesCount,
int doubleValuesCount,
int byteValuesCount,
int decimalValuesCount) |
Modifier and Type | Method and Description |
---|---|
void |
assignDecimal(int index,
HiveDecimalWritable value) |
void |
assignDouble(int index,
double d) |
void |
assignLong(int index,
long v) |
void |
assignNullDecimal(int index) |
void |
assignNullDouble(int index) |
void |
assignNullLong(int index) |
void |
assignNullString(int index) |
void |
assignString(int index,
byte[] bytes,
int start,
int length) |
protected Object |
clone() |
KeyWrapper |
copyKey() |
void |
copyKey(KeyWrapper oldWrapper) |
void |
duplicateTo(VectorHashKeyWrapper clone) |
boolean |
equals(Object that) |
int |
getByteLength(int i) |
byte[] |
getBytes(int i) |
int |
getByteStart(int i) |
HiveDecimalWritable |
getDecimal(int i) |
double |
getDoubleValue(int i) |
boolean |
getIsBytesNull(int i) |
boolean |
getIsDecimalNull(int i) |
boolean |
getIsDoubleNull(int i) |
boolean |
getIsLongNull(int i) |
Object[] |
getKeyArray() |
long |
getLongValue(int i) |
void |
getNewKey(Object row,
ObjectInspector rowInspector) |
int |
getVariableSize() |
int |
hashCode() |
void |
setHashKey() |
String |
toString() |
public VectorHashKeyWrapper(int longValuesCount, int doubleValuesCount, int byteValuesCount, int decimalValuesCount)
public void getNewKey(Object row, ObjectInspector rowInspector) throws HiveException
getNewKey
in class KeyWrapper
HiveException
public void setHashKey()
setHashKey
in class KeyWrapper
public void duplicateTo(VectorHashKeyWrapper clone)
public KeyWrapper copyKey()
copyKey
in class KeyWrapper
public void copyKey(KeyWrapper oldWrapper)
copyKey
in class KeyWrapper
public Object[] getKeyArray()
getKeyArray
in class KeyWrapper
public void assignDouble(int index, double d)
public void assignNullDouble(int index)
public void assignLong(int index, long v)
public void assignNullLong(int index)
public void assignString(int index, byte[] bytes, int start, int length)
public void assignNullString(int index)
public void assignDecimal(int index, HiveDecimalWritable value)
public void assignNullDecimal(int index)
public boolean getIsLongNull(int i)
public boolean getIsDoubleNull(int i)
public boolean getIsBytesNull(int i)
public long getLongValue(int i)
public double getDoubleValue(int i)
public byte[] getBytes(int i)
public int getByteStart(int i)
public int getByteLength(int i)
public int getVariableSize()
public boolean getIsDecimalNull(int i)
public HiveDecimalWritable getDecimal(int i)
Copyright © 2017 The Apache Software Foundation. All rights reserved.