public abstract class ValueLob extends 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_IGNORECASEADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Modifier and Type | Method and Description |
|---|---|
abstract ValueLob |
copy(DataHandler database,
int tableId)
Copy a large value, to be used in the given table.
|
ValueLob |
copyToResult()
Create an independent copy of this value, that will be bound to a result.
|
boolean |
equals(java.lang.Object other)
Check if the two values have the same hash code.
|
byte[] |
getBytes() |
byte[] |
getBytesNoCopy() |
LobData |
getLobData() |
int |
getMemory()
Get the memory used by this object.
|
java.io.Reader |
getReader() |
TypeInfo |
getType()
Returns the data type.
|
int |
hashCode() |
boolean |
isLinkedToTable()
Check if this value is linked to a specific table.
|
protected static java.io.InputStream |
rangeInputStream(java.io.InputStream inputStream,
long oneBasedOffset,
long length,
long dataSize)
Create an input stream that is s subset of the given stream.
|
void |
remove()
Remove the underlying resource, if any.
|
add, castTo, charLength, clearCache, compareTo, compareTypeSafe, 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, getDouble, getFloat, getHigherOrder, getInputStream, getInputStream, getInt, getLong, getReader, getShort, getSignum, getString, getTypeName, getUnsupportedExceptionForOperation, getValueType, getValueWithFirstNull, isFalse, isTrue, modulus, multiply, negate, octetLength, subtract, toStringgetCommittedValue, getCurrentValue, getOperationId, isCommittedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSQL, getSQL, getTraceSQLprotected static java.io.InputStream rangeInputStream(java.io.InputStream inputStream,
long oneBasedOffset,
long length,
long dataSize)
inputStream - the source input streamoneBasedOffset - the offset (1 means no offset)length - the length of the result, in bytesdataSize - the length of the input, in bytespublic boolean isLinkedToTable()
public void remove()
public abstract ValueLob copy(DataHandler database, int tableId)
database - the data handlertableId - the table where this object is usedpublic byte[] getBytesNoCopy()
getBytesNoCopy in class Valuepublic boolean equals(java.lang.Object other)
Valuepublic int getMemory()
Valuepublic LobData getLobData()
public ValueLob copyToResult()