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 IndexStore
public Index getIndex(String indexName)
getIndex
in interface IndexStore
public boolean indexExists(String indexName)
indexExists
in interface IndexStore
public void removeAll()
removeAll
in interface IndexStore
public void removeIndex(String indexName)
removeIndex
in interface IndexStore
public CloseableIterator<Index> getIndices()
getIndices
in interface IndexStore
public 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.