SearchRow

The interface for rows stored in a table, and for partial rows stored in the index.

Methods
int getColumnCount()
Get the column count.
int getColumnCount()
Get the column count.
Returns:
the column count
long getKey()
Get the unique key of the row.
long getKey()
Get the unique key of the row.
Returns:
the key
int getMemory()
Get the estimated memory used for this row, in bytes.
int getMemory()
Get the estimated memory used for this row, in bytes.
Returns:
the memory
Value getValue(int index)
Get the value for the column
Value getValue(int index)
Get the value for the column
Parameters:
index - the column number (starting with 0)
Returns:
the value
int getVersion()
Get the version of the row.
int getVersion()
Get the version of the row.
Returns:
the version
void setKey(long key)
Set the unique key of the row.
void setKey(long key)
Set the unique key of the row.
Parameters:
key - the key
void setKeyAndVersion(SearchRow old)
Set the position and version to match another row.
void setKeyAndVersion(SearchRow old)
Set the position and version to match another row.
Parameters:
old - the other row.
void setValue(int index, Value v)
Set the value for given column
void setValue(int index, Value v)
Set the value for given column
Parameters:
index - the column number (starting with 0)
v - the new value

Fields
static SearchRow[] EMPTY_ARRAY

EMPTY_ARRAY

An empty array of SearchRow objects.