public class WindowsDirectory extends FSDirectory
Directory
implementation for Microsoft Windows.
Steps:
c:\mingw\bin\g++ -Wall -D_JNI_IMPLEMENTATION_ -Wl,--kill-at -I"%JAVA_HOME%\include" -I"%JAVA_HOME%\include\win32" -static-libgcc -static-libstdc++ -shared WindowsDirectory.cpp -o WindowsDirectory.dllFor 64-bit JREs, use mingw64, with the -m64 option.
directory
isOpen, lockFactory
Constructor and Description |
---|
WindowsDirectory(Path path)
Create a new WindowsDirectory for the named location and
FSLockFactory.getDefault() . |
WindowsDirectory(Path path,
LockFactory lockFactory)
Create a new WindowsDirectory for the named location.
|
Modifier and Type | Method and Description |
---|---|
IndexInput |
openInput(String name,
IOContext context) |
close, createOutput, createTempOutput, deleteFile, deletePendingFiles, ensureCanRead, fileLength, fsync, getDirectory, getPendingDeletions, listAll, listAll, open, open, rename, sync, syncMetaData, toString
ensureOpen, obtainLock
copyFrom, getTempFileName, openChecksumInput
public WindowsDirectory(Path path, LockFactory lockFactory) throws IOException
path
- the path of the directorylockFactory
- the lock factory to useIOException
- If there is a low-level I/O errorpublic WindowsDirectory(Path path) throws IOException
FSLockFactory.getDefault()
.path
- the path of the directoryIOException
- If there is a low-level I/O errorpublic IndexInput openInput(String name, IOContext context) throws IOException
openInput
in class Directory
IOException
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.