org.apache.hadoop.hive.ql.exec.vector
Class LongColumnVector
java.lang.Object
org.apache.hadoop.hive.ql.exec.vector.ColumnVector
org.apache.hadoop.hive.ql.exec.vector.LongColumnVector
public class LongColumnVector
- extends ColumnVector
This class represents a nullable int column vector.
This class will be used for operations on all integer types (tinyint, smallint, int, bigint)
and as such will use a 64-bit long value to hold the biggest possible value.
During copy-in/copy-out, smaller int types will be converted as needed. This will
reduce the amount of code that needs to be generated and also will run fast since the
machine operates with 64-bit words.
The vector[] field is public by design for high-performance access in the inner
loop of query execution.
Method Summary |
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
DoubleColumnVector output)
|
void |
copySelected(boolean selectedInUse,
int[] sel,
int size,
LongColumnVector output)
|
void |
fill(long value)
|
void |
flatten(boolean selectedInUse,
int[] sel,
int size)
|
org.apache.hadoop.io.Writable |
getWritableObject(int index)
|
void |
setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
Set the element in this column vector from the given input vector. |
vector
public long[] vector
NULL_VALUE
public static final long NULL_VALUE
- See Also:
- Constant Field Values
LongColumnVector
public LongColumnVector()
- Use this constructor by default. All column vectors
should normally be the default size.
LongColumnVector
public LongColumnVector(int len)
- Don't use this except for testing purposes.
- Parameters:
len
-
getWritableObject
public org.apache.hadoop.io.Writable getWritableObject(int index)
- Specified by:
getWritableObject
in class ColumnVector
copySelected
public void copySelected(boolean selectedInUse,
int[] sel,
int size,
LongColumnVector output)
copySelected
public void copySelected(boolean selectedInUse,
int[] sel,
int size,
DoubleColumnVector output)
fill
public void fill(long value)
flatten
public void flatten(boolean selectedInUse,
int[] sel,
int size)
- Specified by:
flatten
in class ColumnVector
setElement
public void setElement(int outElementNum,
int inputElementNum,
ColumnVector inputVector)
- Description copied from class:
ColumnVector
- Set the element in this column vector from the given input vector.
- Specified by:
setElement
in class ColumnVector
Copyright © 2014 The Apache Software Foundation. All rights reserved.