public class SimpleFSDirectory extends FSDirectory
FSDirectoryusing java.io.RandomAccessFile. However, this class has poor concurrent performance (multiple threads will bottleneck) as it synchronizes when multiple threads read from the same file. It's usually better to use
DEFAULT_READ_CHUNK_SIZE, directory, staleFiles
|Constructor and Description|
Create a new SimpleFSDirectory for the named location and
Create a new SimpleFSDirectory for the named location.
|Modifier and Type||Method and Description|
Creates an IndexInput for the file with the given name.
close, createOutput, deleteFile, ensureCanWrite, fileExists, fileLength, fsync, getDirectory, getLockID, getReadChunkSize, listAll, listAll, onIndexOutputClosed, open, open, setLockFactory, setReadChunkSize, sync, toString
clearLock, ensureOpen, getLockFactory, makeLock
public SimpleFSDirectory(File path, LockFactory lockFactory) throws IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.