Package com.clickhouse.data.value
Class ClickHouseLongValue
java.lang.Object
com.clickhouse.data.value.ClickHouseLongValue
- All Implemented Interfaces:
ClickHouseValue,Serializable
Deprecated.
Wrapper class of
long.- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClickHouseLongValue(boolean isNull, long value) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionasBigDecimal(int scale) Deprecated.Gets value asBigDecimal.Deprecated.Gets value asBigInteger.byteasByte()Deprecated.Gets value as byte.doubleasDouble()Deprecated.Gets value as double.floatasFloat()Deprecated.Gets value as float.intDeprecated.Gets value as integer.longasLong()Deprecated.Gets value as long.asObject()Deprecated.Gets value as an object.shortasShort()Deprecated.Gets value as short.asString()Deprecated.Gets value as unbounded string, using default charset(usually UTF-8).copy(boolean deep) Deprecated.Gets a copy of this value object.booleanDeprecated.final longgetValue()Deprecated.Gets value.inthashCode()Deprecated.final booleanDeprecated.Checks if the value is null, or empty for non-null types like Array, Tuple and Map.static ClickHouseLongValueof(int value) Deprecated.Wraps the givenInt64value.static ClickHouseLongValueof(int value, boolean unsigned) Deprecated.Wraps the given value.static ClickHouseLongValueof(long value) Deprecated.Wraps the givenInt64value.static ClickHouseLongValueof(long value, boolean unsigned) Deprecated.Wraps the given value.static ClickHouseLongValueof(ClickHouseValue ref, long value, boolean unsigned) Deprecated.Updates value of the given object or create a new instance whenrefis null.static ClickHouseLongValueDeprecated.Wraps the given value.static ClickHouseLongValueofNull()Deprecated.Creates a new instance representing nullInt64value.static ClickHouseLongValueofNull(boolean unsigned) Deprecated.Creates a new instance representing null value.static ClickHouseLongValueofNull(ClickHouseValue ref, boolean unsigned) Deprecated.Updates the given value to null or creates a new instance whenrefis null.static ClickHouseLongValueofUnsigned(int value) Deprecated.Wraps the givenUInt64value.static ClickHouseLongValueofUnsigned(long value) Deprecated.Wraps the givenUInt64value.static ClickHouseLongValueDeprecated.Creates a new instance representing nullUInt64value.Deprecated.Resets to default value of corresponding data type.Deprecated.Resets value to null, or empty when null is not supported(e.g.protected final ClickHouseLongValueset(boolean isNull, long value) Deprecated.Deprecated.Converts the value to escaped SQL expression.toString()Deprecated.update(boolean value) Deprecated.Updates value.update(byte value) Deprecated.Updates value.update(char value) Deprecated.Updates value.update(double value) Deprecated.Updates value.update(float value) Deprecated.Updates value.update(int value) Deprecated.Updates value.update(long value) Deprecated.Updates value.update(short value) Deprecated.Updates value.update(ClickHouseValue value) Deprecated.Updates value.Deprecated.Updates value.Deprecated.Updates value.Deprecated.Updates value.update(BigDecimal value) Deprecated.Updates value.update(BigInteger value) Deprecated.Updates value.Methods 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, asInet4Address, asInet6Address, 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, update, update, update, update, updateUnknown
-
Constructor Details
-
ClickHouseLongValue
protected ClickHouseLongValue(boolean isNull, long value) Deprecated.
-
-
Method Details
-
ofNull
Deprecated.Creates a new instance representing nullInt64value.- Returns:
- new instance representing null value
-
ofUnsignedNull
Deprecated.Creates a new instance representing nullUInt64value.- Returns:
- new instance representing null value
-
ofNull
Deprecated.Creates a new instance representing null value.- Parameters:
unsigned- true if the value is unsigned; false otherwise- Returns:
- new instance representing null value
-
ofNull
Deprecated.Updates the given value to null or creates a new instance whenrefis null.- Parameters:
ref- object to update, could be nullunsigned- true if the value is unsigned; false otherwise- Returns:
- same object as
refor a new instance if it's null
-
of
Deprecated.Wraps the givenInt64value.- Parameters:
value- value- Returns:
- object representing the value
-
ofUnsigned
Deprecated.Wraps the givenUInt64value.- Parameters:
value- value- Returns:
- object representing the value
-
of
Deprecated.Wraps the given value.- Parameters:
value- valueunsigned- true ifvalueis unsigned; false otherwise- Returns:
- object representing the value
-
of
Deprecated.Wraps the givenInt64value.- Parameters:
value- value- Returns:
- object representing the value
-
ofUnsigned
Deprecated.Wraps the givenUInt64value.- Parameters:
value- value- Returns:
- object representing the value
-
of
Deprecated.Wraps the given value.- Parameters:
value- valueunsigned- true ifvalueis unsigned; false otherwise- Returns:
- object representing the value
-
of
Deprecated.Wraps the given value.- Parameters:
value- valueunsigned- true ifvalueis unsigned; false otherwise- Returns:
- object representing the value
-
of
Deprecated.Updates value of the given object or create a new instance whenrefis null.- Parameters:
ref- object to update, could be nullvalue- valueunsigned- true ifvalueis unsigned; false otherwise- Returns:
- same object as
refor a new instance if it's null
-
set
Deprecated. -
getValue
public final long getValue()Deprecated.Gets value.- Returns:
- value
-
copy
Deprecated.Description copied from interface:ClickHouseValueGets a copy of this value object.- Specified by:
copyin interfaceClickHouseValue- Parameters:
deep- true to create a deep copy; false for a shallow copy- Returns:
- copy of this value object
-
isNullOrEmpty
public final boolean isNullOrEmpty()Deprecated.Description copied from interface:ClickHouseValueChecks 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
falsefor an empty string. This is because String is treated as value-based type instead of a container like Array.- Specified by:
isNullOrEmptyin interfaceClickHouseValue- Returns:
- true if the value is null or empty; false otherwise
-
asByte
public byte asByte()Deprecated.Description copied from interface:ClickHouseValueGets value as byte.- Specified by:
asBytein interfaceClickHouseValue- Returns:
- byte value
-
asShort
public short asShort()Deprecated.Description copied from interface:ClickHouseValueGets value as short.- Specified by:
asShortin interfaceClickHouseValue- Returns:
- short value
-
asInteger
public int asInteger()Deprecated.Description copied from interface:ClickHouseValueGets value as integer.- Specified by:
asIntegerin interfaceClickHouseValue- Returns:
- integer value
-
asLong
public long asLong()Deprecated.Description copied from interface:ClickHouseValueGets value as long.- Specified by:
asLongin interfaceClickHouseValue- Returns:
- long value
-
asBigInteger
Deprecated.Description copied from interface:ClickHouseValueGets value asBigInteger.- Specified by:
asBigIntegerin interfaceClickHouseValue- Returns:
- big integer, could be null
-
asFloat
public float asFloat()Deprecated.Description copied from interface:ClickHouseValueGets value as float.- Specified by:
asFloatin interfaceClickHouseValue- Returns:
- float value
-
asDouble
public double asDouble()Deprecated.Description copied from interface:ClickHouseValueGets value as double.- Specified by:
asDoublein interfaceClickHouseValue- Returns:
- double value
-
asBigDecimal
Deprecated.Description copied from interface:ClickHouseValueGets value asBigDecimal.- Specified by:
asBigDecimalin interfaceClickHouseValue- Parameters:
scale- scale of the decimal- Returns:
- big decimal, could be null
-
asObject
Deprecated.Description copied from interface:ClickHouseValueGets value as an object.- Specified by:
asObjectin interfaceClickHouseValue- Returns:
- an object representing the value, could be null
-
asString
Deprecated.Description copied from interface:ClickHouseValueGets value as unbounded string, using default charset(usually UTF-8).- Specified by:
asStringin interfaceClickHouseValue- Returns:
- string value, could be null
-
resetToDefault
Deprecated.Description copied from interface:ClickHouseValueResets to default value of corresponding data type.- Specified by:
resetToDefaultin interfaceClickHouseValue- Returns:
- this object
-
resetToNullOrEmpty
Deprecated.Description copied from interface:ClickHouseValueResets 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:
resetToNullOrEmptyin interfaceClickHouseValue- Returns:
- this object
-
toSqlExpression
Deprecated.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- Returns:
- escaped SQL expression
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.Description copied from interface:ClickHouseValueUpdates value.- Specified by:
updatein interfaceClickHouseValue- Parameters:
value- value to update- Returns:
- this object
-
update
Deprecated.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- Parameters:
value- value to update, could be null- Returns:
- this object
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-