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, resourceHints
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
PCollection<org.apache.hadoop.hbase.client.Result> |
expand(PBegin input)
Override this method to specify how this
PTransform should be expanded on the given
InputT . |
Configuration |
getConfiguration() |
ByteKeyRange |
getKeyRange()
Returns the range of keys that will be read from the table.
|
org.apache.hadoop.hbase.client.Scan |
getScan() |
java.lang.String |
getTableId() |
int |
hashCode() |
void |
populateDisplayData(DisplayData.Builder builder)
Register display data for the given transform or component.
|
HBaseIO.Read |
withConfiguration(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(java.lang.String tableId)
Reads from the specified table.
|
compose, compose, getAdditionalInputs, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setResourceHints, toString, validate, validate
public HBaseIO.Read withConfiguration(Configuration configuration)
public HBaseIO.Read withTableId(java.lang.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)
PTransform
PTransform
should be expanded on the given
InputT
.
NOTE: This method should not be called directly. Instead apply the PTransform
should
be applied to the InputT
using the apply
method.
Composite transforms, which are defined in terms of other transforms, should return the output of one of the composed transforms. Non-composite transforms, which do not apply any transforms internally, should return a new unbound output and register evaluators (via backend-specific registration methods).
expand
in class PTransform<PBegin,PCollection<org.apache.hadoop.hbase.client.Result>>
public void populateDisplayData(DisplayData.Builder builder)
PTransform
populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect
display data via DisplayData.from(HasDisplayData)
. Implementations may call super.populateDisplayData(builder)
in order to register display data in the current namespace,
but should otherwise use subcomponent.populateDisplayData(builder)
to use the namespace
of the subcomponent.
By default, does not register any display data. Implementors may override this method to provide their own display data.
populateDisplayData
in interface HasDisplayData
populateDisplayData
in class PTransform<PBegin,PCollection<org.apache.hadoop.hbase.client.Result>>
builder
- The builder to populate with display data.HasDisplayData
public Configuration getConfiguration()
public java.lang.String getTableId()
public org.apache.hadoop.hbase.client.Scan getScan()
public ByteKeyRange getKeyRange()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object