org.apache.blur.manager.writer
Class BlurIndexSimpleWriter

java.lang.Object
  extended by org.apache.blur.manager.writer.BlurIndex
      extended by org.apache.blur.manager.writer.BlurIndexSimpleWriter

public class BlurIndexSimpleWriter
extends BlurIndex


Constructor Summary
BlurIndexSimpleWriter(ShardContext shardContext, org.apache.lucene.store.Directory directory, SharedMergeScheduler mergeScheduler, java.util.concurrent.ExecutorService searchExecutor, BlurIndexCloser indexCloser, BlurIndexWarmup indexWarmup)
           
 
Method Summary
 void close()
           
 void createSnapshot(String name)
           
 void enqueue(List<RowMutation> mutations)
           
 IndexSearcherClosable getIndexSearcher()
           
 List<String> getSnapshots()
           
 org.apache.hadoop.fs.Path getSnapshotsDirectoryPath()
           
 java.util.concurrent.atomic.AtomicBoolean isClosed()
           
 void optimize(int numberOfSegmentsPerShard)
           
 void process(IndexAction indexAction)
           
 void refresh()
           
 void removeSnapshot(String name)
           
 
Methods inherited from class org.apache.blur.manager.writer.BlurIndex
getIndexMemoryUsage, getRecordCount, getRowCount, getSegmentCount, getShardContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlurIndexSimpleWriter

public BlurIndexSimpleWriter(ShardContext shardContext,
                             org.apache.lucene.store.Directory directory,
                             SharedMergeScheduler mergeScheduler,
                             java.util.concurrent.ExecutorService searchExecutor,
                             BlurIndexCloser indexCloser,
                             BlurIndexWarmup indexWarmup)
                      throws IOException
Throws:
IOException
Method Detail

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 java.util.concurrent.atomic.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.