public interface Row extends GettableByIndex, GettableByName, GettableById, Detachable
The default implementation returned by the driver is immutable and serializable. If you write your own implementation, it should at least be thread-safe; serializability is not mandatory, but recommended for use with some 3rd-party tools like Apache Spark ™.
Modifier and Type | Method and Description |
---|---|
ColumnDefinitions |
getColumnDefinitions() |
default String |
getFormattedContents()
Returns a string representation of the contents of this row.
|
String |
toString()
Returns an abstract representation of this object, that may not include the row's
contents.
|
get, get, get, getBigDecimal, getBigInteger, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNull
firstIndexOf, getType
get, get, get, getBigDecimal, getBigInteger, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNull
get, get, get, getBigDecimal, getBigInteger, getBoolean, getByte, getByteBuffer, getBytesUnsafe, getCqlDuration, getDouble, getFloat, getInetAddress, getInstant, getInt, getList, getLocalDate, getLocalTime, getLong, getMap, getObject, getSet, getShort, getString, getToken, getTupleValue, getUdtValue, getUuid, isNull
firstIndexOf, getType
getType, size
codecRegistry, protocolVersion
attach, isDetached
@NonNull ColumnDefinitions getColumnDefinitions()
@NonNull default String getFormattedContents()
This produces a comma-separated list enclosed in square brackets. Each column is represented by its name, followed by a column and the value as a CQL literal. For example:
[id:1, name:'test']Notes:
String toString()
The driver's built-in Row
implementation returns the default format of Object.toString()
: the class name, followed by the at-sign and the hash code of the object.
Omitting the contents was a deliberate choice, because we feel it would make it too easy to
accidentally leak data (e.g. in application logs). If you want the contents, use getFormattedContents()
.
Copyright © 2017–2020. All rights reserved.