Package org.apache.lucene.tests.mockfile
Class ShuffleFS
java.lang.Object
java.nio.file.spi.FileSystemProvider
org.apache.lucene.tests.mockfile.FilterFileSystemProvider
org.apache.lucene.tests.mockfile.ShuffleFS
Gives an unpredictable, but deterministic order to directory listings.
This can be useful if for instance, you have build servers on linux but developers are using macs.
-
Field Summary
Fields inherited from class org.apache.lucene.tests.mockfile.FilterFileSystemProvider
delegate, fileSystem, scheme
-
Constructor Summary
ConstructorDescriptionShuffleFS
(FileSystem delegate, long seed) Create a new instance, wrappingdelegate
. -
Method Summary
Modifier and TypeMethodDescriptionnewDirectoryStream
(Path dir, DirectoryStream.Filter<? super Path> filter) Methods inherited from class org.apache.lucene.tests.mockfile.FilterFileSystemProvider
checkAccess, copy, createDirectory, createLink, createSymbolicLink, delete, deleteIfExists, getFileAttributeView, getFileStore, getFileSystem, getPath, getScheme, isHidden, isSameFile, move, newAsynchronousFileChannel, newByteChannel, newFileChannel, newFileSystem, newFileSystem, newInputStream, newOutputStream, onClose, readAttributes, readAttributes, readSymbolicLink, setAttribute, toDelegate, toString
Methods inherited from class java.nio.file.spi.FileSystemProvider
installedProviders
-
Constructor Details
-
ShuffleFS
Create a new instance, wrappingdelegate
.
-
-
Method Details
-
newDirectoryStream
public DirectoryStream<Path> newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter) throws IOException - Overrides:
newDirectoryStream
in classFilterFileSystemProvider
- Throws:
IOException
-