public static final class Selector.InputRow
extends java.lang.Object
Selector
Constructor and Description |
---|
InputRow(int size,
boolean collectTimestamps,
boolean collectTTLs) |
Modifier and Type | Method and Description |
---|---|
void |
add(java.nio.ByteBuffer v) |
void |
add(Cell<?> c,
int nowInSec) |
long |
getTimestamp(int index)
Return the timestamp of the column with the specified index.
|
int |
getTtl(int index)
Return the ttl of the column with the specified index.
|
java.nio.ByteBuffer |
getValue(int index)
Return the value of the column with the specified index.
|
java.util.List<java.nio.ByteBuffer> |
getValues()
Returns the column values as list.
|
void |
reset(boolean deep)
Reset the row internal state.
|
public InputRow(int size, boolean collectTimestamps, boolean collectTTLs)
public void add(java.nio.ByteBuffer v)
public void add(Cell<?> c, int nowInSec)
public java.nio.ByteBuffer getValue(int index)
index
- the column indexpublic void reset(boolean deep)
If the reset is not a deep one only the index will be reset. If the reset is a deep one a new array will be created to store the column values. This allow to reduce object creation when it is not necessary.
deep
- true
if the reset must be a deep one.public long getTimestamp(int index)
index
- the column indexpublic int getTtl(int index)
index
- the column indexpublic java.util.List<java.nio.ByteBuffer> getValues()
This content of the list will be shared with the InputRow
unless a deep reset has been done.
Copyright © 2009- The Apache Software Foundation