org.apache.hadoop.hive.ql.index
Class AbstractIndexHandler

java.lang.Object
  extended by org.apache.hadoop.hive.ql.index.AbstractIndexHandler
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, HiveIndexHandler
Direct Known Subclasses:
TableBasedIndexHandler

public abstract class AbstractIndexHandler
extends Object
implements HiveIndexHandler

Abstract base class for index handlers. This is provided as insulation so that as HiveIndexHandler evolves, default implementations of new methods can be added here in order to avoid breaking existing plugin implementations.


Constructor Summary
AbstractIndexHandler()
           
 
Method Summary
 boolean checkQuerySize(long inputSize, HiveConf conf)
          Check the size of an input query to make sure it fits within the bounds
 void generateIndexQuery(org.apache.hadoop.hive.metastore.api.Index index, ExprNodeDesc predicate, ParseContext pctx, HiveIndexQueryContext queryContext)
           
static String getColumnNames(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemas)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.hive.ql.index.HiveIndexHandler
analyzeIndexDefinition, generateIndexBuildTaskList, generateIndexQuery, usesIndexTable
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
 

Constructor Detail

AbstractIndexHandler

public AbstractIndexHandler()
Method Detail

getColumnNames

public static String getColumnNames(List<org.apache.hadoop.hive.metastore.api.FieldSchema> fieldSchemas)

generateIndexQuery

public void generateIndexQuery(org.apache.hadoop.hive.metastore.api.Index index,
                               ExprNodeDesc predicate,
                               ParseContext pctx,
                               HiveIndexQueryContext queryContext)

checkQuerySize

public boolean checkQuerySize(long inputSize,
                              HiveConf conf)
Description copied from interface: HiveIndexHandler
Check the size of an input query to make sure it fits within the bounds

Specified by:
checkQuerySize in interface HiveIndexHandler
Parameters:
inputSize - size (in bytes) of the query in question
Returns:
true if query is within the bounds


Copyright © 2014 The Apache Software Foundation. All rights reserved.