org.apache.pig.backend.hadoop.hbase
Class HBaseStorage.ColumnInfo

java.lang.Object
  extended by org.apache.pig.backend.hadoop.hbase.HBaseStorage.ColumnInfo
Enclosing class:
HBaseStorage

public class HBaseStorage.ColumnInfo
extends Object

Class to encapsulate logic around which column names were specified in each position of the column list. Users can specify columns names in one of 4 ways: 'Foo:', 'Foo:*', 'Foo:bar*' or 'Foo:bar'. The first 3 result in a Map being added to the tuple, while the last results in a scalar. The 3rd form results in a prefix-filtered Map.


Constructor Summary
HBaseStorage.ColumnInfo(String colName)
           
 
Method Summary
 byte[] getColumnFamily()
           
 byte[] getColumnName()
           
 byte[] getColumnPrefix()
           
 boolean hasPrefixMatch(byte[] qualifier)
           
 boolean isColumnMap()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HBaseStorage.ColumnInfo

public HBaseStorage.ColumnInfo(String colName)
Method Detail

getColumnFamily

public byte[] getColumnFamily()

getColumnName

public byte[] getColumnName()

getColumnPrefix

public byte[] getColumnPrefix()

isColumnMap

public boolean isColumnMap()

hasPrefixMatch

public boolean hasPrefixMatch(byte[] qualifier)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007-2012 The Apache Software Foundation