Package org.h2.value

Class ValueCollectionBase

All Implemented Interfaces:
HasSQL, Typed
Direct Known Subclasses:
ValueArray, ValueRow

public abstract class ValueCollectionBase extends Value
Base class for ARRAY and ROW values.
  • Field Details

    • values

      final Value[] values
      Values.
    • hash

      private int hash
  • Constructor Details

    • ValueCollectionBase

      ValueCollectionBase(Value[] values)
  • Method Details

    • getList

      public Value[] getList()
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class Value
    • compareWithNull

      public int compareWithNull(Value v, boolean forEquality, CastDataProvider provider, CompareMode compareMode)
      Description copied from class: Value
      Compare this value against another value using the specified compare mode.
      Overrides:
      compareWithNull in class Value
      Parameters:
      v - the other value
      forEquality - perform only check for equality
      provider - the cast information provider
      compareMode - the compare mode
      Returns:
      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
    • containsNull

      public boolean containsNull()
      Description copied from class: Value
      Returns true if this value is NULL or contains NULL value.
      Overrides:
      containsNull in class Value
      Returns:
      true if this value is NULL or contains NULL value
    • getMemory

      public int getMemory()
      Description copied from class: Value
      Get the memory used by this object.
      Overrides:
      getMemory in class Value
      Returns:
      the memory used in bytes