EMPTY_ARRAY, MEMORY_CALCULATEROWID_INDEX| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount(Data dummy)
Get the number of bytes required for the data.
|
int |
getColumnCount()
Get the column count.
|
long |
getKey()
Get the unique key of the row.
|
int |
getMemory()
Get the estimated memory used for this row, in bytes.
|
Value |
getValue(int i)
Get the value for the column
|
Value[] |
getValueList()
Get values.
|
boolean |
hasSharedData(Row other)
Check whether this row and the specified row share the same underlying
data with values.
|
boolean |
isDeleted()
Check if the row is deleted.
|
boolean |
isEmpty()
Check if this is an empty row.
|
void |
setDeleted(boolean deleted)
Mark the row as deleted.
|
void |
setKey(long key)
Set the unique key of the row.
|
void |
setKey(SearchRow row)
Set the position to match another row.
|
void |
setValue(int i,
Value v)
Set the value for given column
|
java.lang.String |
toString() |
public RowImpl(Value[] data, int memory)
public void setKey(SearchRow row)
SearchRowpublic long getKey()
SearchRowpublic void setKey(long key)
SearchRowpublic Value getValue(int i)
SearchRowpublic int getByteCount(Data dummy)
getByteCount in interface Rowdummy - the template bufferpublic void setValue(int i,
Value v)
SearchRowpublic boolean isEmpty()
Rowpublic int getColumnCount()
SearchRowgetColumnCount in interface SearchRowpublic int getMemory()
SearchRowpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setDeleted(boolean deleted)
RowsetDeleted in interface Rowdeleted - deleted flagpublic boolean isDeleted()
Rowpublic Value[] getValueList()
RowgetValueList in interface Rowpublic boolean hasSharedData(Row other)
Rowfalse when values are
not equal and may return either true or false when they
are equal. This method may be used only for optimizations and should not
perform any slow checks, such as equality checks for all pairs of values.hasSharedData in interface Rowother - the other rowtrue if rows share the same underlying data,
false otherwise or when unknown