Interface AsyncResultSet (2.21.0)

public interface AsyncResultSet extends ResultSet

Implements

ResultSet

Methods

<T>toList(Function<StructReader,T> arg0)

public abstract List<T> <T>toList(Function<StructReader,T> arg0)
Parameter
Name Description
arg0 com.google.common.base.Function<StructReader,T>
Returns
Type Description
List<T>
Exceptions
Type Description
SpannerException

<T>toListAsync(Function<StructReader,T> arg0, Executor arg1)

public abstract ApiFuture<List<T>> <T>toListAsync(Function<StructReader,T> arg0, Executor arg1)
Parameters
Name Description
arg0 com.google.common.base.Function<StructReader,T>
arg1 Executor
Returns
Type Description
ApiFuture<List<T>>

cancel()

public abstract void cancel()

resume()

public abstract void resume()

setCallback(Executor arg0, AsyncResultSet.ReadyCallback arg1)

public abstract ApiFuture<Void> setCallback(Executor arg0, AsyncResultSet.ReadyCallback arg1)
Parameters
Name Description
arg0 Executor
arg1 ReadyCallback
Returns
Type Description
ApiFuture<Void>

tryNext()

public abstract AsyncResultSet.CursorState tryNext()
Returns
Type Description
CursorState
Exceptions
Type Description
SpannerException