org.apache.hadoop.hbase.codec.prefixtree.decode.row
Class RowNodeReader

java.lang.Object
  extended by org.apache.hadoop.hbase.codec.prefixtree.decode.row.RowNodeReader

@InterfaceAudience.Private
public class RowNodeReader
extends Object

Position one of these appropriately in the data block and you can call its methods to retrieve information necessary to decode the cells in the row.


Field Summary
protected  byte[] block
          fields
protected  int familyOffsetsOffset
           
protected  int fanIndex
           
protected  int fanOffset
           
protected  int fanOut
           
protected  int mvccVersionIndexesOffset
           
protected  int nextNodeOffsetsOffset
           
protected  int numCells
           
protected  int offset
           
protected  int operationTypesOffset
           
protected  int qualifierOffsetsOffset
           
protected  int timestampIndexesOffset
           
protected  int tokenLength
           
protected  int tokenOffset
           
protected  int valueLengthsOffset
           
protected  int valueOffsetsOffset
           
 
Constructor Summary
RowNodeReader()
           
 
Method Summary
 String getBranchNubLeafIndicator()
           
 int getColumnOffset(int index, PrefixTreeBlockMeta blockMeta)
           
 int getFamilyOffset(int index, PrefixTreeBlockMeta blockMeta)
           
 byte getFanByte(int i)
           
protected  String getFanByteReadable(int i)
          for debugging
 int getFanIndex()
           
 int getFanOut()
           
 int getLastCellIndex()
           
 int getLastFanIndex()
           
 int getMvccVersionIndex(int index, PrefixTreeBlockMeta blockMeta)
           
 int getNextNodeOffset(int index, PrefixTreeBlockMeta blockMeta)
           
 int getNumCells()
           
 int getOffset()
           
 int getTimestampIndex(int index, PrefixTreeBlockMeta blockMeta)
           
 byte[] getToken()
           
 int getTokenArrayOffset()
           
 int getTokenLength()
           
 int getType(int index, PrefixTreeBlockMeta blockMeta)
           
 int getValueLength(int index, PrefixTreeBlockMeta blockMeta)
           
 int getValueOffset(int index, PrefixTreeBlockMeta blockMeta)
           
 boolean hasChildren()
           
 boolean hasFan()
           
 boolean hasMoreFanNodes()
           
 boolean hasOccurrences()
           
 boolean hasPreviousFanNodes()
           
 void initOnBlock(PrefixTreeBlockMeta blockMeta, byte[] block, int offset)
          construct
 boolean isBranch()
           
 boolean isLeaf()
          methods
 boolean isNub()
           
 boolean isOnLastFanNode()
           
 void resetFanIndex()
           
 void setFanIndex(int fanIndex)
           
 String toString()
          standard methods
 int whichFanNode(byte searchForByte)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

block

protected byte[] block
fields


offset

protected int offset

fanIndex

protected int fanIndex

numCells

protected int numCells

tokenOffset

protected int tokenOffset

tokenLength

protected int tokenLength

fanOffset

protected int fanOffset

fanOut

protected int fanOut

familyOffsetsOffset

protected int familyOffsetsOffset

qualifierOffsetsOffset

protected int qualifierOffsetsOffset

timestampIndexesOffset

protected int timestampIndexesOffset

mvccVersionIndexesOffset

protected int mvccVersionIndexesOffset

operationTypesOffset

protected int operationTypesOffset

valueOffsetsOffset

protected int valueOffsetsOffset

valueLengthsOffset

protected int valueLengthsOffset

nextNodeOffsetsOffset

protected int nextNodeOffsetsOffset
Constructor Detail

RowNodeReader

public RowNodeReader()
Method Detail

initOnBlock

public void initOnBlock(PrefixTreeBlockMeta blockMeta,
                        byte[] block,
                        int offset)
construct


isLeaf

public boolean isLeaf()
methods


isNub

public boolean isNub()

isBranch

public boolean isBranch()

hasOccurrences

public boolean hasOccurrences()

getTokenArrayOffset

public int getTokenArrayOffset()

getTokenLength

public int getTokenLength()

getFanByte

public byte getFanByte(int i)

getFanByteReadable

protected String getFanByteReadable(int i)
for debugging


getFamilyOffset

public int getFamilyOffset(int index,
                           PrefixTreeBlockMeta blockMeta)

getColumnOffset

public int getColumnOffset(int index,
                           PrefixTreeBlockMeta blockMeta)

getTimestampIndex

public int getTimestampIndex(int index,
                             PrefixTreeBlockMeta blockMeta)

getMvccVersionIndex

public int getMvccVersionIndex(int index,
                               PrefixTreeBlockMeta blockMeta)

getType

public int getType(int index,
                   PrefixTreeBlockMeta blockMeta)

getValueOffset

public int getValueOffset(int index,
                          PrefixTreeBlockMeta blockMeta)

getValueLength

public int getValueLength(int index,
                          PrefixTreeBlockMeta blockMeta)

getNextNodeOffset

public int getNextNodeOffset(int index,
                             PrefixTreeBlockMeta blockMeta)

getBranchNubLeafIndicator

public String getBranchNubLeafIndicator()

hasChildren

public boolean hasChildren()

getLastFanIndex

public int getLastFanIndex()

getLastCellIndex

public int getLastCellIndex()

getNumCells

public int getNumCells()

getFanOut

public int getFanOut()

getToken

public byte[] getToken()

getOffset

public int getOffset()

whichFanNode

public int whichFanNode(byte searchForByte)

resetFanIndex

public void resetFanIndex()

getFanIndex

public int getFanIndex()

setFanIndex

public void setFanIndex(int fanIndex)

hasFan

public boolean hasFan()

hasPreviousFanNodes

public boolean hasPreviousFanNodes()

hasMoreFanNodes

public boolean hasMoreFanNodes()

isOnLastFanNode

public boolean isOnLastFanNode()

toString

public String toString()
standard methods

Overrides:
toString in class Object


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.