org.apache.hadoop.hbase.codec.prefixtree.decode
Class PrefixTreeArrayReversibleScanner

java.lang.Object
  extended by org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell
      extended by org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayScanner
          extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeArrayScanner
afterLast, beforeFirst, blockMeta, currentCellIndex, currentRowNode, familyReader, mvccVersionDecoder, nubCellsRemain, qualifierReader, rowNodes, rowNodeStackIndex, tagsReader, 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, tagsBuffer, tagsLength, tagsOffset, timestamp, type, TYPES, valueLength
 
Constructor Summary
PrefixTreeArrayReversibleScanner(PrefixTreeBlockMeta blockMeta, int rowTreeDepth, int rowBufferLength, int qualifierBufferLength, int tagsBufferLength)
          construct
 
Method Summary
protected  void descendToLastRowFromCurrentPosition()
           
 boolean equals(Object obj)
          Object methods
protected  boolean isDirectlyAfterNub()
           
protected  void positionAtLastCell()
           
protected  void positionAtLastRow()
           
 boolean previous()
          methods
 boolean previousRow(boolean endOfRow)
          Try to position the scanner in the row before the current row.
 
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, getTagBufferLength, 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, populateTag, populateTimestamp, populateType, populateValueOffsets, positionAtFirstCell, reInitFirstNode, releaseBlockReference, resetToBeforeFirstEntry, toString
 
Methods inherited from class org.apache.hadoop.hbase.codec.prefixtree.decode.PrefixTreeCell
compareTo, getFamily, getFamilyArray, getFamilyLength, getFamilyOffset, getKeyValueString, getMvccVersion, getQualifier, getQualifierArray, getQualifierLength, getQualifierOffset, getRow, getRowArray, getRowLength, getRowOffset, getTagsArray, getTagsLength, getTagsLengthUnsigned, getTagsOffset, getTimestamp, getTypeByte, getValue, getValueArray, getValueLength, getValueOffset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hbase.CellScanner
advance, current
 

Constructor Detail

PrefixTreeArrayReversibleScanner

public PrefixTreeArrayReversibleScanner(PrefixTreeBlockMeta blockMeta,
                                        int rowTreeDepth,
                                        int rowBufferLength,
                                        int qualifierBufferLength,
                                        int tagsBufferLength)
construct

Method Detail

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 © 2007-2016 The Apache Software Foundation. All Rights Reserved.