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) |
void |
validate(PipelineOptions options) |
HBaseIO.Read |
withConfiguration(org.apache.hadoop.conf.Configuration configuration)
Returns a new
HBaseIO.Read that will read from the HBase instance
indicated by the given configuration. |
HBaseIO.Read |
withFilter(org.apache.hadoop.hbase.filter.Filter filter)
Returns a new
HBaseIO.Read that will filter the rows read from HBase
using the given row filter. |
HBaseIO.Read |
withKeyRange(byte[] startRow,
byte[] stopRow)
Returns a new
HBaseIO.Read that will read only rows in the specified range. |
HBaseIO.Read |
withKeyRange(ByteKeyRange keyRange)
Returns a new
HBaseIO.Read that will read only rows in the specified range. |
HBaseIO.Read |
withScan(org.apache.hadoop.hbase.client.Scan scan)
Returns a new
HBaseIO.Read that will filter the rows read from HBase
using the given scan. |
HBaseIO.Read |
withTableId(String tableId)
Returns a new
HBaseIO.Read that will read from the specified table. |
getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, toStringpublic HBaseIO.Read withConfiguration(org.apache.hadoop.conf.Configuration configuration)
HBaseIO.Read that will read from the HBase instance
indicated by the given configuration.public HBaseIO.Read withTableId(String tableId)
HBaseIO.Read that will read from the specified table.
Does not modify this object.
public HBaseIO.Read withScan(org.apache.hadoop.hbase.client.Scan scan)
HBaseIO.Read that will filter the rows read from HBase
using the given scan.
Does not modify this object.
public HBaseIO.Read withFilter(org.apache.hadoop.hbase.filter.Filter filter)
HBaseIO.Read that will filter the rows read from HBase
using the given row filter.
Does not modify this object.
public HBaseIO.Read withKeyRange(ByteKeyRange keyRange)
HBaseIO.Read that will read only rows in the specified range.
Does not modify this object.
public HBaseIO.Read withKeyRange(byte[] startRow, byte[] stopRow)
HBaseIO.Read that will read only rows in the specified range.
Does not modify this object.
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 validate(PipelineOptions options)
validate 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–2017 The Apache Software Foundation. All rights reserved.