Top Description Fields Constructors Methods
org.h2.value

public abstract Class ValueCollectionBase

extends Value
Class Inheritance
Known Direct Subclasses
org.h2.value.ValueRow, org.h2.value.ValueArray
Imports
org.h2.api.ErrorCode, org.h2.engine.CastDataProvider, .Constants, org.h2.message.DbException

Base class for ARRAY and ROW values.

Field Summary

Modifier and TypeField and Description
private int
pack-priv final Value[]
values

Values.

Inherited from org.h2.value.Value:
ARRAYASSIGN_TOBIGINTBINARYBLOBBOOLEANCAST_TOCHARCLOBCONVERT_TODATEDECFLOATDOUBLEEMPTY_VALUESENUMGEOMETRYGROUP_BINARY_STRINGGROUP_BOOLEANGROUP_CHARACTER_STRINGGROUP_COLLECTIONGROUP_DATETIMEGROUP_INTERVAL_DTGROUP_INTERVAL_YMGROUP_NULLGROUP_NUMERICGROUP_OTHERGROUPSINTEGERINTERVAL_DAYINTERVAL_DAY_TO_HOURINTERVAL_DAY_TO_MINUTEINTERVAL_DAY_TO_SECONDINTERVAL_HOURINTERVAL_HOUR_TO_MINUTEINTERVAL_HOUR_TO_SECONDINTERVAL_MINUTEINTERVAL_MINUTE_TO_SECONDINTERVAL_MONTHINTERVAL_SECONDINTERVAL_YEARINTERVAL_YEAR_TO_MONTHJAVA_OBJECTJSONMAX_LONG_DECIMALMIN_LONG_DECIMALNULLNUMERICREALROWSMALLINTTIMETIME_TZTIMESTAMPTIMESTAMP_TZTINYINTTYPE_COUNTUNKNOWNUUIDVARBINARYVARCHARVARCHAR_IGNORECASE

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
compareWithNull(Value
the other value
v
,
boolean
perform only check for equality
forEquality
,
CastDataProvider
the cast information provider
provider
,
CompareMode
the compare mode
compareMode
)

Overrides org.h2.value.Value.compareWithNull.

Compare this value against another value using the specified compare mode.

public boolean
containsNull()

Overrides org.h2.value.Value.containsNull.

Returns true if this value is NULL or contains NULL value.

public Value[]
public int
getMemory()

Overrides org.h2.value.Value.getMemory.

Get the memory used by this object.

pack-priv Value
public int
hashCode()

Implements abstract org.h2.value.Value.hashCode.

Returns a hash code value for this object.

Inherited from org.h2.value.Value:
addcachecastTocharLengthclearCachecompareTocompareTypeSafeconvertForAssignToconvertToconvertToconvertToconvertToconvertToconvertToAnyArrayconvertToAnyJsonconvertToAnyRowconvertToBigintconvertToBooleanconvertToCharconvertToDateconvertToDoubleconvertToEnumconvertToGeometryconvertToIntconvertToIntconvertToJavaObjectconvertToJsonconvertToLongconvertToRealconvertToSmallintconvertToTinyintconvertToUuiddivideequalsgetBigDecimalgetBooleangetBytegetBytesgetBytesNoCopygetDataConversionErrorgetDataConversionErrorgetDoublegetFloatgetHigherOrdergetHigherOrderKnowngetInputStreamgetInputStreamgetIntgetLonggetReadergetReadergetShortgetSignumgetStringgetTypegetTypeNamegetUnsupportedExceptionForOperationgetValueTooLongExceptiongetValueTypegetValueWithFirstNullisFalseisTruemodulusmultiplynegateoctetLengthrangeChecksubtracttoString

Field Detail

hashback to summary
private int hash
valuesback to summary
pack-priv final Value[] values

Values.

Constructor Detail

ValueCollectionBaseback to summary
pack-priv ValueCollectionBase(Value[] values)

Method Detail

compareWithNullback to summary
public int compareWithNull(Value v, boolean forEquality, CastDataProvider provider, CompareMode compareMode)

Overrides org.h2.value.Value.compareWithNull.

Doc from org.h2.value.Value.compareWithNull.

Compare this value against another value using the specified compare mode.

Parameters
v:Value

the other value

forEquality:boolean

perform only check for equality

provider:CastDataProvider

the cast information provider

compareMode:CompareMode

the compare mode

Returns:int

0 if both values are equal, -1 if this value is smaller, 1 if other value is larger, Integer#MIN_VALUE if order is not defined due to NULL comparison

Annotations
@Override
containsNullback to summary
public boolean containsNull()

Overrides org.h2.value.Value.containsNull.

Doc from org.h2.value.Value.containsNull.

Returns true if this value is NULL or contains NULL value.

Returns:boolean

true if this value is NULL or contains NULL value

Annotations
@Override
getListback to summary
public Value[] getList()
getMemoryback to summary
public int getMemory()

Overrides org.h2.value.Value.getMemory.

Doc from org.h2.value.Value.getMemory.

Get the memory used by this object.

Returns:int

the memory used in bytes

Annotations
@Override
getValueWithFirstNullImplback to summary
pack-priv Value getValueWithFirstNullImpl(Value v)

Overrides org.h2.value.Value.getValueWithFirstNullImpl.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Implements abstract org.h2.value.Value.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for this object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object

Annotations
@Override