Package org.h2.result
Class SimpleRowValue
java.lang.Object
org.h2.value.VersionedValue<Value>
org.h2.value.Value
org.h2.result.SearchRow
org.h2.result.SimpleRowValue
A simple row that contains data for only one column.
-
Field Summary
FieldsFields inherited from class org.h2.result.SearchRow
key, MATCH_ALL_ROW_KEY, MEMORY_CALCULATE, ROWID_INDEX
Fields inherited from class org.h2.value.Value
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
Fields inherited from interface org.h2.util.HasSQL
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Copy all relevant values from the source to this row.int
Get the column count.int
Get the estimated memory used for this row, in bytes.getValue
(int idx) Get the value for the columnboolean
isNull
(int index) Determine if specified column contains NULLvoid
Set the value for given columntoString()
Methods inherited from class org.h2.result.SearchRow
compareTypeSafe, equals, getKey, getSQL, getString, getType, getValueType, hashCode, setKey
Methods inherited from class org.h2.value.Value
add, castTo, charLength, clearCache, compareTo, compareWithNull, containsNull, convertForAssignTo, convertTo, convertTo, convertTo, convertTo, convertTo, convertToAnyArray, 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, isFalse, isTrue, modulus, multiply, negate, octetLength, subtract
Methods inherited from class org.h2.value.VersionedValue
getCommittedValue, getCurrentValue, getOperationId, isCommitted
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.h2.util.HasSQL
getSQL, getTraceSQL
-
Field Details
-
index
private int index -
virtualColumnCount
private final int virtualColumnCount -
data
-
-
Constructor Details
-
SimpleRowValue
public SimpleRowValue(int columnCount) -
SimpleRowValue
public SimpleRowValue(int columnCount, int index)
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from class:SearchRow
Get the column count.- Specified by:
getColumnCount
in classSearchRow
- Returns:
- the column count
-
getValue
Description copied from class:SearchRow
Get the value for the column -
setValue
Description copied from class:SearchRow
Set the value for given column -
toString
-
getMemory
public int getMemory()Description copied from class:SearchRow
Get the estimated memory used for this row, in bytes. -
isNull
public boolean isNull(int index) Description copied from class:SearchRow
Determine if specified column contains NULL -
copyFrom
Description copied from class:SearchRow
Copy all relevant values from the source to this row.
-