Package org.apache.beam.sdk.io.hbase
Class HBaseIO.Read
- java.lang.Object
-
- org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result>>
-
- org.apache.beam.sdk.io.hbase.HBaseIO.Read
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.beam.sdk.transforms.display.HasDisplayData
- Enclosing class:
- HBaseIO
public static class HBaseIO.Read extends org.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result>>APTransformthat reads from HBase. See the class-level Javadoc onHBaseIOfor* more information.- See Also:
HBaseIO, Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(@Nullable java.lang.Object o)org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result>expand(org.apache.beam.sdk.values.PBegin input)org.apache.hadoop.conf.ConfigurationgetConfiguration()org.apache.beam.sdk.io.range.ByteKeyRangegetKeyRange()Returns the range of keys that will be read from the table.org.apache.hadoop.hbase.client.ScangetScan()java.lang.StringgetTableId()inthashCode()voidpopulateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)HBaseIO.ReadwithConfiguration(org.apache.hadoop.conf.Configuration configuration)Reads from the HBase instance indicated by the* given configuration.HBaseIO.ReadwithFilter(org.apache.hadoop.hbase.filter.Filter filter)Filters the rows read from HBase using the given* row filter.HBaseIO.ReadwithKeyRange(byte[] startRow, byte[] stopRow)Reads only rows in the specified range.HBaseIO.ReadwithKeyRange(org.apache.beam.sdk.io.range.ByteKeyRange keyRange)Reads only rows in the specified range.HBaseIO.ReadwithScan(org.apache.hadoop.hbase.client.Scan scan)Filters the rows read from HBase using the given* scan.HBaseIO.ReadwithTableId(java.lang.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 Detail
-
withConfiguration
public HBaseIO.Read withConfiguration(org.apache.hadoop.conf.Configuration configuration)
Reads from the HBase instance indicated by the* given configuration.
-
withTableId
public HBaseIO.Read withTableId(java.lang.String tableId)
Reads from the specified table.
-
withScan
public HBaseIO.Read withScan(org.apache.hadoop.hbase.client.Scan scan)
Filters the rows read from HBase using the given* scan.
-
withFilter
public HBaseIO.Read withFilter(org.apache.hadoop.hbase.filter.Filter filter)
Filters the rows read from HBase using the given* row filter.
-
withKeyRange
public HBaseIO.Read withKeyRange(org.apache.beam.sdk.io.range.ByteKeyRange keyRange)
Reads only rows in the specified range.
-
withKeyRange
public HBaseIO.Read withKeyRange(byte[] startRow, byte[] stopRow)
Reads only rows in the specified range.
-
expand
public org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result> expand(org.apache.beam.sdk.values.PBegin input)
- Specified by:
expandin classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result>>
-
populateDisplayData
public void populateDisplayData(org.apache.beam.sdk.transforms.display.DisplayData.Builder builder)
- Specified by:
populateDisplayDatain interfaceorg.apache.beam.sdk.transforms.display.HasDisplayData- Overrides:
populateDisplayDatain classorg.apache.beam.sdk.transforms.PTransform<org.apache.beam.sdk.values.PBegin,org.apache.beam.sdk.values.PCollection<org.apache.hadoop.hbase.client.Result>>
-
getConfiguration
public org.apache.hadoop.conf.Configuration getConfiguration()
-
getTableId
public java.lang.String getTableId()
-
getScan
public org.apache.hadoop.hbase.client.Scan getScan()
-
getKeyRange
public org.apache.beam.sdk.io.range.ByteKeyRange getKeyRange()
Returns the range of keys that will be read from the table.
-
equals
public boolean equals(@Nullable java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-