|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.hive.ql.index.AbstractIndexHandler org.apache.hadoop.hive.ql.index.TableBasedIndexHandler org.apache.hadoop.hive.ql.index.bitmap.BitmapIndexHandler
public class BitmapIndexHandler
Index handler for the bitmap index. Bitmap index uses an EWAH-compressed bitmap to represent the values in a table.
Constructor Summary | |
---|---|
BitmapIndexHandler()
|
Method Summary | |
---|---|
void |
analyzeIndexDefinition(org.apache.hadoop.hive.metastore.api.Table baseTable,
org.apache.hadoop.hive.metastore.api.Index index,
org.apache.hadoop.hive.metastore.api.Table indexTable)
Requests that the handler validate an index definition and fill in additional information about its stored representation. |
boolean |
checkQuerySize(long querySize,
HiveConf hiveConf)
Check the size of an input query to make sure it fits within the bounds |
void |
generateIndexQuery(List<org.apache.hadoop.hive.metastore.api.Index> indexes,
ExprNodeDesc predicate,
ParseContext pctx,
HiveIndexQueryContext queryContext)
Generate the list of tasks required to run an index optimized sub-query for the given predicate, using the given indexes. |
boolean |
usesIndexTable()
Determines whether this handler implements indexes by creating an index table. |
Methods inherited from class org.apache.hadoop.hive.ql.index.TableBasedIndexHandler |
---|
generateIndexBuildTaskList, getConf, setConf |
Methods inherited from class org.apache.hadoop.hive.ql.index.AbstractIndexHandler |
---|
generateIndexQuery, getColumnNames |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BitmapIndexHandler()
Method Detail |
---|
public void generateIndexQuery(List<org.apache.hadoop.hive.metastore.api.Index> indexes, ExprNodeDesc predicate, ParseContext pctx, HiveIndexQueryContext queryContext)
HiveIndexHandler
queryContext
- contains results, such as query tasks and input configurationpublic void analyzeIndexDefinition(org.apache.hadoop.hive.metastore.api.Table baseTable, org.apache.hadoop.hive.metastore.api.Index index, org.apache.hadoop.hive.metastore.api.Table indexTable) throws HiveException
HiveIndexHandler
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).
HiveException
- if the index definition is invalid with respect to
either the base table or the supplied index table definitionpublic boolean checkQuerySize(long querySize, HiveConf hiveConf)
HiveIndexHandler
checkQuerySize
in interface HiveIndexHandler
checkQuerySize
in class AbstractIndexHandler
querySize
- size (in bytes) of the query in question
public boolean usesIndexTable()
HiveIndexHandler
usesIndexTable
in interface HiveIndexHandler
usesIndexTable
in class TableBasedIndexHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |