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(@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
@NotNull String dataNodeName,
@NotNull LuceneIndexDefinition definition,
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore) |
BufferedOakDirectory(@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
@NotNull String dataNodeName,
@NotNull LuceneIndexDefinition definition,
@Nullable 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(@NotNull
@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
@NotNull
@NotNull String dataNodeName,
@NotNull
@NotNull LuceneIndexDefinition definition,
@Nullable
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore)
public BufferedOakDirectory(@NotNull
@NotNull org.apache.jackrabbit.oak.spi.state.NodeBuilder builder,
@NotNull
@NotNull String dataNodeName,
@NotNull
@NotNull LuceneIndexDefinition definition,
@Nullable
@Nullable org.apache.jackrabbit.oak.spi.blob.BlobStore blobStore,
@NotNull
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.DirectoryIOExceptionpublic boolean fileExists(String name) throws IOException
fileExists in class org.apache.lucene.store.DirectoryIOExceptionpublic void deleteFile(String name) throws IOException
deleteFile in class org.apache.lucene.store.DirectoryIOExceptionpublic long fileLength(String name) throws IOException
fileLength in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexOutput createOutput(String name, org.apache.lucene.store.IOContext context) throws IOException
createOutput in class org.apache.lucene.store.DirectoryIOExceptionpublic void sync(Collection<String> names) throws IOException
sync in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.IndexInput openInput(String name, org.apache.lucene.store.IOContext context) throws IOException
openInput in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.Lock makeLock(String name)
makeLock in class org.apache.lucene.store.Directorypublic void clearLock(String name) throws IOException
clearLock in class org.apache.lucene.store.DirectoryIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.DirectoryIOExceptionpublic void setLockFactory(org.apache.lucene.store.LockFactory lockFactory)
throws IOException
setLockFactory in class org.apache.lucene.store.DirectoryIOExceptionpublic org.apache.lucene.store.LockFactory getLockFactory()
getLockFactory in class org.apache.lucene.store.DirectoryCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.