org.apache.hadoop.hive.ql.index
Class AggregateIndexHandler
java.lang.Object
org.apache.hadoop.hive.ql.index.AbstractIndexHandler
org.apache.hadoop.hive.ql.index.TableBasedIndexHandler
org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler
org.apache.hadoop.hive.ql.index.AggregateIndexHandler
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, HiveIndexHandler
public class AggregateIndexHandler
- extends CompactIndexHandler
Index handler for indexes that have aggregate functions on indexed columns.
AggregateIndexHandler
public AggregateIndexHandler()
analyzeIndexDefinition
public void analyzeIndexDefinition(org.apache.hadoop.hive.metastore.api.Table baseTable,
org.apache.hadoop.hive.metastore.api.Index idx,
org.apache.hadoop.hive.metastore.api.Table indexTable)
throws HiveException
- Description copied from interface:
HiveIndexHandler
- Requests that the handler validate an index definition and fill in
additional information about its stored representation.
- Specified by:
analyzeIndexDefinition
in interface HiveIndexHandler
- Overrides:
analyzeIndexDefinition
in class CompactIndexHandler
- Parameters:
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).
- Throws:
HiveException
- if the index definition is invalid with respect to
either the base table or the supplied index table definition
Copyright © 2014 The Apache Software Foundation. All rights reserved.