public class FlightHolder extends Object implements AutoCloseable
| Constructor and Description |
|---|
FlightHolder(BufferAllocator allocator,
FlightDescriptor descriptor,
Schema schema,
DictionaryProvider dictionaryProvider)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Stream.StreamCreator |
addStream(Schema schema)
Adds a new streams which clients can populate via the returned object.
|
void |
close() |
FlightInfo |
getFlightInfo(Location l)
List all available streams as being available at
l. |
Stream |
getStream(ExampleTicket ticket)
Returns the stream based on the ordinal of ExampleTicket.
|
public FlightHolder(BufferAllocator allocator, FlightDescriptor descriptor, Schema schema, DictionaryProvider dictionaryProvider)
allocator - The allocator to use for allocating buffers to store data.descriptor - The descriptor for the streams.schema - The schema for the stream.dictionaryProvider - The dictionary provider for the stream.public Stream getStream(ExampleTicket ticket)
public Stream.StreamCreator addStream(Schema schema)
public FlightInfo getFlightInfo(Location l)
l.public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.