@Internal public class ArrowTableSource extends Object implements StreamTableSource<RowData>
StreamTableSource
for serialized arrow record batch data.Constructor and Description |
---|
ArrowTableSource(DataType dataType,
byte[][] arrowData) |
Modifier and Type | Method and Description |
---|---|
DataStream<RowData> |
getDataStream(StreamExecutionEnvironment execEnv)
Returns the data of the table as a
DataStream . |
DataType |
getProducedDataType()
Returns the
DataType for the produced data of the TableSource . |
TableSchema |
getTableSchema()
Returns the schema of the produced table.
|
boolean |
isBounded()
Returns true if this is a bounded source, false if this is an unbounded source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
explainSource, getReturnType
public ArrowTableSource(DataType dataType, byte[][] arrowData)
public boolean isBounded()
StreamTableSource
isBounded
in interface StreamTableSource<RowData>
public DataStream<RowData> getDataStream(StreamExecutionEnvironment execEnv)
StreamTableSource
DataStream
.
NOTE: This method is for internal use only for defining a TableSource
. Do not use
it in Table API programs.
getDataStream
in interface StreamTableSource<RowData>
public TableSchema getTableSchema()
TableSource
getTableSchema
in interface TableSource<RowData>
TableSchema
of the produced table.public DataType getProducedDataType()
TableSource
DataType
for the produced data of the TableSource
.getProducedDataType
in interface TableSource<RowData>
DataStream
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.