Package com.yahoo.io
Class NativeIO
java.lang.Object
com.yahoo.io.NativeIO
Provides functionality only possible through native C library.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddropFileFromCache(File file) Will hint the OS that this is will not be accessed again and should hence be dropped from the buffer cache.voidWill hint the OS that this is will not be accessed again and should hence be dropped from the buffer cache.voiddropPartialFileFromCache(FileDescriptor fd, long offset, long len, boolean sync) Will hint the OS that data read so far will not be accessed again and should hence be dropped from the buffer cache.final ThrowablegetError()booleanvalid()
-
Constructor Details
-
NativeIO
public NativeIO()
-
-
Method Details
-
valid
public boolean valid() -
getError
-
dropPartialFileFromCache
Will hint the OS that data read so far will not be accessed again and should hence be dropped from the buffer cache.- Parameters:
fd- The file descriptor to drop from buffer cache.
-
dropFileFromCache
Will hint the OS that this is will not be accessed again and should hence be dropped from the buffer cache.- Parameters:
fd- The file descriptor to drop from buffer cache.
-
dropFileFromCache
Will hint the OS that this is will not be accessed again and should hence be dropped from the buffer cache.- Parameters:
file- File to drop from buffer cache
-