Class ClickHouseEmptyValue

java.lang.Object
com.clickhouse.data.value.ClickHouseEmptyValue
All Implemented Interfaces:
ClickHouseValue, Serializable

@Deprecated public final class ClickHouseEmptyValue extends Object implements ClickHouseValue
Deprecated.
Wrapper class of Nothing.
See Also:
  • Field Details

  • Method Details

    • asBigDecimal

      public BigDecimal asBigDecimal(int scale)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as BigDecimal.
      Specified by:
      asBigDecimal in interface ClickHouseValue
      Parameters:
      scale - scale of the decimal
      Returns:
      big decimal, could be null
    • asBigInteger

      public BigInteger asBigInteger()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as BigInteger.
      Specified by:
      asBigInteger in interface ClickHouseValue
      Returns:
      big integer, could be null
    • asByte

      public byte asByte()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as byte.
      Specified by:
      asByte in interface ClickHouseValue
      Returns:
      byte value
    • asDouble

      public double asDouble()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as double.
      Specified by:
      asDouble in interface ClickHouseValue
      Returns:
      double value
    • asFloat

      public float asFloat()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as float.
      Specified by:
      asFloat in interface ClickHouseValue
      Returns:
      float value
    • asInteger

      public int asInteger()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as integer.
      Specified by:
      asInteger in interface ClickHouseValue
      Returns:
      integer value
    • asLong

      public long asLong()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as long.
      Specified by:
      asLong in interface ClickHouseValue
      Returns:
      long value
    • asObject

      public Object asObject()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as an object.
      Specified by:
      asObject in interface ClickHouseValue
      Returns:
      an object representing the value, could be null
    • asShort

      public short asShort()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets value as short.
      Specified by:
      asShort in interface ClickHouseValue
      Returns:
      short value
    • copy

      public ClickHouseValue copy(boolean deep)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Gets a copy of this value object.
      Specified by:
      copy in interface ClickHouseValue
      Parameters:
      deep - true to create a deep copy; false for a shallow copy
      Returns:
      copy of this value object
    • isNullOrEmpty

      public boolean isNullOrEmpty()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Checks if the value is null, or empty for non-null types like Array, Tuple and Map.

      Please pay attention that only nullability will be considered for String, meaning this method will return false for an empty string. This is because String is treated as value-based type instead of a container like Array.

      Specified by:
      isNullOrEmpty in interface ClickHouseValue
      Returns:
      true if the value is null or empty; false otherwise
    • resetToDefault

      public ClickHouseValue resetToDefault()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Resets to default value of corresponding data type.
      Specified by:
      resetToDefault in interface ClickHouseValue
      Returns:
      this object
    • resetToNullOrEmpty

      public ClickHouseValue resetToNullOrEmpty()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Resets value to null, or empty when null is not supported(e.g. Array, Tuple and Map etc.).

      Keep in mind that String is value-based type, so this method will change its value to null instead of an empty string.

      Specified by:
      resetToNullOrEmpty in interface ClickHouseValue
      Returns:
      this object
    • toSqlExpression

      public String toSqlExpression()
      Deprecated.
      Description copied from interface: ClickHouseValue
      Converts the value to escaped SQL expression. For example, number 123 will be converted to 123, while string "12'3" will be converted to @{code '12\'3'}.
      Specified by:
      toSqlExpression in interface ClickHouseValue
      Returns:
      escaped SQL expression
    • update

      public ClickHouseValue update(byte value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(short value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(int value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(long value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(float value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(double value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(BigInteger value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(BigDecimal value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(String value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • update

      public ClickHouseValue update(ClickHouseValue value)
      Deprecated.
      Description copied from interface: ClickHouseValue
      Updates value.
      Specified by:
      update in interface ClickHouseValue
      Parameters:
      value - value to update
      Returns:
      this object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object