org.apache.hadoop.hive.ql.optimizer
Class IndexUtils

java.lang.Object
  extended by org.apache.hadoop.hive.ql.optimizer.IndexUtils

public final class IndexUtils
extends Object

Utility class for index support. Currently used for BITMAP and AGGREGATE index


Method Summary
static Set<Partition> checkPartitionsCoveredByIndex(TableScanOperator tableScan, ParseContext pctx, Map<Table,List<org.apache.hadoop.hive.metastore.api.Index>> indexes)
          Check the partitions used by the table scan to make sure they also exist in the index table.
static Task<?> createRootTask(HiveConf builderConf, Set<ReadEntity> inputs, Set<WriteEntity> outputs, StringBuilder command, LinkedHashMap<String,String> partSpec, String indexTableName, String dbName)
           
static List<org.apache.hadoop.hive.metastore.api.Index> getIndexes(Table baseTableMetaData, List<String> matchIndexTypes)
          Get a list of indexes on a table that match given types.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkPartitionsCoveredByIndex

public static Set<Partition> checkPartitionsCoveredByIndex(TableScanOperator tableScan,
                                                           ParseContext pctx,
                                                           Map<Table,List<org.apache.hadoop.hive.metastore.api.Index>> indexes)
                                                    throws HiveException
Check the partitions used by the table scan to make sure they also exist in the index table.

Parameters:
pctx -
indexes -
Returns:
partitions used by query. null if they do not exist in index table
Throws:
HiveException

getIndexes

public static List<org.apache.hadoop.hive.metastore.api.Index> getIndexes(Table baseTableMetaData,
                                                                          List<String> matchIndexTypes)
                                                                   throws SemanticException
Get a list of indexes on a table that match given types.

Throws:
SemanticException

createRootTask

public static Task<?> createRootTask(HiveConf builderConf,
                                     Set<ReadEntity> inputs,
                                     Set<WriteEntity> outputs,
                                     StringBuilder command,
                                     LinkedHashMap<String,String> partSpec,
                                     String indexTableName,
                                     String dbName)


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