public class BatchSelectTableSink extends Object implements BatchTableSink<Row>, SelectTableSink
SelectTableSink
for batch select job.Constructor and Description |
---|
BatchSelectTableSink(TableSchema tableSchema) |
Modifier and Type | Method and Description |
---|---|
DataSink<?> |
consumeDataSet(DataSet<Row> dataSet)
Consumes the DataSet and return the
DataSink . |
DataType |
getConsumedDataType()
Returns the data type consumed by this
TableSink . |
CloseableIterator<Row> |
getResultIterator()
Returns the select result as row iterator.
|
TableSchema |
getTableSchema()
Returns the schema of the consumed table.
|
void |
setJobClient(JobClient jobClient)
Set the job client associated with the select job to retrieve the result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
getFieldNames, getFieldTypes, getOutputType
public BatchSelectTableSink(TableSchema tableSchema)
public DataType getConsumedDataType()
TableSink
TableSink
.getConsumedDataType
in interface TableSink<Row>
TableSink
.public TableSchema getTableSchema()
TableSink
getTableSchema
in interface TableSink<Row>
TableSchema
of the consumed table.public DataSink<?> consumeDataSet(DataSet<Row> dataSet)
BatchTableSink
consumeDataSet
in interface BatchTableSink<Row>
public void setJobClient(JobClient jobClient)
SelectTableSink
setJobClient
in interface SelectTableSink
public CloseableIterator<Row> getResultIterator()
SelectTableSink
getResultIterator
in interface SelectTableSink
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.