org.apache.hadoop.hbase.codec.prefixtree.decode
Class PrefixTreeArrayReversibleScanner
java.lang.Object
org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell
org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayScanner
org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayReversibleScanner
- All Implemented Interfaces:
- Comparable<Cell>, Cell, CellScanner, ReversibleCellScanner
- Direct Known Subclasses:
- PrefixTreeArraySearcher
@InterfaceAudience.Private
public class PrefixTreeArrayReversibleScanner
- extends PrefixTreeArrayScanner
- implements ReversibleCellScanner
Methods for going backwards through a PrefixTree block. This class is split out on its own to
simplify the Scanner superclass and Searcher subclass.
Fields inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayScanner |
afterLast, beforeFirst, blockMeta, currentCellIndex, currentRowNode, familyReader, mvccVersionDecoder, nubCellsRemain, qualifierReader, rowNodes, rowNodeStackIndex, timestampDecoder |
Fields inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell |
absoluteValueOffset, block, DEFAULT_TYPE, familyBuffer, familyLength, familyOffset, includeMvccVersion, mvccVersion, qualifierBuffer, qualifierLength, qualifierOffset, rowBuffer, rowLength, timestamp, type, TYPES, valueLength |
Methods inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayScanner |
advance, appendCurrentTokenToRowBuffer, appendToRowBuffer, areBuffersBigEnough, current, discardCurrentRowNode, followCurrentFan, followFan, followFirstFan, followLastFan, followNextFan, followPreviousFan, getBlockMeta, getMaxRowTreeStackNodes, getQualifierBufferLength, getRowBufferLength, getTreeBytes, hashCode, hasOccurrences, initFirstNode, initOnBlock, isAfterLast, isBeforeFirst, isBranch, isFirstCellInRow, isLastCellInRow, isLeaf, isNub, isOutOfBounds, markAfterLast, markBeforeFirst, nextRow, nextRowInternal, popFromRowBuffer, populateFamily, populateFirstNonRowFields, populateLastNonRowFields, populateMvccVersion, populateNonRowFields, populateNonRowFieldsAndCompareTo, populatePreviousNonRowFields, populateQualifier, populateTimestamp, populateType, populateValueOffsets, positionAtFirstCell, reInitFirstNode, releaseBlockReference, resetToBeforeFirstEntry, toString |
Methods inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell |
compareTo, getFamilyArray, getFamilyLength, getFamilyOffset, getKeyValueString, getMvccVersion, getQualifierArray, getQualifierLength, getQualifierOffset, getRowArray, getRowLength, getRowOffset, getTagsArray, getTagsLength, getTagsOffset, getTimestamp, getTypeByte, getValueArray, getValueLength, getValueOffset |
PrefixTreeArrayReversibleScanner
public PrefixTreeArrayReversibleScanner(PrefixTreeBlockMeta blockMeta,
int rowTreeDepth,
int rowBufferLength,
int qualifierBufferLength)
- construct
equals
public boolean equals(Object obj)
- Object methods
- Overrides:
equals
in class PrefixTreeArrayScanner
previous
public boolean previous()
- methods
- Specified by:
previous
in interface ReversibleCellScanner
- Returns:
- true if the operation was successful, meaning getCurrentCell() will return a valid
Cell.
false if there were no previous cells, meaning getCurrentCell() will return null.
Scanner position will be
CellScannerPosition.BEFORE_FIRST
previousRow
public boolean previousRow(boolean endOfRow)
- Description copied from interface:
ReversibleCellScanner
- Try to position the scanner in the row before the current row.
- Specified by:
previousRow
in interface ReversibleCellScanner
- Parameters:
endOfRow
- true for the last cell in the previous row; false for the first cell
- Returns:
- true if the operation was successful, meaning getCurrentCell() will return a valid
Cell.
false if there were no previous cells, meaning getCurrentCell() will return null.
Scanner position will be
CellScannerPosition.BEFORE_FIRST
isDirectlyAfterNub
protected boolean isDirectlyAfterNub()
positionAtLastRow
protected void positionAtLastRow()
descendToLastRowFromCurrentPosition
protected void descendToLastRowFromCurrentPosition()
positionAtLastCell
protected void positionAtLastCell()
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.