public class EmptyResultSet extends ResultSetAdapter
ResultSet
implementationResultSetAdapter
,
ResultSet
Modifier and Type | Field and Description |
---|---|
protected static EmptyResultSet |
INSTANCE |
Constructor and Description |
---|
EmptyResultSet() |
Modifier and Type | Method and Description |
---|---|
List<com.datastax.driver.core.Row> |
all() |
List<com.datastax.driver.core.ExecutionInfo> |
getAllExecutionInfo() |
int |
getAvailableWithoutFetching() |
com.datastax.driver.core.ExecutionInfo |
getExecutionInfo() |
boolean |
isExhausted() |
boolean |
isFullyFetched() |
Iterator<com.datastax.driver.core.Row> |
iterator() |
static com.datastax.driver.core.ResultSet |
nullSafeResultSet(com.datastax.driver.core.ResultSet resultSet)
Returns the given
ResultSet if not null, otherwise returns an empty ResultSet . |
com.datastax.driver.core.Row |
one() |
fetchMoreResults, getColumnDefinitions, wasApplied
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final EmptyResultSet INSTANCE
public static com.datastax.driver.core.ResultSet nullSafeResultSet(com.datastax.driver.core.ResultSet resultSet)
ResultSet
if not null, otherwise returns an empty ResultSet
.resultSet
- ResultSet
to evaluate for null.ResultSet
if not null, otherwise return an empty ResultSet
.ResultSet
public boolean isExhausted()
isExhausted
in interface com.datastax.driver.core.ResultSet
isExhausted
in class ResultSetAdapter
public boolean isFullyFetched()
isFullyFetched
in interface com.datastax.driver.core.ResultSet
isFullyFetched
in class ResultSetAdapter
public int getAvailableWithoutFetching()
getAvailableWithoutFetching
in interface com.datastax.driver.core.ResultSet
getAvailableWithoutFetching
in class ResultSetAdapter
public List<com.datastax.driver.core.ExecutionInfo> getAllExecutionInfo()
getAllExecutionInfo
in interface com.datastax.driver.core.ResultSet
getAllExecutionInfo
in class ResultSetAdapter
public com.datastax.driver.core.ExecutionInfo getExecutionInfo()
getExecutionInfo
in interface com.datastax.driver.core.ResultSet
getExecutionInfo
in class ResultSetAdapter
public List<com.datastax.driver.core.Row> all()
all
in interface com.datastax.driver.core.ResultSet
all
in class ResultSetAdapter
public Iterator<com.datastax.driver.core.Row> iterator()
iterator
in interface com.datastax.driver.core.ResultSet
iterator
in interface Iterable<com.datastax.driver.core.Row>
iterator
in class ResultSetAdapter
public com.datastax.driver.core.Row one()
one
in interface com.datastax.driver.core.ResultSet
one
in class ResultSetAdapter
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.