Package org.apache.lucene.store
Class NativePosixUtil
java.lang.Object
org.apache.lucene.store.NativePosixUtil
Provides JNI access to native methods such as madvise() for
NativeUnixDirectory-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadvise(FileDescriptor fd, long offset, long len, int advise) static intmadvise(ByteBuffer buf, int advise) static FileDescriptoropen_direct(String filename, boolean read) static intposix_madvise(ByteBuffer buf, int advise) static longpread(FileDescriptor fd, long pos, ByteBuffer byteBuf)
-
Field Details
-
NORMAL
public static final int NORMAL- See Also:
-
SEQUENTIAL
public static final int SEQUENTIAL- See Also:
-
RANDOM
public static final int RANDOM- See Also:
-
WILLNEED
public static final int WILLNEED- See Also:
-
DONTNEED
public static final int DONTNEED- See Also:
-
NOREUSE
public static final int NOREUSE- See Also:
-
-
Constructor Details
-
NativePosixUtil
public NativePosixUtil()
-
-
Method Details
-
posix_madvise
- Throws:
IOException
-
madvise
- Throws:
IOException
-
open_direct
- Throws:
IOException
-
pread
- Throws:
IOException
-
advise
- Throws:
IOException
-