public final class BufferedOakDirectory
extends org.apache.lucene.store.Directory
close()
,
except for blob values. Those are written immediately to the store.Modifier and Type | Field and Description |
---|---|
static String |
ENABLE_WRITING_SINGLE_BLOB_INDEX_FILE_PARAM |
Constructor and Description |
---|
BufferedOakDirectory(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
String dataNodeName,
IndexDefinition definition,
org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) |
BufferedOakDirectory(org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
String dataNodeName,
IndexDefinition definition,
org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore,
ActiveDeletedBlobCollectorFactory.BlobDeletionCallback blobDeletionCallback) |
Modifier and Type | Method and Description |
---|---|
void |
clearLock(String name) |
void |
close() |
org.apache.lucene.store.IndexOutput |
createOutput(String name,
org.apache.lucene.store.IOContext context) |
void |
deleteFile(String name) |
boolean |
fileExists(String name) |
long |
fileLength(String name) |
org.apache.lucene.store.LockFactory |
getLockFactory() |
static boolean |
isEnableWritingSingleBlobIndexFile() |
String[] |
listAll() |
org.apache.lucene.store.Lock |
makeLock(String name) |
org.apache.lucene.store.IndexInput |
openInput(String name,
org.apache.lucene.store.IOContext context) |
static void |
setEnableWritingSingleBlobIndexFile(boolean val) |
void |
setLockFactory(org.apache.lucene.store.LockFactory lockFactory) |
void |
sync(Collection<String> names) |
public static final String ENABLE_WRITING_SINGLE_BLOB_INDEX_FILE_PARAM
public BufferedOakDirectory(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, @Nonnull String dataNodeName, @Nonnull IndexDefinition definition, @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
public BufferedOakDirectory(@Nonnull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder, @Nonnull String dataNodeName, @Nonnull IndexDefinition definition, @Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore, @Nonnull ActiveDeletedBlobCollectorFactory.BlobDeletionCallback blobDeletionCallback)
public static void setEnableWritingSingleBlobIndexFile(boolean val)
public static boolean isEnableWritingSingleBlobIndexFile()
public String[] listAll() throws IOException
listAll
in class org.apache.lucene.store.Directory
IOException
public boolean fileExists(String name) throws IOException
fileExists
in class org.apache.lucene.store.Directory
IOException
public void deleteFile(String name) throws IOException
deleteFile
in class org.apache.lucene.store.Directory
IOException
public long fileLength(String name) throws IOException
fileLength
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput
in class org.apache.lucene.store.Directory
IOException
public void sync(Collection<String> names) throws IOException
sync
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.Lock makeLock(String name)
makeLock
in class org.apache.lucene.store.Directory
public void clearLock(String name) throws IOException
clearLock
in class org.apache.lucene.store.Directory
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.lucene.store.Directory
IOException
public void setLockFactory(org.apache.lucene.store.LockFactory lockFactory) throws IOException
setLockFactory
in class org.apache.lucene.store.Directory
IOException
public org.apache.lucene.store.LockFactory getLockFactory()
getLockFactory
in class org.apache.lucene.store.Directory
Copyright © 2012–2017 The Apache Software Foundation. All rights reserved.