public class JobContextIndexStore extends Object implements IndexStore
| Constructor and Description |
|---|
JobContextIndexStore(org.apache.hadoop.mapreduce.JobContext context,
IndexStore persistentIndexStore) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIndex(org.apache.hadoop.conf.Configuration config,
Index index) |
void |
addIndex(Index index) |
protected static Index |
getIndex(org.apache.hadoop.mapreduce.JobContext context,
String indexName) |
Index |
getIndex(String indexName) |
CloseableIterator<Index> |
getIndices() |
static Index[] |
getIndices(org.apache.hadoop.mapreduce.JobContext context) |
boolean |
indexExists(String indexName) |
void |
removeAll() |
void |
removeIndex(String indexName) |
public JobContextIndexStore(org.apache.hadoop.mapreduce.JobContext context,
IndexStore persistentIndexStore)
public void addIndex(Index index)
addIndex in interface IndexStorepublic Index getIndex(String indexName)
getIndex in interface IndexStorepublic boolean indexExists(String indexName)
indexExists in interface IndexStorepublic void removeAll()
removeAll in interface IndexStorepublic void removeIndex(String indexName)
removeIndex in interface IndexStorepublic CloseableIterator<Index> getIndices()
getIndices in interface IndexStorepublic static void addIndex(org.apache.hadoop.conf.Configuration config,
Index index)
protected static Index getIndex(org.apache.hadoop.mapreduce.JobContext context, String indexName)
public static Index[] getIndices(org.apache.hadoop.mapreduce.JobContext context)
Copyright © 2013–2022. All rights reserved.