org.apache.hadoop.hbase.rest.parser
Class XMLRestParser

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.parser.XMLRestParser
All Implemented Interfaces:
IHBaseRestParser

public class XMLRestParser
extends Object
implements IHBaseRestParser


Constructor Summary
XMLRestParser()
           
 
Method Summary
 HColumnDescriptor getColumnDescriptor(Element columnfamily)
           
 ArrayList<HColumnDescriptor> getColumnDescriptors(byte[] input)
           
 RowUpdateDescriptor getRowUpdateDescriptor(byte[] input, byte[][] pathSegments)
           
 ScannerDescriptor getScannerDescriptor(byte[] input)
           
 HTableDescriptor getTableDescriptor(byte[] input)
          Parses a HTableDescriptor given the input array.
protected  String makeColumnName(String column)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLRestParser

public XMLRestParser()
Method Detail

getTableDescriptor

public HTableDescriptor getTableDescriptor(byte[] input)
                                    throws HBaseRestException
Description copied from interface: IHBaseRestParser
Parses a HTableDescriptor given the input array.

Specified by:
getTableDescriptor in interface IHBaseRestParser
Returns:
HTableDescriptor
Throws:
HBaseRestException

getColumnDescriptor

public HColumnDescriptor getColumnDescriptor(Element columnfamily)

makeColumnName

protected String makeColumnName(String column)

getColumnDescriptors

public ArrayList<HColumnDescriptor> getColumnDescriptors(byte[] input)
                                                  throws HBaseRestException
Specified by:
getColumnDescriptors in interface IHBaseRestParser
Throws:
HBaseRestException

getScannerDescriptor

public ScannerDescriptor getScannerDescriptor(byte[] input)
                                       throws HBaseRestException
Specified by:
getScannerDescriptor in interface IHBaseRestParser
Throws:
HBaseRestException

getRowUpdateDescriptor

public RowUpdateDescriptor getRowUpdateDescriptor(byte[] input,
                                                  byte[][] pathSegments)
                                           throws HBaseRestException
Specified by:
getRowUpdateDescriptor in interface IHBaseRestParser
Throws:
HBaseRestException


Copyright © 2009 The Apache Software Foundation