public interface Result
DistributedStorage
.Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.String columnName)
Indicates whether it contains the specified column.
|
java.lang.Object |
getAsObject(java.lang.String columnName)
Returns the value of the specified column as a Java Object type.
|
long |
getBigInt(java.lang.String columnName)
Returns the BIGINT value of the specified column as a Java long type.
|
default java.nio.ByteBuffer |
getBlob(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java ByteBuffer type.
|
java.nio.ByteBuffer |
getBlobAsByteBuffer(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java ByteBuffer type.
|
byte[] |
getBlobAsBytes(java.lang.String columnName)
Returns the BLOB value of the specified column as a Java byte array type.
|
boolean |
getBoolean(java.lang.String columnName)
Returns the BOOLEAN value of the specified column as a Java boolean type.
|
java.util.Optional<Key> |
getClusteringKey()
Returns the clustering
Key |
java.util.Map<java.lang.String,Column<?>> |
getColumns()
Returns a map of
Column s in this result. |
java.util.Set<java.lang.String> |
getContainedColumnNames()
Returns a set of the contained column names.
|
double |
getDouble(java.lang.String columnName)
Returns the DOUBLE value of the specified column as a Java double type.
|
float |
getFloat(java.lang.String columnName)
Returns the FLOAT value of the specified column as a Java float type.
|
int |
getInt(java.lang.String columnName)
Returns the INT value of the specified column as a Java int type.
|
java.util.Optional<Key> |
getPartitionKey()
Returns the partition
Key |
java.lang.String |
getText(java.lang.String columnName)
Returns the TEXT value of the specified column as a Java String type.
|
java.util.Optional<Value<?>> |
getValue(java.lang.String columnName)
Deprecated.
As of release 3.6.0. Will be removed in release 5.0.0
|
java.util.Map<java.lang.String,Value<?>> |
getValues()
Deprecated.
As of release 3.6.0. Will be removed in release 5.0.0
|
boolean |
isNull(java.lang.String columnName)
Indicates whether the value of the specified column is NULL.
|
java.util.Optional<Key> getPartitionKey()
Key
Optional
with the partition Key
java.util.Optional<Key> getClusteringKey()
Key
Optional
with the clustering Key
@Deprecated java.util.Optional<Value<?>> getValue(java.lang.String columnName)
Value
which the specified column name is mapped to
Note that if the value is NULL, it will return a Value
object with a default value.
columnName
- a column name of the Value
Optional
with the Value
@Deprecated java.util.Map<java.lang.String,Value<?>> getValues()
Value
s
Note that if the value in the map is NULL, the value will be a Value
object with a
default value.
Value
sboolean isNull(java.lang.String columnName)
columnName
- a column name of the valueboolean getBoolean(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valueint getInt(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuelong getBigInt(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0. If this doesn't work for you, either call isNull(String)
before calling
this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuefloat getFloat(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
columnName
- a column name of the valuedouble getDouble(java.lang.String columnName)
Note that, due to its signature, this method cannot return null. If the value is NULL, it
will return 0.0. If this doesn't work for you, either call isNull(String)
before
calling this method, or use getAsObject(String)
instead.
columnName
- a column name of the value@Nullable java.lang.String getText(java.lang.String columnName)
columnName
- a column name of the value@Nullable default java.nio.ByteBuffer getBlob(java.lang.String columnName)
columnName
- a column name of the value@Nullable java.nio.ByteBuffer getBlobAsByteBuffer(java.lang.String columnName)
columnName
- a column name of the value@Nullable byte[] getBlobAsBytes(java.lang.String columnName)
columnName
- a column name of the value@Nullable java.lang.Object getAsObject(java.lang.String columnName)
If the columns is a BOOLEAN type, it returns a Boolean
object. If the columns is an
INT type, it returns an Integer
object. If the columns is a BIGINT type, it returns a
LONG
object. If the columns is a FLOAT type, it returns a FLOAT
object. If the
columns is a DOUBLE type, it returns a DOUBLE
object. If the columns is a TEXT type, it
returns a String
object. If the columns is a BLOB type, it returns a ByteBuffer
object.
columnName
- a column name of the valueboolean contains(java.lang.String columnName)
columnName
- a column name of the valuejava.util.Set<java.lang.String> getContainedColumnNames()