Package com.clickhouse.data.value
Class ClickHouseIpv6Value
java.lang.Object
com.clickhouse.data.value.ClickHouseObjectValue<Inet6Address>
com.clickhouse.data.value.ClickHouseIpv6Value
- All Implemented Interfaces:
ClickHouseValue,Serializable
Wrapper class of
Inet6Address.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasBigDecimal(int scale) Gets value asBigDecimal.Gets value asBigInteger.byteasByte()Gets value as byte.doubleasDouble()Gets value as double.floatasFloat()Gets value as float.Gets value asInet4Address.Gets value asInet6Address.intGets value as integer.longasLong()Gets value as long.asObject()Gets value as an object.shortasShort()Gets value as short.asString()Gets value as unbounded string, using default charset(usually UTF-8).copy(boolean deep) Gets a copy of this value object.static ClickHouseIpv6Valueof(ClickHouseValue ref, Inet6Address value) Update value of the given object or create a new instance ifrefis null.static ClickHouseIpv6Valueof(Inet6Address value) Wrap the given value.static ClickHouseIpv6ValueofNull()Create a new instance representing null value.static ClickHouseIpv6ValueofNull(ClickHouseValue ref) Update given value to null or create a new instance ifrefis null.Resets to default value of corresponding data type.Converts the value to escaped SQL expression.update(byte value) Updates value.update(double value) Updates value.update(float value) Updates value.update(int value) Updates value.update(long value) Updates value.update(short value) Updates value.update(ClickHouseValue value) Updates value.Updates value.Updates value.Updates value.update(BigDecimal value) Updates value.update(BigInteger value) Updates value.update(Inet4Address value) Updates value.update(Inet6Address value) Updates value.Updates value.update(LocalDateTime value) Updates value.Updates value.Updates value.Methods inherited from class com.clickhouse.data.value.ClickHouseObjectValue
equals, getValue, hashCode, isNullOrEmpty, resetToNullOrEmpty, set, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.clickhouse.data.ClickHouseValue
asArray, asArray, asBigDecimal, asBinary, asBinary, asBinary, asBinary, asBoolean, asByteStream, asCharacter, asCharacterStream, asDate, asDateTime, asDateTime, asEnum, asInstant, asInstant, asMap, asMap, asObject, asOffsetDateTime, asOffsetDateTime, asRawObject, asTime, asTime, asTuple, asUuid, asZonedDateTime, asZonedDateTime, copy, isInfinity, isNaN, isNullable, newUnsupportedException, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, update, updateUnknown
-
Field Details
-
DEFAULT
-
-
Constructor Details
-
ClickHouseIpv6Value
-
-
Method Details
-
ofNull
Create a new instance representing null value.- Returns:
- new instance representing null value
-
ofNull
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
Wrap the given value.- Parameters:
value- value- Returns:
- object representing the value
-
of
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
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<Inet6Address>- Returns:
- byte value
-
asShort
public short asShort()Description copied from interface:ClickHouseValueGets value as short.- Specified by:
asShortin interfaceClickHouseValue- Overrides:
asShortin classClickHouseObjectValue<Inet6Address>- Returns:
- short value
-
asInteger
public int asInteger()Description copied from interface:ClickHouseValueGets value as integer.- Specified by:
asIntegerin interfaceClickHouseValue- Overrides:
asIntegerin classClickHouseObjectValue<Inet6Address>- Returns:
- integer value
-
asLong
public long asLong()Description copied from interface:ClickHouseValueGets value as long.- Specified by:
asLongin interfaceClickHouseValue- Overrides:
asLongin classClickHouseObjectValue<Inet6Address>- Returns:
- long value
-
asBigInteger
Description copied from interface:ClickHouseValueGets value asBigInteger.- Specified by:
asBigIntegerin interfaceClickHouseValue- Overrides:
asBigIntegerin classClickHouseObjectValue<Inet6Address>- 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<Inet6Address>- Returns:
- float value
-
asDouble
public double asDouble()Description copied from interface:ClickHouseValueGets value as double.- Specified by:
asDoublein interfaceClickHouseValue- Overrides:
asDoublein classClickHouseObjectValue<Inet6Address>- Returns:
- double value
-
asBigDecimal
Description copied from interface:ClickHouseValueGets value asBigDecimal.- Specified by:
asBigDecimalin interfaceClickHouseValue- Overrides:
asBigDecimalin classClickHouseObjectValue<Inet6Address>- Parameters:
scale- scale of the decimal- Returns:
- big decimal, could be null
-
asInet4Address
Description copied from interface:ClickHouseValueGets value asInet4Address.- Returns:
- IPv4 address, could be null
-
asInet6Address
Description copied from interface:ClickHouseValueGets value asInet6Address.- Returns:
- IPv6 address, could be null
-
asObject
Description copied from interface:ClickHouseValueGets value as an object.- Specified by:
asObjectin interfaceClickHouseValue- Overrides:
asObjectin classClickHouseObjectValue<Inet6Address>- Returns:
- an object representing the value, could be null
-
asString
Description copied from interface:ClickHouseValueGets value as unbounded string, using default charset(usually UTF-8).- Specified by:
asStringin interfaceClickHouseValue- Overrides:
asStringin classClickHouseObjectValue<Inet6Address>- Returns:
- string value, could be null
-
resetToDefault
Description copied from interface:ClickHouseValueResets to default value of corresponding data type.- Returns:
- this object
-
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<Inet6Address>- Returns:
- escaped SQL expression
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
Description copied from interface:ClickHouseValueUpdates value.- Parameters:
value- value to update- Returns:
- this object
-
update
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<Inet6Address>- Parameters:
value- value to update, could be null- Returns:
- this object
-