Package com.clickhouse.client.data
Class ClickHouseBigIntegerValue
- java.lang.Object
-
- com.clickhouse.client.data.ClickHouseObjectValue<BigInteger>
-
- com.clickhouse.client.data.ClickHouseBigIntegerValue
-
- All Implemented Interfaces:
ClickHouseValue,Serializable
public class ClickHouseBigIntegerValue extends ClickHouseObjectValue<BigInteger>
Wraper class of BigInteger.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedClickHouseBigIntegerValue(BigInteger value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BigDecimalasBigDecimal(int scale)Gets value asBigDecimal.BigIntegerasBigInteger()Gets value asBigInteger.byteasByte()Gets value as byte.doubleasDouble()Gets value as double.floatasFloat()Gets value as float.intasInteger()Gets value as integer.longasLong()Gets value as long.ObjectasObject()Gets value as an object.shortasShort()Gets value as short.ClickHouseBigIntegerValuecopy(boolean deep)Gets a copy of this value object.static ClickHouseBigIntegerValueof(ClickHouseValue ref, BigInteger value)Update value of the given object or create a new instance ifrefis null.static ClickHouseBigIntegerValueof(BigInteger value)Wrap the given value.static ClickHouseBigIntegerValueofNull()Create a new instance representing null value.static ClickHouseBigIntegerValueofNull(ClickHouseValue ref)Update given value to null or create a new instance ifrefis null.StringtoSqlExpression()Converts the value to escaped SQL expression.ClickHouseBigIntegerValueupdate(boolean value)Updates value.ClickHouseBigIntegerValueupdate(byte value)Updates value.ClickHouseBigIntegerValueupdate(char value)Updates value.ClickHouseBigIntegerValueupdate(double value)Updates value.ClickHouseBigIntegerValueupdate(float value)Updates value.ClickHouseBigIntegerValueupdate(int value)Updates value.ClickHouseBigIntegerValueupdate(long value)Updates value.ClickHouseBigIntegerValueupdate(short value)Updates value.ClickHouseBigIntegerValueupdate(ClickHouseValue value)Updates value.ClickHouseBigIntegerValueupdate(Enum<?> value)Updates value.ClickHouseBigIntegerValueupdate(Object value)Updates value.ClickHouseBigIntegerValueupdate(String value)Updates value.ClickHouseBigIntegerValueupdate(BigDecimal value)Updates value.ClickHouseBigIntegerValueupdate(BigInteger value)Updates value.ClickHouseBigIntegerValueupdate(Inet4Address value)Updates value.ClickHouseBigIntegerValueupdate(Inet6Address value)Updates value.ClickHouseBigIntegerValueupdate(LocalDate value)Updates value.ClickHouseBigIntegerValueupdate(LocalDateTime value)Updates value.ClickHouseBigIntegerValueupdate(LocalTime value)Updates value.ClickHouseBigIntegerValueupdate(UUID value)Updates value.-
Methods inherited from class com.clickhouse.client.data.ClickHouseObjectValue
asString, equals, getValue, hashCode, isNullOrEmpty, resetToNullOrEmpty, set, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.clickhouse.client.ClickHouseValue
asArray, asArray, asBigDecimal, asBoolean, asByteStream, asCharacter, asCharacterStream, asDate, asDateTime, asDateTime, asEnum, asInet4Address, asInet6Address, asInstant, asInstant, asMap, asMap, asObject, asOffsetDateTime, asOffsetDateTime, asString, asString, asString, asTime, asTime, asTuple, asUuid, asZonedDateTime, asZonedDateTime, copy, isInfinity, isNaN, newUnsupportedException, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, updateUnknown
-
-
-
-
Constructor Detail
-
ClickHouseBigIntegerValue
protected ClickHouseBigIntegerValue(BigInteger value)
-
-
Method Detail
-
ofNull
public static ClickHouseBigIntegerValue ofNull()
Create a new instance representing null value.- Returns:
- new instance representing null value
-
ofNull
public static ClickHouseBigIntegerValue ofNull(ClickHouseValue ref)
Update given value to null or create a new instance ifrefis null.- Parameters:
ref- object to update, could be null- Returns:
- same object as
refor a new instance if it's null
-
of
public static ClickHouseBigIntegerValue of(BigInteger value)
Wrap the given value.- Parameters:
value- value- Returns:
- object representing the value
-
of
public static ClickHouseBigIntegerValue of(ClickHouseValue ref, BigInteger value)
Update value of the given object or create a new instance ifrefis null.- Parameters:
ref- object to update, could be nullvalue- value- Returns:
- same object as
refor a new instance if it's null
-
copy
public ClickHouseBigIntegerValue copy(boolean deep)
Description copied from interface:ClickHouseValueGets a copy of this value object.- Parameters:
deep- true to create a deep copy; false for a shallow copy- Returns:
- copy of this value object
-
asByte
public byte asByte()
Description copied from interface:ClickHouseValueGets value as byte.- Specified by:
asBytein interfaceClickHouseValue- Overrides:
asBytein classClickHouseObjectValue<BigInteger>- Returns:
- byte value
-
asShort
public short asShort()
Description copied from interface:ClickHouseValueGets value as short.- Specified by:
asShortin interfaceClickHouseValue- Overrides:
asShortin classClickHouseObjectValue<BigInteger>- Returns:
- short value
-
asInteger
public int asInteger()
Description copied from interface:ClickHouseValueGets value as integer.- Specified by:
asIntegerin interfaceClickHouseValue- Overrides:
asIntegerin classClickHouseObjectValue<BigInteger>- Returns:
- integer value
-
asLong
public long asLong()
Description copied from interface:ClickHouseValueGets value as long.- Specified by:
asLongin interfaceClickHouseValue- Overrides:
asLongin classClickHouseObjectValue<BigInteger>- Returns:
- long value
-
asBigInteger
public BigInteger asBigInteger()
Description copied from interface:ClickHouseValueGets value asBigInteger.- Specified by:
asBigIntegerin interfaceClickHouseValue- Overrides:
asBigIntegerin classClickHouseObjectValue<BigInteger>- Returns:
- big integer, could be null
-
asFloat
public float asFloat()
Description copied from interface:ClickHouseValueGets value as float.- Specified by:
asFloatin interfaceClickHouseValue- Overrides:
asFloatin classClickHouseObjectValue<BigInteger>- Returns:
- float value
-
asDouble
public double asDouble()
Description copied from interface:ClickHouseValueGets value as double.- Specified by:
asDoublein interfaceClickHouseValue- Overrides:
asDoublein classClickHouseObjectValue<BigInteger>- Returns:
- double value
-
asBigDecimal
public BigDecimal asBigDecimal(int scale)
Description copied from interface:ClickHouseValueGets value asBigDecimal.- Specified by:
asBigDecimalin interfaceClickHouseValue- Overrides:
asBigDecimalin classClickHouseObjectValue<BigInteger>- Parameters:
scale- scale of the decimal- Returns:
- big decimal, could be null
-
asObject
public Object asObject()
Description copied from interface:ClickHouseValueGets value as an object.- Specified by:
asObjectin interfaceClickHouseValue- Overrides:
asObjectin classClickHouseObjectValue<BigInteger>- Returns:
- an object representing the value, could be null
-
toSqlExpression
public String toSqlExpression()
Description copied from interface:ClickHouseValueConverts the value to escaped SQL expression. For example, number 123 will be converted to123, while string "12'3" will be converted to @{code '12\'3'}.- Specified by:
toSqlExpressionin interfaceClickHouseValue- Overrides:
toSqlExpressionin classClickHouseObjectValue<BigInteger>- Returns:
- escaped SQL expression
-
update
public ClickHouseBigIntegerValue update(boolean value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(char value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(byte value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(short value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(int value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(long value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(float value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(double value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(BigInteger value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(BigDecimal value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(Enum<?> value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(Inet4Address value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(Inet6Address value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(LocalDate value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(LocalTime value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(LocalDateTime value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(String value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(UUID value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(ClickHouseValue value)
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
public ClickHouseBigIntegerValue update(Object value)
Description copied from interface:ClickHouseValueUpdates value. This method tries to identify type ofvalueand then use corresponding update method to proceed. Unknown value will be passed toClickHouseValue.updateUnknown(Object).- Specified by:
updatein interfaceClickHouseValue- Overrides:
updatein classClickHouseObjectValue<BigInteger>- Parameters:
value- value to update, could be null- Returns:
- this object
-
-