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| Constructor and Description |
|---|
ValueBlob(LobData lobData,
long octetLength) |
| Modifier and Type | Method and Description |
|---|---|
long |
charLength()
Returns length of this value in characters.
|
int |
compareTypeSafe(Value v,
CompareMode mode,
CastDataProvider provider)
Compare this value against another value given that the values are of the
same data type.
|
ValueLob |
copy(DataHandler database,
int tableId)
Copy a large value, to be used in the given table.
|
static ValueBlob |
createSmall(byte[] data)
Creates a small BLOB value that can be stored in the row directly.
|
static ValueBlob |
createTempBlob(java.io.InputStream in,
long length,
DataHandler handler)
Create a temporary BLOB value from a stream.
|
java.io.InputStream |
getInputStream() |
java.io.InputStream |
getInputStream(long oneBasedOffset,
long length)
Get the input stream
|
java.io.Reader |
getReader(long oneBasedOffset,
long length)
Get the reader
|
java.lang.StringBuilder |
getSQL(java.lang.StringBuilder builder,
int sqlFlags)
Appends the SQL statement of this object to the specified builder.
|
java.lang.String |
getString()
Get the value as a string.
|
int |
getValueType()
Get the value type.
|
long |
octetLength()
Returns length of this value in bytes.
|
copyToResult, equals, getBytes, getBytesNoCopy, getLobData, getMemory, getReader, getType, hashCode, isLinkedToTable, rangeInputStream, removeadd, castTo, 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, getDouble, getFloat, getHigherOrder, getInt, getLong, getShort, getSignum, getTypeName, getUnsupportedExceptionForOperation, isFalse, isTrue, modulus, multiply, negate, subtract, toStringgetCommittedValue, getCurrentValue, getOperationId, isCommittedclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSQL, getTraceSQLpublic ValueBlob(LobData lobData, long octetLength)
public static ValueBlob createSmall(byte[] data)
data - the datapublic static ValueBlob createTempBlob(java.io.InputStream in, long length, DataHandler handler)
in - the input streamlength - the number of characters to read, or -1 for no limithandler - the data handlerpublic int getValueType()
ValuegetValueType in class Valuepublic java.lang.String getString()
Valuepublic java.io.InputStream getInputStream()
getInputStream in class Valuepublic java.io.InputStream getInputStream(long oneBasedOffset,
long length)
ValuegetInputStream in class ValueoneBasedOffset - the offset (1 means no offset)length - the requested lengthpublic java.io.Reader getReader(long oneBasedOffset,
long length)
Valuepublic int compareTypeSafe(Value v, CompareMode mode, CastDataProvider provider)
ValuecompareTypeSafe in class Valuev - the other valuemode - the compare modeprovider - the cast information providerpublic java.lang.StringBuilder getSQL(java.lang.StringBuilder builder,
int sqlFlags)
HasSQLbuilder - string buildersqlFlags - formatting flagspublic ValueLob copy(DataHandler database, int tableId)
ValueLobpublic long charLength()
ValuecharLength in class Valuepublic long octetLength()
ValueoctetLength in class Value