public class Stream extends Object implements AutoCloseable, Iterable<ArrowRecordBatch>
| Modifier and Type | Class and Description |
|---|---|
static class |
Stream.StreamCreator
Provides the functionality to create a new stream by adding batches serially.
|
| Constructor and Description |
|---|
Stream(Schema schema,
DictionaryProvider dictionaryProvider,
List<ArrowRecordBatch> batches,
long recordCount)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getRecordCount() |
Schema |
getSchema() |
String |
getUuid() |
Iterator<ArrowRecordBatch> |
iterator() |
void |
sendTo(BufferAllocator allocator,
FlightProducer.ServerStreamListener listener)
Sends that data from this object to the given listener.
|
void |
verify(ExampleTicket ticket)
Throws an IllegalStateException if the given ticket doesn't correspond to this stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Stream(Schema schema, DictionaryProvider dictionaryProvider, List<ArrowRecordBatch> batches, long recordCount)
schema - The schema for the record batches.batches - The data associated with the stream.recordCount - The total record count across all batches.public Schema getSchema()
public Iterator<ArrowRecordBatch> iterator()
iterator in interface Iterable<ArrowRecordBatch>public long getRecordCount()
public String getUuid()
public void sendTo(BufferAllocator allocator, FlightProducer.ServerStreamListener listener)
public void verify(ExampleTicket ticket)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.