public class ReadHBase extends KeyValueOperator
The default read behavior returns the latest version of any retrieved cells. The versionCount property controls the number of versions returned for each cell. Optional row key, qualifier key (when mapping family as sub table), and time key (when versionCount > 1) fields can be specified to uniquely id each DataRush record.
Cell versions can also be filtered by a time range. The startTime and endTime properties specify the time range.
Each partition will read its assigned regions in row key ascending, qualifier key ascending, time key descending order. If cells from multiple families are mapped then they will be joined in the following manor:
WriteHBase
,
DeleteHBase
catalogTableName, cellSchemaFamilyName, keySchemaFamilyName, statsFamilyName
Constructor and Description |
---|
ReadHBase() |
Modifier and Type | Method and Description |
---|---|
void |
compose(CompositionContext ctx)
Compose the body of this operator.
|
Date |
getEndTime()
Get time range filter end time
|
boolean |
getOmitHBaseScan()
Get omit HBase Scan state
|
boolean |
getOmitHFileReader()
Get omit HFile Reader state
|
RecordPort |
getOutput() |
Date |
getStartTime()
Get time range filter start time
|
long |
getVersionCount()
Get cell version count
|
void |
setEndTime(Date endTime)
Set time range filter end time
|
void |
setOmitHBaseScan(boolean omitHBaseScan)
Set omit HBase Scan state.
|
void |
setOmitHFileReader(boolean omitHFileReader)
Set omit HFile Reader state.
|
void |
setStartTime(Date startTime)
Set time range filter start time
|
void |
setVersionCount(long versionCount)
Set cell version count
|
getCellFieldMap, getFamilyFieldMap, getHCatalogDatabase, getHCatalogFields, getHCatalogTable, mapCell, mapCell, mapCellRecord, mapFamily, mapFamily, mapFamilyRecord, mapFromHCatalog, mapToHCatalog, schemaSupportedByHCatalog, setCellFieldMap, setFamilyFieldMap, setHCatalogDatabase, setHCatalogFields, setHCatalogFields, setHCatalogTable, tableExistsInHCatalog
addFamily, effectiveConfiguration, getConfiguration, getFamilies, getFilesystem, getHiveMetastore, getQualifierFieldMap, getRootDirectory, getRowFieldMap, getTableName, getTimeFieldName, getZookeeperParentZNode, getZookeeperPort, getZookeeperQuorum, mapQualifier, mapRow, mapRowRecord, setConfiguration, setFamilies, setFilesystem, setHiveMetastore, setQualifierFieldMap, setRootDirectory, setRowFieldMap, setTableName, setTimeFieldName, setZookeeperParentZNode, setZookeeperPort, setZookeeperQuorum
disableParallelism, getInputPorts, getOutputPorts, newInput, newInput, newOutput, newRecordInput, newRecordInput, newRecordOutput, notifyError
public Date getStartTime()
public Date getEndTime()
public void setStartTime(Date startTime)
startTime
- time range start time inclusive.public void setEndTime(Date endTime)
endTime
- time range end time exclusivepublic long getVersionCount()
public void setVersionCount(long versionCount)
versionCount
- - the maximum number of versions to return for each cell. Defaults to 1.public boolean getOmitHBaseScan()
public void setOmitHBaseScan(boolean omitHBaseScan)
omitHBaseScan
- - boolean indicating whether to omit HBase Scan from result set. Defaults to false.public boolean getOmitHFileReader()
public void setOmitHFileReader(boolean omitHFileReader)
omitHFileReader
- - boolean indicating whether to omit HFile Reader from result set. Defaults to false.public void compose(CompositionContext ctx)
CompositeOperator
OperatorComposable.add(O)
OperatorComposable.connect(P, P)
. This includes
connections from the composite's input ports to sub-operators, connections between sub-operators, and
connections from sub-operators output ports to the composite's output portscompose
in class CompositeOperator
ctx
- the contextpublic RecordPort getOutput()
Copyright © 2024 Actian Corporation. All rights reserved.