public static class HBaseIO.Read extends PTransform<PBegin,PCollection<org.apache.hadoop.hbase.client.Result>>
PTransform that reads from HBase. See the class-level Javadoc on HBaseIO for*
more information.HBaseIO,
Serialized Formname| Modifier and Type | Method and Description |
|---|---|
PCollection<org.apache.hadoop.hbase.client.Result> |
expand(PBegin input) |
org.apache.hadoop.conf.Configuration |
getConfiguration() |
ByteKeyRange |
getKeyRange()
Returns the range of keys that will be read from the table.
|
String |
getTableId() |
void |
populateDisplayData(DisplayData.Builder builder) |
HBaseIO.Read |
withConfiguration(org.apache.hadoop.conf.Configuration configuration)
Reads from the HBase instance indicated by the* given configuration.
|
HBaseIO.Read |
withFilter(org.apache.hadoop.hbase.filter.Filter filter)
Filters the rows read from HBase using the given* row filter.
|
HBaseIO.Read |
withKeyRange(byte[] startRow,
byte[] stopRow)
Reads only rows in the specified range.
|
HBaseIO.Read |
withKeyRange(ByteKeyRange keyRange)
Reads only rows in the specified range.
|
HBaseIO.Read |
withScan(org.apache.hadoop.hbase.client.Scan scan)
Filters the rows read from HBase using the given* scan.
|
HBaseIO.Read |
withTableId(String tableId)
Reads from the specified table.
|
getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toString, validatepublic HBaseIO.Read withConfiguration(org.apache.hadoop.conf.Configuration configuration)
public HBaseIO.Read withTableId(String tableId)
public HBaseIO.Read withScan(org.apache.hadoop.hbase.client.Scan scan)
public HBaseIO.Read withFilter(org.apache.hadoop.hbase.filter.Filter filter)
public HBaseIO.Read withKeyRange(ByteKeyRange keyRange)
public HBaseIO.Read withKeyRange(byte[] startRow, byte[] stopRow)
public PCollection<org.apache.hadoop.hbase.client.Result> expand(PBegin input)
expand in class PTransform<PBegin,PCollection<org.apache.hadoop.hbase.client.Result>>public void populateDisplayData(DisplayData.Builder builder)
populateDisplayData in interface HasDisplayDatapopulateDisplayData in class PTransform<PBegin,PCollection<org.apache.hadoop.hbase.client.Result>>public String getTableId()
public org.apache.hadoop.conf.Configuration getConfiguration()
public ByteKeyRange getKeyRange()
Copyright © 2016–2018 The Apache Software Foundation. All rights reserved.