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

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

@InterfaceAudience.Private
public class ColumnReader
extends Object

Position one of these appropriately in the data block and you can call its methods to retrieve the family or qualifier at the current position.


Field Summary
protected  PrefixTreeBlockMeta blockMeta
          fields
protected  byte[] columnBuffer
           
protected  int columnLength
           
protected  ColumnNodeReader columnNodeReader
           
protected  int columnOffset
           
protected  ColumnNodeType nodeType
           
 
Constructor Summary
ColumnReader(byte[] columnBuffer, ColumnNodeType nodeType)
          construct
 
Method Summary
 void clearColumnBuffer()
           
 byte[] copyBufferToNewArray()
           
 int getColumnLength()
           
 int getColumnOffset()
          get/set
 void initOnBlock(PrefixTreeBlockMeta blockMeta, byte[] block)
           
 ColumnReader populateBuffer(int offsetIntoColumnData)
          methods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blockMeta

protected PrefixTreeBlockMeta blockMeta
fields


columnBuffer

protected byte[] columnBuffer

columnOffset

protected int columnOffset

columnLength

protected int columnLength

nodeType

protected ColumnNodeType nodeType

columnNodeReader

protected ColumnNodeReader columnNodeReader
Constructor Detail

ColumnReader

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

Method Detail

initOnBlock

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

populateBuffer

public ColumnReader populateBuffer(int offsetIntoColumnData)
methods


copyBufferToNewArray

public byte[] copyBufferToNewArray()

getColumnLength

public int getColumnLength()

clearColumnBuffer

public void clearColumnBuffer()

getColumnOffset

public int getColumnOffset()
get/set



Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.