org.apache.hadoop.fs
Enum FSDataInputStream.FadviseType
java.lang.Object
java.lang.Enum<FSDataInputStream.FadviseType>
org.apache.hadoop.fs.FSDataInputStream.FadviseType
- All Implemented Interfaces:
- Serializable, Comparable<FSDataInputStream.FadviseType>
- Enclosing class:
- FSDataInputStream
public static enum FSDataInputStream.FadviseType
- extends Enum<FSDataInputStream.FadviseType>
Type of file advise to be passed on to the underlying file system. This
information can be used to make optimizations such as reclaiming buffers
for files that are no longer needed by the application, etc.
FILE_DONTNEED
public static final FSDataInputStream.FadviseType FILE_DONTNEED
FILE_RANDOM
public static final FSDataInputStream.FadviseType FILE_RANDOM
FILE_SEQUENTIAL
public static final FSDataInputStream.FadviseType FILE_SEQUENTIAL
values
public static FSDataInputStream.FadviseType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (FSDataInputStream.FadviseType c : FSDataInputStream.FadviseType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FSDataInputStream.FadviseType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
Copyright © 2014 Apache Software Foundation. All Rights Reserved.