Class Value
java.lang.Object
com.surrealdb.Native
com.surrealdb.Value
- All Implemented Interfaces:
AutoCloseable
The Value class represents a general-purpose wrapper for different types of
values. It provides various methods to interact with and retrieve values such
as arrays, objects, strings, numbers, and more.
-
Method Summary
Modifier and TypeMethodDescription<T> TgetArray()booleanbyte[]getBytes()doublegetFile()longgetLong()End bound of the range (included or excluded), or empty if unbounded.Start bound of the range (included or excluded), or empty if unbounded.getSet()Returns the elements of this set, in the set's (sorted) order.getTable()Table name when this value is a table type.getUuid()booleanisArray()booleanbooleanbooleanisBytes()booleanbooleanisDouble()booleanbooleanisFile()booleanbooleanisLong()booleanisNone()booleanisNull()booleanisObject()booleanisRange()booleanWhether the end bound of the range is inclusive (..=brather than..b).booleanWhether the start bound of the range is inclusive (a..rather thana>..).booleanbooleanisSet()Whether this value is a set: a sorted collection without duplicates.booleanisString()booleanisTable()booleanisUuid()Methods inherited from interface AutoCloseable
close
-
Method Details
-
isArray
public boolean isArray() -
getArray
-
isObject
public boolean isObject() -
getObject
-
isBoolean
public boolean isBoolean() -
getBoolean
public boolean getBoolean() -
isDouble
public boolean isDouble() -
getDouble
public double getDouble() -
isLong
public boolean isLong() -
getLong
public long getLong() -
isBigDecimal
public boolean isBigDecimal() -
getBigDecimal
-
isNull
public boolean isNull() -
isNone
public boolean isNone() -
isString
public boolean isString() -
getString
-
isUuid
public boolean isUuid() -
getUuid
-
isRecordId
public boolean isRecordId() -
getRecordId
-
isFile
public boolean isFile() -
getFile
-
isRange
public boolean isRange() -
getRangeStart
-
getRangeEnd
-
isRangeStartInclusive
public boolean isRangeStartInclusive()Whether the start bound of the range is inclusive (a..rather thana>..). Also false when the range has no start bound. -
isRangeEndInclusive
public boolean isRangeEndInclusive()Whether the end bound of the range is inclusive (..=brather than..b). Also false when the range has no end bound. -
isSet
public boolean isSet()Whether this value is a set: a sorted collection without duplicates. Sets are distinct from arrays, soisArray()is false for them. -
getSet
Returns the elements of this set, in the set's (sorted) order. -
isTable
public boolean isTable() -
getTable
Table name when this value is a table type. -
isBytes
public boolean isBytes() -
getBytes
public byte[] getBytes() -
isGeometry
public boolean isGeometry() -
getGeometry
-
isDateTime
public boolean isDateTime() -
getDateTime
-
isDuration
public boolean isDuration() -
getDuration
-
get
-