org.apache.hadoop.hbase.codec.prefixtree.decode.column
Class ColumnNodeReader

java.lang.Object
  extended by org.apache.hadoop.hbase.codec.prefixtree.decode.column.ColumnNodeReader

@InterfaceAudience.Private
public class ColumnNodeReader
extends Object


Field Summary
protected  byte[] block
           
protected  PrefixTreeBlockMeta blockMeta
          fields
protected  byte[] columnBuffer
           
protected  ColumnNodeType nodeType
           
protected  int offsetIntoBlock
           
protected  int parentStartPosition
           
protected  int tokenLength
           
protected  int tokenOffsetIntoBlock
           
 
Constructor Summary
ColumnNodeReader(byte[] columnBuffer, ColumnNodeType nodeType)
          construct
 
Method Summary
 int getParentStartPosition()
           
 int getTokenLength()
          get/set
 void initOnBlock(PrefixTreeBlockMeta blockMeta, byte[] block)
           
 boolean isRoot()
           
 void positionAt(int offsetIntoBlock)
          methods
 void prependTokenToBuffer(int bufferStartIndex)
           
 String toString()
          standard methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

blockMeta

protected PrefixTreeBlockMeta blockMeta
fields


block

protected byte[] block

nodeType

protected ColumnNodeType nodeType

columnBuffer

protected byte[] columnBuffer

offsetIntoBlock

protected int offsetIntoBlock

tokenOffsetIntoBlock

protected int tokenOffsetIntoBlock

tokenLength

protected int tokenLength

parentStartPosition

protected int parentStartPosition
Constructor Detail

ColumnNodeReader

public ColumnNodeReader(byte[] columnBuffer,
                        ColumnNodeType nodeType)
construct

Method Detail

initOnBlock

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

positionAt

public void positionAt(int offsetIntoBlock)
methods


prependTokenToBuffer

public void prependTokenToBuffer(int bufferStartIndex)

isRoot

public boolean isRoot()

toString

public String toString()
standard methods

Overrides:
toString in class Object

getTokenLength

public int getTokenLength()
get/set


getParentStartPosition

public int getParentStartPosition()


Copyright © 2015 The Apache Software Foundation. All rights reserved.