HBaseInputFormat.@Deprecated public abstract class TableInputFormat<T extends org.apache.flink.api.java.tuple.Tuple> extends HBaseInputFormat<T>
InputFormat subclass that wraps the access for HTables.| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
currentRow |
protected boolean |
endReached |
protected static org.slf4j.Logger |
LOG |
protected org.apache.hadoop.hbase.client.ResultScanner |
resultScanner
HBase iterator wrapper.
|
protected org.apache.hadoop.hbase.client.Scan |
scan |
protected long |
scannedRows |
protected byte[] |
serializedConfig |
protected org.apache.hadoop.hbase.client.HTable |
table |
| Constructor and Description |
|---|
TableInputFormat(org.apache.hadoop.conf.Configuration hConf)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeInputFormat() |
org.apache.flink.connector.hbase.source.TableInputSplit[] |
createInputSplits(int minNumSplits) |
protected org.apache.hadoop.conf.Configuration |
getHadoopConfiguration() |
org.apache.flink.core.io.InputSplitAssigner |
getInputSplitAssigner(org.apache.flink.connector.hbase.source.TableInputSplit[] inputSplits) |
org.apache.flink.api.common.io.statistics.BaseStatistics |
getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStatistics) |
protected boolean |
includeRegionInScan(byte[] startKey,
byte[] endKey)
Test if the given region is to be included in the scan while splitting the regions of a
table.
|
T |
nextRecord(T reuse) |
void |
open(org.apache.flink.connector.hbase.source.TableInputSplit split) |
boolean |
reachedEnd() |
configure, getScanner, getTableName, mapResultToOutType, mapResultToTupleprotected static final org.slf4j.Logger LOG
protected boolean endReached
protected transient org.apache.hadoop.hbase.client.HTable table
protected transient org.apache.hadoop.hbase.client.Scan scan
protected org.apache.hadoop.hbase.client.ResultScanner resultScanner
protected byte[] currentRow
protected long scannedRows
protected byte[] serializedConfig
public TableInputFormat(org.apache.hadoop.conf.Configuration hConf)
protected org.apache.hadoop.conf.Configuration getHadoopConfiguration()
public void open(org.apache.flink.connector.hbase.source.TableInputSplit split)
throws IOException
IOExceptionpublic T nextRecord(T reuse)
throws IOException
IOExceptionpublic boolean reachedEnd()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void closeInputFormat()
throws IOException
closeInputFormat in class org.apache.flink.api.common.io.RichInputFormat<T,org.apache.flink.connector.hbase.source.TableInputSplit>IOExceptionpublic org.apache.flink.connector.hbase.source.TableInputSplit[] createInputSplits(int minNumSplits)
throws IOException
IOExceptionprotected boolean includeRegionInScan(byte[] startKey,
byte[] endKey)
startKey - Start key of the regionendKey - End key of the regionpublic org.apache.flink.core.io.InputSplitAssigner getInputSplitAssigner(org.apache.flink.connector.hbase.source.TableInputSplit[] inputSplits)
public org.apache.flink.api.common.io.statistics.BaseStatistics getStatistics(org.apache.flink.api.common.io.statistics.BaseStatistics cachedStatistics)
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.