public final class NativePosixUtil
extends java.lang.Object
NativeUnixDirectory
Modifier and Type | Field and Description |
---|---|
static int |
DONTNEED |
static int |
NOREUSE |
static int |
NORMAL |
static int |
RANDOM |
static int |
SEQUENTIAL |
static int |
WILLNEED |
Constructor and Description |
---|
NativePosixUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
advise(java.io.FileDescriptor fd,
long offset,
long len,
int advise) |
static int |
madvise(java.nio.ByteBuffer buf,
int advise) |
static java.io.FileDescriptor |
open_direct(java.lang.String filename,
boolean read) |
static int |
posix_madvise(java.nio.ByteBuffer buf,
int advise) |
static long |
pread(java.io.FileDescriptor fd,
long pos,
java.nio.ByteBuffer byteBuf) |
public static final int NORMAL
public static final int SEQUENTIAL
public static final int RANDOM
public static final int WILLNEED
public static final int DONTNEED
public static final int NOREUSE
public static int posix_madvise(java.nio.ByteBuffer buf, int advise) throws java.io.IOException
java.io.IOException
public static int madvise(java.nio.ByteBuffer buf, int advise) throws java.io.IOException
java.io.IOException
public static java.io.FileDescriptor open_direct(java.lang.String filename, boolean read) throws java.io.IOException
java.io.IOException
public static long pread(java.io.FileDescriptor fd, long pos, java.nio.ByteBuffer byteBuf) throws java.io.IOException
java.io.IOException
public static void advise(java.io.FileDescriptor fd, long offset, long len, int advise) throws java.io.IOException
java.io.IOException
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.