public class ColumnReader extends Object
| Constructor and Description |
|---|
ColumnReader(com.datastax.driver.core.Row row) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(CqlIdentifier name)
Returns the row's column value.
|
<T> T |
get(CqlIdentifier name,
Class<T> requestedType)
Returns the row's column value as an instance of the given type.
|
Object |
get(int index)
Read data from a Column using the
index. |
<T> T |
get(int i,
Class<T> requestedType)
Returns the row's column value as an instance of the given type.
|
Object |
get(String name)
Returns the row's column value.
|
<T> T |
get(String name,
Class<T> requestedType)
Returns the row's column value as an instance of the given type.
|
com.datastax.driver.core.Row |
getRow() |
@Nullable public Object get(CqlIdentifier name)
@Nullable public Object get(int index)
index.index - public com.datastax.driver.core.Row getRow()
@Nullable public <T> T get(CqlIdentifier name, Class<T> requestedType)
ClassCastException - if the value cannot be converted to the requested type.@Nullable public <T> T get(String name, Class<T> requestedType)
ClassCastException - if the value cannot be converted to the requested type.@Nullable public <T> T get(int i, Class<T> requestedType)
ClassCastException - if the value cannot be converted to the requested type.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.