public final class IndexUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Set<Partition> |
checkPartitionsCoveredByIndex(TableScanOperator tableScan,
ParseContext pctx,
List<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<Index> |
getAllIndexes(Table table,
short max) |
static List<Index> |
getIndexes(Table baseTableMetaData,
List<String> matchIndexTypes)
Get a list of indexes on a table that match given types.
|
public static Set<Partition> checkPartitionsCoveredByIndex(TableScanOperator tableScan, ParseContext pctx, List<Index> indexes) throws HiveException
pctx
- indexes
- HiveException
public static List<Index> getIndexes(Table baseTableMetaData, List<String> matchIndexTypes) throws SemanticException
SemanticException
public static List<Index> getAllIndexes(Table table, short max) throws HiveException
HiveException
public static Task<?> createRootTask(HiveConf builderConf, Set<ReadEntity> inputs, Set<WriteEntity> outputs, StringBuilder command, LinkedHashMap<String,String> partSpec, String indexTableName, String dbName)
Copyright © 2017 The Apache Software Foundation. All rights reserved.