Package org.h2.result
Class Sparse
- java.lang.Object
-
public final class Sparse extends DefaultRow
Class Sparse.- 11/16/19 7:35 PM initial creation
-
-
Field Summary
Fields Modifier and Type Field Description private int
columnCount
private int[]
map
-
Fields inherited from class org.h2.result.DefaultRow
data, MEMORY_CALCULATE
-
Fields inherited from class org.h2.result.SearchRow
key, MATCH_ALL_ROW_KEY, 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 Constructor Description Sparse(int columnCount, int capacity, int[] map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyFrom(SearchRow source)
Copy all relevant values from the source to this row.int
getColumnCount()
Get the column count.Value
getValue(int i)
Get the value for the columnvoid
setValue(int i, Value v)
Set the value for given column-
Methods inherited from class org.h2.result.DefaultRow
calculateMemory, getMemory, getValueList, hasSharedData, toString
-
Methods inherited from class org.h2.result.Row
get, get, hasSameValues
-
Methods inherited from class org.h2.result.SearchRow
compareTypeSafe, equals, getKey, getSQL, getString, getType, getValueType, hashCode, isNull, 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
-
-
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
Description copied from class:SearchRow
Get the column count.- Overrides:
getColumnCount
in classDefaultRow
- Returns:
- the column count
-
getValue
public Value getValue(int i)
Description copied from class:SearchRow
Get the value for the column- Overrides:
getValue
in classDefaultRow
- Parameters:
i
- the column number (starting with 0)- Returns:
- the value
-
setValue
public void setValue(int i, Value v)
Description copied from class:SearchRow
Set the value for given column- Overrides:
setValue
in classDefaultRow
- Parameters:
i
- the column number (starting with 0)v
- the new value
-
copyFrom
public void copyFrom(SearchRow source)
Description copied from class:SearchRow
Copy all relevant values from the source to this row.- Overrides:
copyFrom
in classDefaultRow
- Parameters:
source
- source of column values
-
-