Class Selector.InputRow
java.lang.Object
org.apache.cassandra.cql3.selection.Selector.InputRow
- Enclosing class:
- Selector
A row of data that need to be processed by a
Selector-
Constructor Summary
ConstructorsConstructorDescriptionInputRow(ProtocolVersion protocolVersion, List<ColumnMetadata> columns, boolean unmask) InputRow(ProtocolVersion protocolVersion, List<ColumnMetadata> columns, boolean unmask, boolean collectWritetimes, boolean collectTTLs) -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(ByteBuffer v) voidadd(ColumnData columnData, long nowInSec) getValue(int index) Return the value of the column with the specified index.Returns the column values as list.voidreset(boolean deep) Reset the row internal state.booleanunmask()
-
Constructor Details
-
InputRow
-
InputRow
public InputRow(ProtocolVersion protocolVersion, List<ColumnMetadata> columns, boolean unmask, boolean collectWritetimes, boolean collectTTLs)
-
-
Method Details
-
getProtocolVersion
-
unmask
public boolean unmask() -
add
-
add
-
getValue
Return the value of the column with the specified index.- Parameters:
index- the column index- Returns:
- the value of the column with the specified index
-
reset
public void reset(boolean deep) Reset the row internal state.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.
- Parameters:
deep-trueif the reset must be a deep one.
-
getValues
Returns the column values as list.This content of the list will be shared with the
InputRowunless a deep reset has been done.- Returns:
- the column values as list.
-