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