Interface NativeIO
- All Known Implementing Classes:
NativeIOImpl
public interface NativeIO
NativeIO API.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintclose(int fd) intfallocate(int fd, int mode, long offset, long len) fallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.voidfree(long pointer) intfsync(int fd) longlseek(int fd, long offset, int whence) intintposix_fadvise(int fd, long offset, long len, int flag) posix_fadvise is a linux-only syscall, so callers must handle the possibility that it does not exist.longposix_memalign(int alignment, int size) longpread(int fd, long pointer, long size, long offset) intpwrite(int fd, long pointer, int count, long offset)
-
Field Details
-
O_CREAT
static final int O_CREAT- See Also:
-
O_RDONLY
static final int O_RDONLY- See Also:
-
O_WRONLY
static final int O_WRONLY- See Also:
-
O_TRUNC
static final int O_TRUNC- See Also:
-
O_DIRECT
static final int O_DIRECT- See Also:
-
O_DSYNC
static final int O_DSYNC- See Also:
-
SEEK_SET
static final int SEEK_SET- See Also:
-
SEEK_END
static final int SEEK_END- See Also:
-
FALLOC_FL_ZERO_RANGE
static final int FALLOC_FL_ZERO_RANGE- See Also:
-
-
Method Details
-
open
- Throws:
NativeIOException
-
fsync
- Throws:
NativeIOException
-
fallocate
fallocate is a linux-only syscall, so callers must handle the possibility that it does not exist.- Throws:
NativeIOException
-
posix_fadvise
posix_fadvise is a linux-only syscall, so callers must handle the possibility that it does not exist.- Throws:
NativeIOException
-
pwrite
- Throws:
NativeIOException
-
posix_memalign
- Throws:
NativeIOException
-
free
- Throws:
NativeIOException
-
lseek
- Throws:
NativeIOException
-
pread
- Throws:
NativeIOException
-
close
- Throws:
NativeIOException
-