org.apache.lucene.store
Class BaseDirectoryWrapper

java.lang.Object
  extended by org.apache.lucene.store.Directory
      extended by org.apache.lucene.store.FilterDirectory
          extended by org.apache.lucene.store.BaseDirectoryWrapper
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
MockDirectoryWrapper

public class BaseDirectoryWrapper
extends FilterDirectory

Calls check index on close.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.store.Directory
Directory.IndexInputSlicer
 
Field Summary
protected  boolean isOpen
           
 
Fields inherited from class org.apache.lucene.store.FilterDirectory
in
 
Constructor Summary
BaseDirectoryWrapper(Directory delegate)
           
 
Method Summary
 void close()
           
 void copy(Directory to, String src, String dest, IOContext context)
           
 Directory.IndexInputSlicer createSlicer(String name, IOContext context)
           
 boolean getCheckIndexOnClose()
           
 boolean getCrossCheckTermVectorsOnClose()
           
 boolean isOpen()
           
 void setCheckIndexOnClose(boolean value)
          Set whether or not checkindex should be run on close
 void setCrossCheckTermVectorsOnClose(boolean value)
           
 
Methods inherited from class org.apache.lucene.store.FilterDirectory
clearLock, createOutput, deleteFile, fileExists, fileLength, getDelegate, getLockFactory, getLockID, listAll, makeLock, openInput, setLockFactory, sync, toString
 
Methods inherited from class org.apache.lucene.store.Directory
ensureOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isOpen

protected volatile boolean isOpen
Constructor Detail

BaseDirectoryWrapper

public BaseDirectoryWrapper(Directory delegate)
Method Detail

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class FilterDirectory
Throws:
IOException

isOpen

public boolean isOpen()

setCheckIndexOnClose

public void setCheckIndexOnClose(boolean value)
Set whether or not checkindex should be run on close


getCheckIndexOnClose

public boolean getCheckIndexOnClose()

setCrossCheckTermVectorsOnClose

public void setCrossCheckTermVectorsOnClose(boolean value)

getCrossCheckTermVectorsOnClose

public boolean getCrossCheckTermVectorsOnClose()

copy

public void copy(Directory to,
                 String src,
                 String dest,
                 IOContext context)
          throws IOException
Overrides:
copy in class Directory
Throws:
IOException

createSlicer

public Directory.IndexInputSlicer createSlicer(String name,
                                               IOContext context)
                                        throws IOException
Overrides:
createSlicer in class Directory
Throws:
IOException


Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.