public class GrpcIterators extends Object
GrpcGrakn.TxResponses for gRPC. These iterators are used for returning
lazy, streaming responses such as for Graql query results.| Modifier and Type | Method and Description |
|---|---|
GrpcIterator.IteratorId |
add(Iterator<GrpcGrakn.TxResponse> iterator)
Register a new iterator and return the ID of the iterator
|
static GrpcIterators |
create() |
Optional<GrpcGrakn.TxResponse> |
next(GrpcIterator.IteratorId iteratorId)
Return the next response from an iterator.
|
void |
stop(GrpcIterator.IteratorId iteratorId)
Stop an iterator
|
public static GrpcIterators create()
public GrpcIterator.IteratorId add(Iterator<GrpcGrakn.TxResponse> iterator)
public Optional<GrpcGrakn.TxResponse> next(GrpcIterator.IteratorId iteratorId)
GrpcGrakn.Done response if the iterator is exhausted.public void stop(GrpcIterator.IteratorId iteratorId)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.