org.apache.hadoop.hbase.rest
Class ScannerController

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.AbstractController
      extended by org.apache.hadoop.hbase.rest.ScannerController
All Implemented Interfaces:
RESTConstants

public class ScannerController
extends AbstractController


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.rest.RESTConstants
RESTConstants.FactoryMap
 
Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.rest.AbstractController
conf, 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
ScannerController()
           
 
Method Summary
protected  ScannerIdentifier createScanner(ScannerModel innerModel, byte[] tableName, ScannerDescriptor scannerDescriptor)
           
 void delete(Status s, byte[][] pathSegments, Map<String,String[]> queryMap)
           
protected  AbstractModel generateModel(HBaseConfiguration conf, HBaseAdmin a)
           
 void get(Status s, byte[][] pathSegments, Map<String,String[]> queryMap)
           
protected  ScannerModel getModel()
           
protected  RowFilterInterface getStopRow(byte[] stopRow)
           
protected  RowFilterInterface getStopRowUnionFilter(byte[] stopRow, RowFilterInterface filter)
           
 void post(Status s, byte[][] pathSegments, Map<String,String[]> queryMap, byte[] input, IHBaseRestParser parser)
           
 void put(Status s, byte[][] pathSegments, Map<String,String[]> queryMap, byte[] input, IHBaseRestParser parser)
           
 ScannerIdentifier scannerSwitch(int switchInt, ScannerModel innerModel, byte[] tableName, byte[][] columns, long timestamp, byte[] startRow, byte[] stopRow, RowFilterInterface filterSet)
           
protected  RowFilterInterface unionFilters(String filters)
          Given a list of filters in JSON string form, returns a RowSetFilter that returns true if all input filters return true on a Row (aka an AND statement).
 
Methods inherited from class org.apache.hadoop.hbase.rest.AbstractController
getColumnsFromQueryMap, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerController

public ScannerController()
Method Detail

delete

public void delete(Status s,
                   byte[][] pathSegments,
                   Map<String,String[]> queryMap)
            throws HBaseRestException
Specified by:
delete in class AbstractController
Throws:
HBaseRestException

generateModel

protected AbstractModel generateModel(HBaseConfiguration conf,
                                      HBaseAdmin a)
Specified by:
generateModel in class AbstractController

getModel

protected ScannerModel getModel()

get

public void get(Status s,
                byte[][] pathSegments,
                Map<String,String[]> queryMap)
         throws HBaseRestException
Specified by:
get in class AbstractController
Throws:
HBaseRestException

post

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

put

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

createScanner

protected ScannerIdentifier createScanner(ScannerModel innerModel,
                                          byte[] tableName,
                                          ScannerDescriptor scannerDescriptor)
                                   throws HBaseRestException
Throws:
HBaseRestException

scannerSwitch

public ScannerIdentifier scannerSwitch(int switchInt,
                                       ScannerModel innerModel,
                                       byte[] tableName,
                                       byte[][] columns,
                                       long timestamp,
                                       byte[] startRow,
                                       byte[] stopRow,
                                       RowFilterInterface filterSet)
                                throws HBaseRestException
Throws:
HBaseRestException

getStopRow

protected RowFilterInterface getStopRow(byte[] stopRow)

getStopRowUnionFilter

protected RowFilterInterface getStopRowUnionFilter(byte[] stopRow,
                                                   RowFilterInterface filter)

unionFilters

protected RowFilterInterface unionFilters(String filters)
                                   throws HBaseRestException
Given a list of filters in JSON string form, returns a RowSetFilter that returns true if all input filters return true on a Row (aka an AND statement).

Parameters:
filters - array of input filters in a JSON String
Returns:
RowSetFilter with all input filters in an AND Statement
Throws:
HBaseRestException


Copyright © 2010 The Apache Software Foundation