public class HBaseRowDataInputFormat extends AbstractTableInputFormat<org.apache.flink.table.data.RowData>
InputFormat subclass that wraps the access for HTables. Returns the result as RowDataconnection, currentRow, endReached, resultScanner, scan, scannedRows, serializedConfig, table| 构造器和说明 |
|---|
HBaseRowDataInputFormat(org.apache.hadoop.conf.Configuration conf,
String tableName,
org.apache.flink.connector.hbase.util.HBaseTableSchema schema,
String nullStringLiteral) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.hadoop.hbase.client.Scan |
getScanner()
Returns an instance of Scan that retrieves the required subset of records from the HBase
table.
|
String |
getTableName()
What table is to be read.
|
protected void |
initTable()
Creates a
Scan object and opens the HTable connection to initialize the HBase
table. |
protected org.apache.flink.table.data.RowData |
mapResultToOutType(org.apache.hadoop.hbase.client.Result res)
HBase returns an instance of
Result. |
close, closeTable, configure, createInputSplits, getConnection, getHadoopConfiguration, getInputSplitAssigner, getStatistics, includeRegionInScan, nextRecord, open, reachedEndprotected void initTable()
throws IOException
AbstractTableInputFormatScan object and opens the HTable connection to initialize the HBase
table.initTable 在类中 AbstractTableInputFormat<org.apache.flink.table.data.RowData>IOException - Thrown, if the connection could not be opened due to an I/O problem.protected org.apache.hadoop.hbase.client.Scan getScanner()
AbstractTableInputFormatgetScanner 在类中 AbstractTableInputFormat<org.apache.flink.table.data.RowData>public String getTableName()
AbstractTableInputFormatPer instance of a TableInputFormat derivative only a single table name is possible.
getTableName 在类中 AbstractTableInputFormat<org.apache.flink.table.data.RowData>protected org.apache.flink.table.data.RowData mapResultToOutType(org.apache.hadoop.hbase.client.Result res)
AbstractTableInputFormatResult.
This method maps the returned Result instance into the output type T.
mapResultToOutType 在类中 AbstractTableInputFormat<org.apache.flink.table.data.RowData>res - The Result instance from HBase that needs to be convertedT that contains the data of Result.Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.