Class HBaseIO.Read
- All Implemented Interfaces:
Serializable
,HasDisplayData
- Enclosing class:
HBaseIO
PTransform
that reads from HBase. See the class-level Javadoc on HBaseIO
for*
more information.- See Also:
-
Field Summary
Fields inherited from class org.apache.beam.sdk.transforms.PTransform
annotations, displayData, name, resourceHints
-
Method Summary
Modifier and TypeMethodDescriptionboolean
PCollection
<org.apache.hadoop.hbase.client.Result> Override this method to specify how thisPTransform
should be expanded on the givenInputT
.org.apache.hadoop.conf.Configuration
Returns the range of keys that will be read from the table.org.apache.hadoop.hbase.client.Scan
getScan()
int
hashCode()
void
populateDisplayData
(DisplayData.Builder builder) Register display data for the given transform or component.withConfiguration
(org.apache.hadoop.conf.Configuration configuration) Reads from the HBase instance indicated by the* given configuration.withFilter
(org.apache.hadoop.hbase.filter.Filter filter) Filters the rows read from HBase using the given* row filter.withKeyRange
(byte[] startRow, byte[] stopRow) Reads only rows in the specified range.withKeyRange
(ByteKeyRange keyRange) Reads only rows in the specified range.withScan
(org.apache.hadoop.hbase.client.Scan scan) Filters the rows read from HBase using the given* scan.withTableId
(String tableId) Reads from the specified table.Methods inherited from class org.apache.beam.sdk.transforms.PTransform
addAnnotation, compose, compose, getAdditionalInputs, getAnnotations, getDefaultOutputCoder, getDefaultOutputCoder, getDefaultOutputCoder, getKindString, getName, getResourceHints, setDisplayData, setResourceHints, toString, validate, validate
-
Method Details
-
withConfiguration
Reads from the HBase instance indicated by the* given configuration. -
withTableId
Reads from the specified table. -
withScan
Filters the rows read from HBase using the given* scan. -
withFilter
Filters the rows read from HBase using the given* row filter. -
withKeyRange
Reads only rows in the specified range. -
withKeyRange
Reads only rows in the specified range. -
expand
Description copied from class:PTransform
Override this method to specify how thisPTransform
should be expanded on the givenInputT
.NOTE: This method should not be called directly. Instead apply the
PTransform
should be applied to theInputT
using theapply
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).
- Specified by:
expand
in classPTransform<PBegin,
PCollection<org.apache.hadoop.hbase.client.Result>>
-
populateDisplayData
Description copied from class:PTransform
Register display data for the given transform or component.populateDisplayData(DisplayData.Builder)
is invoked by Pipeline runners to collect display data viaDisplayData.from(HasDisplayData)
. Implementations may callsuper.populateDisplayData(builder)
in order to register display data in the current namespace, but should otherwise usesubcomponent.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.
- Specified by:
populateDisplayData
in interfaceHasDisplayData
- Overrides:
populateDisplayData
in classPTransform<PBegin,
PCollection<org.apache.hadoop.hbase.client.Result>> - Parameters:
builder
- The builder to populate with display data.- See Also:
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration() -
getTableId
-
getScan
public org.apache.hadoop.hbase.client.Scan getScan() -
getKeyRange
Returns the range of keys that will be read from the table. -
equals
-
hashCode
public int hashCode()
-