org.apache.blur.manager
Class IndexManager
java.lang.Object
org.apache.blur.manager.IndexManager
public class IndexManager
- extends Object
Method Summary |
void |
cancelQuery(String table,
String uuid)
|
void |
close()
|
List<BlurQueryStatus> |
currentQueries(String table)
|
void |
enqueue(List<RowMutation> mutations)
|
void |
enqueue(RowMutation mutation)
|
static void |
fetchRow(org.apache.lucene.index.IndexReader reader,
String table,
String shard,
Selector selector,
FetchResult fetchResult,
org.apache.lucene.search.Query highlightQuery,
FieldManager fieldManager,
int maxHeap,
TableContext tableContext,
org.apache.lucene.search.Filter filter)
|
static void |
fetchRow(org.apache.lucene.index.IndexReader reader,
String table,
String shard,
Selector selector,
FetchResult fetchResult,
org.apache.lucene.search.Query highlightQuery,
int maxHeap,
TableContext tableContext,
org.apache.lucene.search.Filter filter)
|
void |
fetchRow(String table,
Selector selector,
FetchResult fetchResult)
|
List<FetchResult> |
fetchRowBatch(String table,
List<Selector> selectors)
|
static ResetableDocumentStoredFieldVisitor |
getFieldSelector(Selector selector)
|
IndexServer |
getIndexServer()
|
void |
mutate(List<RowMutation> mutations)
|
void |
mutate(RowMutation mutation)
|
void |
optimize(String table,
int numberOfSegmentsPerShard)
|
String |
parseQuery(String table,
Query simpleQuery)
|
static void |
populateSelector(IndexSearcherClosable searcher,
String shardName,
String table,
Selector selector)
|
BlurResultIterable |
query(String table,
BlurQuery blurQuery,
java.util.concurrent.atomic.AtomicLongArray facetedCounts)
|
BlurQueryStatus |
queryStatus(String table,
String uuid)
|
List<String> |
queryStatusIdList(String table)
|
static long |
recordFrequency(org.apache.lucene.index.IndexReader reader,
String columnFamily,
String columnName,
String value)
|
long |
recordFrequency(String table,
String columnFamily,
String columnName,
String value)
|
static List<String> |
terms(org.apache.lucene.index.IndexReader reader,
String columnFamily,
String columnName,
String startWith,
short size)
|
List<String> |
terms(String table,
String columnFamily,
String columnName,
String startWith,
short size)
|
static void |
validSelector(Selector selector)
|
NOT_FOUND
public static final String NOT_FOUND
- See Also:
- Constant Field Values
DEBUG_RUN_SLOW
public static java.util.concurrent.atomic.AtomicBoolean DEBUG_RUN_SLOW
IndexManager
public IndexManager(IndexServer indexServer,
ClusterStatus clusterStatus,
BlurFilterCache filterCache,
int maxHeapPerRowFetch,
int fetchCount,
int threadCount,
int mutateThreadCount,
long statusCleanupTimerDelay,
int facetThreadCount,
DeepPagingCache deepPagingCache)
close
public void close()
fetchRowBatch
public List<FetchResult> fetchRowBatch(String table,
List<Selector> selectors)
throws BlurException
- Throws:
BlurException
fetchRow
public void fetchRow(String table,
Selector selector,
FetchResult fetchResult)
throws BlurException
- Throws:
BlurException
populateSelector
public static void populateSelector(IndexSearcherClosable searcher,
String shardName,
String table,
Selector selector)
throws IOException
- Throws:
IOException
validSelector
public static void validSelector(Selector selector)
throws BlurException
- Throws:
BlurException
query
public BlurResultIterable query(String table,
BlurQuery blurQuery,
java.util.concurrent.atomic.AtomicLongArray facetedCounts)
throws Exception
- Throws:
Exception
parseQuery
public String parseQuery(String table,
Query simpleQuery)
throws org.apache.lucene.queryparser.classic.ParseException,
BlurException
- Throws:
org.apache.lucene.queryparser.classic.ParseException
BlurException
cancelQuery
public void cancelQuery(String table,
String uuid)
currentQueries
public List<BlurQueryStatus> currentQueries(String table)
queryStatus
public BlurQueryStatus queryStatus(String table,
String uuid)
queryStatusIdList
public List<String> queryStatusIdList(String table)
fetchRow
public static void fetchRow(org.apache.lucene.index.IndexReader reader,
String table,
String shard,
Selector selector,
FetchResult fetchResult,
org.apache.lucene.search.Query highlightQuery,
int maxHeap,
TableContext tableContext,
org.apache.lucene.search.Filter filter)
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
fetchRow
public static void fetchRow(org.apache.lucene.index.IndexReader reader,
String table,
String shard,
Selector selector,
FetchResult fetchResult,
org.apache.lucene.search.Query highlightQuery,
FieldManager fieldManager,
int maxHeap,
TableContext tableContext,
org.apache.lucene.search.Filter filter)
throws org.apache.lucene.index.CorruptIndexException,
IOException
- Throws:
org.apache.lucene.index.CorruptIndexException
IOException
getFieldSelector
public static ResetableDocumentStoredFieldVisitor getFieldSelector(Selector selector)
getIndexServer
public IndexServer getIndexServer()
recordFrequency
public long recordFrequency(String table,
String columnFamily,
String columnName,
String value)
throws Exception
- Throws:
Exception
terms
public List<String> terms(String table,
String columnFamily,
String columnName,
String startWith,
short size)
throws Exception
- Throws:
Exception
recordFrequency
public static long recordFrequency(org.apache.lucene.index.IndexReader reader,
String columnFamily,
String columnName,
String value)
throws IOException
- Throws:
IOException
terms
public static List<String> terms(org.apache.lucene.index.IndexReader reader,
String columnFamily,
String columnName,
String startWith,
short size)
throws IOException
- Throws:
IOException
mutate
public void mutate(RowMutation mutation)
throws BlurException,
IOException
- Throws:
BlurException
IOException
mutate
public void mutate(List<RowMutation> mutations)
throws BlurException,
IOException
- Throws:
BlurException
IOException
enqueue
public void enqueue(List<RowMutation> mutations)
throws BlurException,
IOException
- Throws:
BlurException
IOException
optimize
public void optimize(String table,
int numberOfSegmentsPerShard)
throws BException
- Throws:
BException
enqueue
public void enqueue(RowMutation mutation)
throws BlurException,
IOException
- Throws:
BlurException
IOException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.