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 void
advise
(FileDescriptor fd, long offset, long len, int advise) static int
madvise
(ByteBuffer buf, int advise) static FileDescriptor
open_direct
(String filename, boolean read) static int
posix_madvise
(ByteBuffer buf, int advise) static long
pread
(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
-