public class StreamingBigtableResultScanner extends AbstractBigtableResultScanner
ResultScanner
implementation against the v1 bigtable API.Modifier and Type | Class and Description |
---|---|
protected static class |
StreamingBigtableResultScanner.ResponseQueueReader
Helper to read a queue of ResultQueueEntries and use the RowMergers to reconstruct
complete Row objects from the partial ReadRowsResponse objects.
|
static class |
StreamingBigtableResultScanner.RowMerger
Builds a complete Row from partial ReadRowsResponse objects.
|
Constructor and Description |
---|
StreamingBigtableResultScanner(int capacity,
int readPartialRowTimeoutMillis,
CancellationToken cancellationToken) |
Modifier and Type | Method and Description |
---|---|
void |
addResult(ReadRowsResponse response) |
void |
close()
Close the scanner and release any resources allocated for it.
|
void |
complete() |
Row |
next()
Read the next row and block until a row is available.
|
void |
setError(Throwable error) |
next
public StreamingBigtableResultScanner(int capacity, int readPartialRowTimeoutMillis, CancellationToken cancellationToken)
public void addResult(ReadRowsResponse response)
public void setError(Throwable error)
public void complete()
public Row next() throws IOException
ResultScanner
IOException
public void close() throws IOException
ResultScanner
IOException
Copyright © 2015. All rights reserved.