public abstract class Row extends SearchRow
key, MATCH_ALL_ROW_KEY, MEMORY_CALCULATE, ROWID_INDEX
ARRAY, BIGINT, BINARY, BLOB, BOOLEAN, CHAR, CLOB, DATE, DECFLOAT, DOUBLE, EMPTY_VALUES, ENUM, GEOMETRY, INTEGER, INTERVAL_DAY, INTERVAL_DAY_TO_HOUR, INTERVAL_DAY_TO_MINUTE, INTERVAL_DAY_TO_SECOND, INTERVAL_HOUR, INTERVAL_HOUR_TO_MINUTE, INTERVAL_HOUR_TO_SECOND, INTERVAL_MINUTE, INTERVAL_MINUTE_TO_SECOND, INTERVAL_MONTH, INTERVAL_SECOND, INTERVAL_YEAR, INTERVAL_YEAR_TO_MONTH, JAVA_OBJECT, JSON, MIN_LONG_DECIMAL, NULL, NUMERIC, REAL, ROW, SMALLINT, TIME, TIME_TZ, TIMESTAMP, TIMESTAMP_TZ, TINYINT, TYPE_COUNT, UNKNOWN, UUID, VARBINARY, VARCHAR, VARCHAR_IGNORECASE
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Constructor and Description |
---|
Row() |
Modifier and Type | Method and Description |
---|---|
static Row |
get(Value[] data,
int memory)
Creates a new row.
|
static Row |
get(Value[] data,
int memory,
long key)
Creates a new row with the specified key.
|
abstract Value[] |
getValueList()
Get values.
|
boolean |
hasSameValues(Row other)
Check whether values of this row are equal to values of other row.
|
boolean |
hasSharedData(Row other)
Check whether this row and the specified row share the same underlying
data with values.
|
compareTypeSafe, copyFrom, equals, getColumnCount, getKey, getMemory, getSQL, getString, getType, getValue, getValueType, hashCode, isNull, setKey, setValue
add, castTo, charLength, clearCache, compareTo, compareWithNull, containsNull, convertForAssignTo, convertTo, convertTo, convertTo, convertTo, convertTo, convertToAnyArray, convertToAnyJson, convertToAnyRow, convertToBigint, convertToBoolean, convertToChar, convertToDate, convertToDouble, convertToEnum, convertToGeometry, convertToInt, convertToInt, convertToJavaObject, convertToReal, convertToSmallint, convertToTinyint, convertToUuid, divide, getBigDecimal, getBoolean, getByte, getBytes, getBytesNoCopy, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getReader, getReader, getShort, getSignum, getTypeName, getUnsupportedExceptionForOperation, getValueWithFirstNull, isFalse, isTrue, modulus, multiply, negate, octetLength, subtract, toString
getCommittedValue, getCurrentValue, getOperationId, isCommitted
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSQL, getTraceSQL
public static Row get(Value[] data, int memory)
data
- values of columns, or nullmemory
- used memorypublic static Row get(Value[] data, int memory, long key)
data
- values of columns, or nullmemory
- used memorykey
- the keypublic abstract Value[] getValueList()
public boolean hasSameValues(Row other)
other
- the other rowtrue
if values are equal,
false
otherwisepublic boolean hasSharedData(Row other)
false
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.other
- the other rowtrue
if rows share the same underlying data,
false
otherwise or when unknown