public class ByteBuffersDirectoryFactory extends EphemeralDirectoryFactory
ByteBuffersDirectoryCachingDirectoryFactory.CacheValue, CachingDirectoryFactory.CloseListenerDirectoryFactory.DirContextbyDirectoryCache, byPathCache, closeListeners, removeEntriescoreContainer, dataHomePath, INDEX_W_TIMESTAMP_REGEX, IOCONTEXT_NO_CACHE, LOCK_TYPE_HDFS, LOCK_TYPE_NATIVE, LOCK_TYPE_NONE, LOCK_TYPE_SIMPLE, LOCK_TYPE_SINGLE| Constructor and Description |
|---|
ByteBuffersDirectoryFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected Directory |
create(String path,
LockFactory lockFactory,
DirectoryFactory.DirContext dirContext)
Creates a new Directory for a given path.
|
protected LockFactory |
createLockFactory(String rawLockType)
Creates a new LockFactory for a given path.
|
cleanupOldIndexDirectories, exists, isAbsolute, isPersistent, remove, removeaddCloseListener, close, deleteOldIndexDirectory, doneWithDirectory, get, getLivePaths, getPath, incRef, init, normalize, release, remove, remove, removeDirectory, stripTrailingSlashempty, getBaseDir, getDataHome, initCoreContainer, isSharedStorage, move, renameWithOverwrite, searchersReserveCommitPoints, size, size, sizeOf, sizeOfDirectoryprotected LockFactory createLockFactory(String rawLockType) throws IOException
DirectoryFactorycreateLockFactory in class DirectoryFactoryrawLockType - A string value as passed in config. Every factory should at least support 'none' to disable locking.IOException - If there is a low-level I/O error.protected Directory create(String path, LockFactory lockFactory, DirectoryFactory.DirContext dirContext) throws IOException
DirectoryFactorycreate in class DirectoryFactoryIOException - If there is a low-level I/O error.Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.