public abstract class TableBasedIndexHandler extends AbstractIndexHandler
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
configuration |
Constructor and Description |
---|
TableBasedIndexHandler() |
Modifier and Type | Method and Description |
---|---|
List<Task<?>> |
generateIndexBuildTaskList(Table baseTbl,
Index index,
List<Partition> indexTblPartitions,
List<Partition> baseTblPartitions,
Table indexTbl,
Set<ReadEntity> inputs,
Set<WriteEntity> outputs)
Requests that the handler generate a plan for building the index; the plan
should read the base table and write out the index representation.
|
org.apache.hadoop.conf.Configuration |
getConf() |
protected Task<?> |
getIndexBuilderMapRedTask(Set<ReadEntity> inputs,
Set<WriteEntity> outputs,
Index index,
boolean partitioned,
PartitionDesc indexTblPartDesc,
String indexTableName,
PartitionDesc baseTablePartDesc,
String baseTableName,
String dbName) |
protected Task<?> |
getIndexBuilderMapRedTask(Set<ReadEntity> inputs,
Set<WriteEntity> outputs,
List<FieldSchema> indexField,
boolean partitioned,
PartitionDesc indexTblPartDesc,
String indexTableName,
PartitionDesc baseTablePartDesc,
String baseTableName,
String dbName) |
protected List<String> |
getPartKVPairStringArray(LinkedHashMap<String,String> partSpec) |
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
protected void |
setStatsDir(HiveConf builderConf) |
boolean |
usesIndexTable()
Determines whether this handler implements indexes by creating an index
table.
|
checkQuerySize, generateIndexQuery, getColumnNames
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
analyzeIndexDefinition, generateIndexQuery
public List<Task<?>> generateIndexBuildTaskList(Table baseTbl, Index index, List<Partition> indexTblPartitions, List<Partition> baseTblPartitions, Table indexTbl, Set<ReadEntity> inputs, Set<WriteEntity> outputs) throws HiveException
HiveIndexHandler
baseTbl
- the definition of the table being indexedindex
- the definition of the indexbaseTblPartitions
- list of base table partitions with each element mirrors to the
corresponding one in indexTblPartitionsindexTbl
- the definition of the index table, or null if usesIndexTable()
returns nullinputs
- inputs for hooks, supplemental outputs going
along with the return valueoutputs
- outputs for hooks, supplemental outputs going
along with the return valueHiveException
- if plan generation failsprotected Task<?> getIndexBuilderMapRedTask(Set<ReadEntity> inputs, Set<WriteEntity> outputs, Index index, boolean partitioned, PartitionDesc indexTblPartDesc, String indexTableName, PartitionDesc baseTablePartDesc, String baseTableName, String dbName) throws HiveException
HiveException
protected Task<?> getIndexBuilderMapRedTask(Set<ReadEntity> inputs, Set<WriteEntity> outputs, List<FieldSchema> indexField, boolean partitioned, PartitionDesc indexTblPartDesc, String indexTableName, PartitionDesc baseTablePartDesc, String baseTableName, String dbName) throws HiveException
HiveException
protected void setStatsDir(HiveConf builderConf)
protected List<String> getPartKVPairStringArray(LinkedHashMap<String,String> partSpec)
public boolean usesIndexTable()
HiveIndexHandler
public org.apache.hadoop.conf.Configuration getConf()
public void setConf(org.apache.hadoop.conf.Configuration conf)
Copyright © 2017 The Apache Software Foundation. All rights reserved.