org.apache.hadoop.hbase.rest
Class AbstractController

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.AbstractController
All Implemented Interfaces:
RESTConstants
Direct Known Subclasses:
DatabaseController, RowController, ScannerController, TableController, TimestampController

public abstract class AbstractController
extends Object
implements RESTConstants


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.rest.RESTConstants
RESTConstants.FactoryMap
 
Field Summary
protected  org.apache.hadoop.conf.Configuration conf
           
protected  AbstractModel model
           
 
Fields inherited from interface org.apache.hadoop.hbase.rest.RESTConstants
COLUMN, COLUMNS, DISABLE, ENABLE, EXISTS, FALSE, FILTER, FILTER_RANK, FILTER_TYPE, FILTER_VALUE, filterFactories, LIMIT, METADATA, NAME, NUM_VERSIONS, REGIONS, ROW, ROWS, SCANNER, SCANNER_COLUMN, SCANNER_FILTER, SCANNER_RESULT_SIZE, SCANNER_START_ROW, SCANNER_STOP_ROW, SCANNER_TIMESTAMP, TIME_STAMPS, TRANSACTION, TRANSACTION_OPERATION, TRANSACTION_OPERATION_ABORT, TRANSACTION_OPERATION_COMMIT, TRANSACTION_OPERATION_CREATE, TRUE, VALUE
 
Constructor Summary
AbstractController()
           
 
Method Summary
abstract  void delete(Status s, byte[][] pathSegments, Map<String,String[]> queryMap)
           
protected abstract  AbstractModel generateModel(HBaseConfiguration conf, HBaseAdmin a)
           
abstract  void get(Status s, byte[][] pathSegments, Map<String,String[]> queryMap)
           
protected  byte[][] getColumnsFromQueryMap(Map<String,String[]> queryMap)
           
 void initialize(HBaseConfiguration conf, HBaseAdmin admin)
           
abstract  void post(Status s, byte[][] pathSegments, Map<String,String[]> queryMap, byte[] input, IHBaseRestParser parser)
           
abstract  void put(Status s, byte[][] pathSegments, Map<String,String[]> queryMap, byte[] input, IHBaseRestParser parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

conf

protected org.apache.hadoop.conf.Configuration conf

model

protected AbstractModel model
Constructor Detail

AbstractController

public AbstractController()
Method Detail

initialize

public void initialize(HBaseConfiguration conf,
                       HBaseAdmin admin)

get

public abstract void get(Status s,
                         byte[][] pathSegments,
                         Map<String,String[]> queryMap)
                  throws HBaseRestException
Throws:
HBaseRestException

post

public abstract void post(Status s,
                          byte[][] pathSegments,
                          Map<String,String[]> queryMap,
                          byte[] input,
                          IHBaseRestParser parser)
                   throws HBaseRestException
Throws:
HBaseRestException

put

public abstract void put(Status s,
                         byte[][] pathSegments,
                         Map<String,String[]> queryMap,
                         byte[] input,
                         IHBaseRestParser parser)
                  throws HBaseRestException
Throws:
HBaseRestException

delete

public abstract void delete(Status s,
                            byte[][] pathSegments,
                            Map<String,String[]> queryMap)
                     throws HBaseRestException
Throws:
HBaseRestException

generateModel

protected abstract AbstractModel generateModel(HBaseConfiguration conf,
                                               HBaseAdmin a)

getColumnsFromQueryMap

protected byte[][] getColumnsFromQueryMap(Map<String,String[]> queryMap)


Copyright © 2009 The Apache Software Foundation