Class Sparse
Class Sparse.
- 11/16/19 7:35 PM initial creation
-
Field Summary
FieldsFields inherited from class DefaultRow
data, MEMORY_CALCULATEFields inherited from class SearchRow
key, MATCH_ALL_ROW_KEY, ROWID_INDEXFields inherited from class 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_IGNORECASEFields inherited from interface 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
Methods inherited from class DefaultRow
calculateMemory, getMemory, getValueList, hasSharedData, toStringMethods inherited from class Row
get, get, hasSameValuesMethods inherited from class SearchRow
compareTypeSafe, equals, getKey, getSQL, getString, getType, getValueType, hashCode, isNull, setKeyMethods inherited from class 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, subtractMethods inherited from class VersionedValue
getCommittedValue, getCurrentValue, getOperationId, isCommittedMethods inherited from interface HasSQL
getSQL, getTraceSQL
-
Field Details
-
columnCount
private final int columnCount -
map
private final int[] map
-
-
Constructor Details
-
Sparse
Sparse(int columnCount, int capacity, int[] map)
-
-
Method Details
-
getColumnCount
public int getColumnCount()Description copied from class:SearchRowGet the column count.- Overrides:
getColumnCountin classDefaultRow- Returns:
- the column count
-
getValue
Description copied from class:SearchRowGet the value for the column- Overrides:
getValuein classDefaultRow- Parameters:
i- the column number (starting with 0)- Returns:
- the value
-
setValue
Description copied from class:SearchRowSet the value for given column- Overrides:
setValuein classDefaultRow- Parameters:
i- the column number (starting with 0)v- the new value
-
copyFrom
Description copied from class:SearchRowCopy all relevant values from the source to this row.- Overrides:
copyFromin classDefaultRow- Parameters:
source- source of column values
-