org.apache.hadoop.hive.ql.index.compact
Class CompactIndexHandler
java.lang.Object
org.apache.hadoop.hive.ql.index.AbstractIndexHandler
org.apache.hadoop.hive.ql.index.compact.CompactIndexHandler
- All Implemented Interfaces:
- org.apache.hadoop.conf.Configurable, HiveIndexHandler
public class CompactIndexHandler
- extends AbstractIndexHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompactIndexHandler
public CompactIndexHandler()
analyzeIndexDefinition
public void analyzeIndexDefinition(Table baseTable,
Index index,
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.
- Parameters:
baseTable
- the definition of the table being indexedindex
- 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
generateIndexBuildTaskList
public List<Task<?>> generateIndexBuildTaskList(Table baseTbl,
Index index,
List<Partition> indexTblPartitions,
List<Partition> baseTblPartitions,
Table indexTbl,
Set<ReadEntity> inputs,
Set<WriteEntity> outputs)
throws HiveException
- Description copied from interface:
HiveIndexHandler
- Requests that the handler generate a plan for building the index; the plan
should read the base table and write out the index representation.
index
- the definition of the indexindexTblPartitions
- list of index partitionsbaseTblPartitions
- list of base table partitions with each element mirrors to the
corresponding one in indexTblPartitions
- Returns:
- list of tasks to be executed in parallel for building the index
- Throws:
HiveException
usesIndexTable
public boolean usesIndexTable()
- Description copied from interface:
HiveIndexHandler
- Determines whether this handler implements indexes by creating an index
table.
- Returns:
- true if index creation implies creation of an index table in Hive;
false if the index representation is not stored in a Hive table
getConf
public org.apache.hadoop.conf.Configuration getConf()
setConf
public void setConf(org.apache.hadoop.conf.Configuration conf)
Copyright © 2011 The Apache Software Foundation