public class ColumnReader extends Object
Modifier and Type | Field and Description |
---|---|
protected com.datastax.driver.core.ColumnDefinitions |
columns |
protected com.datastax.driver.core.Row |
row |
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.
|
Object |
getCollection(int i,
com.datastax.driver.core.DataType type) |
com.datastax.driver.core.Row |
getRow() |
protected com.datastax.driver.core.Row row
protected com.datastax.driver.core.ColumnDefinitions columns
public Object get(CqlIdentifier name)
public Object get(int index)
index
.index
- public Object getCollection(int i, com.datastax.driver.core.DataType type)
public com.datastax.driver.core.Row getRow()
public <T> T get(CqlIdentifier name, Class<T> requestedType)
ClassCastException
- if the value cannot be converted to the requested type.public <T> T get(String name, Class<T> requestedType)
ClassCastException
- if the value cannot be converted to the requested type.public <T> T get(int i, Class<T> requestedType)
ClassCastException
- if the value cannot be converted to the requested type.Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.