|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.nativeio.NativeIO
public class NativeIO
JNI wrappers for various native IO-related calls not available in Java. These functions should generally be used alongside a fallback to another more portable mechanism.
Nested Class Summary | |
---|---|
static class |
NativeIO.Stat
Result type of the fstat call |
Field Summary | |
---|---|
static int |
O_APPEND
|
static int |
O_ASYNC
|
static int |
O_CREAT
|
static int |
O_EXCL
|
static int |
O_FSYNC
|
static int |
O_NDELAY
|
static int |
O_NOCTTY
|
static int |
O_NONBLOCK
|
static int |
O_RDONLY
|
static int |
O_RDWR
|
static int |
O_SYNC
|
static int |
O_TRUNC
|
static int |
O_WRONLY
|
Constructor Summary | |
---|---|
NativeIO()
|
Method Summary | |
---|---|
static void |
chmod(String path,
int mode)
Wrapper around chmod(2) |
static NativeIO.Stat |
fstat(FileDescriptor fd)
Wrapper around fstat(2) |
static String |
getOwner(FileDescriptor fd)
|
static boolean |
isAvailable()
Return true if the JNI-based native IO extensions are available. |
static FileDescriptor |
open(String path,
int flags,
int mode)
Wrapper around open(2) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int O_RDONLY
public static final int O_WRONLY
public static final int O_RDWR
public static final int O_CREAT
public static final int O_EXCL
public static final int O_NOCTTY
public static final int O_TRUNC
public static final int O_APPEND
public static final int O_NONBLOCK
public static final int O_SYNC
public static final int O_ASYNC
public static final int O_FSYNC
public static final int O_NDELAY
Constructor Detail |
---|
public NativeIO()
Method Detail |
---|
public static boolean isAvailable()
public static FileDescriptor open(String path, int flags, int mode) throws IOException
IOException
public static NativeIO.Stat fstat(FileDescriptor fd) throws IOException
IOException
public static void chmod(String path, int mode) throws IOException
IOException
public static String getOwner(FileDescriptor fd) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |