org.apache.blur.manager.writer
Class BlurIndex
java.lang.Object
org.apache.blur.manager.writer.BlurIndex
- Direct Known Subclasses:
- BlurIndexReadOnly, BlurIndexSimpleWriter
public abstract class BlurIndex
- extends Object
BlurIndex
public BlurIndex(ShardContext shardContext,
org.apache.lucene.store.Directory directory,
SharedMergeScheduler mergeScheduler,
ExecutorService searchExecutor,
BlurIndexCloser indexCloser,
BlurIndexWarmup indexWarmup)
throws IOException
- Throws:
IOException
getIndexSearcher
public abstract IndexSearcherClosable getIndexSearcher()
throws IOException
- Throws:
IOException
close
public abstract void close()
throws IOException
- Throws:
IOException
refresh
public abstract void refresh()
throws IOException
- Throws:
IOException
isClosed
public abstract AtomicBoolean isClosed()
optimize
public abstract void optimize(int numberOfSegmentsPerShard)
throws IOException
- Throws:
IOException
createSnapshot
public abstract void createSnapshot(String name)
throws IOException
- Throws:
IOException
removeSnapshot
public abstract void removeSnapshot(String name)
throws IOException
- Throws:
IOException
getSnapshots
public abstract List<String> getSnapshots()
throws IOException
- Throws:
IOException
getRecordCount
public long getRecordCount()
throws IOException
- Throws:
IOException
getRowCount
public long getRowCount()
throws IOException
- Throws:
IOException
getIndexMemoryUsage
public long getIndexMemoryUsage()
throws IOException
- Throws:
IOException
getSegmentCount
public long getSegmentCount()
throws IOException
- Throws:
IOException
getShardContext
public ShardContext getShardContext()
process
public abstract void process(IndexAction indexAction)
throws IOException
- Throws:
IOException
enqueue
public abstract void enqueue(List<RowMutation> mutations)
throws IOException
- Throws:
IOException
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.