class CassandraEnumerator extends Object implements Enumerator<Object>
| Modifier and Type | Field and Description |
|---|---|
private com.datastax.driver.core.Row |
current |
private List<RelDataTypeField> |
fieldTypes |
private Iterator<com.datastax.driver.core.Row> |
iterator |
| Constructor and Description |
|---|
CassandraEnumerator(com.datastax.driver.core.ResultSet results,
RelProtoDataType protoRowType)
Creates a CassandraEnumerator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Object |
current()
Produce the next row from the results
|
private Object |
currentRowField(int index,
SqlTypeName typeName)
Get a field for the current row from the underlying object.
|
boolean |
moveNext() |
void |
reset() |
private Iterator<com.datastax.driver.core.Row> iterator
private com.datastax.driver.core.Row current
private List<RelDataTypeField> fieldTypes
public CassandraEnumerator(com.datastax.driver.core.ResultSet results,
RelProtoDataType protoRowType)
results - Cassandra result set (ResultSet)protoRowType - The type of resulting rowspublic Object current()
current in interface Enumerator<Object>private Object currentRowField(int index, SqlTypeName typeName)
index - Index of the field within the Row objecttypeName - Type of the field in this rowpublic boolean moveNext()
moveNext in interface Enumerator<Object>public void reset()
reset in interface Enumerator<Object>public void close()
close in interface AutoCloseableclose in interface Enumerator<Object>Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.