Class ArrowTableSource
- java.lang.Object
-
- org.apache.flink.table.runtime.arrow.sources.ArrowTableSource
-
- All Implemented Interfaces:
StreamTableSource<RowData>
,TableSource<RowData>
@Internal public class ArrowTableSource extends Object implements StreamTableSource<RowData>
AStreamTableSource
for serialized arrow record batch data.
-
-
Constructor Summary
Constructors Constructor Description ArrowTableSource(DataType dataType, byte[][] arrowData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStream<RowData>
getDataStream(StreamExecutionEnvironment execEnv)
Returns the data of the table as aDataStream
.DataType
getProducedDataType()
Returns theDataType
for the produced data of theTableSource
.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.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.legacy.sources.TableSource
explainSource, getReturnType
-
-
-
-
Constructor Detail
-
ArrowTableSource
public ArrowTableSource(DataType dataType, byte[][] arrowData)
-
-
Method Detail
-
isBounded
public boolean isBounded()
Description copied from interface:StreamTableSource
Returns true if this is a bounded source, false if this is an unbounded source. Default is unbounded for compatibility.- Specified by:
isBounded
in interfaceStreamTableSource<RowData>
-
getDataStream
public DataStream<RowData> getDataStream(StreamExecutionEnvironment execEnv)
Description copied from interface:StreamTableSource
Returns the data of the table as aDataStream
.NOTE: This method is for internal use only for defining a
TableSource
. Do not use it in Table API programs.- Specified by:
getDataStream
in interfaceStreamTableSource<RowData>
-
getTableSchema
public TableSchema getTableSchema()
Description copied from interface:TableSource
Returns the schema of the produced table.- Specified by:
getTableSchema
in interfaceTableSource<RowData>
- Returns:
- The
TableSchema
of the produced table.
-
getProducedDataType
public DataType getProducedDataType()
Description copied from interface:TableSource
Returns theDataType
for the produced data of theTableSource
.- Specified by:
getProducedDataType
in interfaceTableSource<RowData>
- Returns:
- The data type of the returned
DataStream
.
-
-