public class AggregateIndexHandler extends CompactIndexHandler
Constructor and Description |
---|
AggregateIndexHandler() |
Modifier and Type | Method and Description |
---|---|
void |
analyzeIndexDefinition(Table baseTable,
Index idx,
Table indexTable)
Requests that the handler validate an index definition and fill in
additional information about its stored representation.
|
protected Task<?> |
getIndexBuilderMapRedTask(java.util.Set<ReadEntity> inputs,
java.util.Set<WriteEntity> outputs,
java.util.List<FieldSchema> indexField,
boolean partitioned,
PartitionDesc indexTblPartDesc,
java.lang.String indexTableName,
PartitionDesc baseTablePartDesc,
java.lang.String baseTableName,
java.lang.String dbName) |
checkQuerySize, generateIndexQuery, usesIndexTable
generateIndexBuildTaskList, getConf, getPartKVPairStringArray, setConf
generateIndexQuery, getColumnNames
public void analyzeIndexDefinition(Table baseTable, Index idx, Table indexTable) throws HiveException
HiveIndexHandler
analyzeIndexDefinition
in interface HiveIndexHandler
analyzeIndexDefinition
in class CompactIndexHandler
baseTable
- the definition of the table being indexedidx
- the definition of the index being createdindexTable
- a partial definition of the index table to be used for storing the
index representation, or null if usesIndexTable() returns false;
the handler can augment the index's storage descriptor (e.g. with
information about input/output format) and/or the index table's
definition (typically with additional columns containing the index
representation, e.g. pointers into HDFS).HiveException
- if the index definition is invalid with respect to
either the base table or the supplied index table definitionprotected Task<?> getIndexBuilderMapRedTask(java.util.Set<ReadEntity> inputs, java.util.Set<WriteEntity> outputs, java.util.List<FieldSchema> indexField, boolean partitioned, PartitionDesc indexTblPartDesc, java.lang.String indexTableName, PartitionDesc baseTablePartDesc, java.lang.String baseTableName, java.lang.String dbName)
getIndexBuilderMapRedTask
in class CompactIndexHandler
Copyright © 2012 The Apache Software Foundation