Enum Class OpenOption
- All Implemented Interfaces:
Serializable
,Comparable<OpenOption>
,Constable
Open options for
FilePageArray
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOptional hint to apply at file close indicating that the file data will not be accessed in the near future.Create the file if it doesn't already exist.All file I/O should be durable and bypass the file system cache, if possible.Map the file into main memory.File contents don't persist after an OS crash or power failure.Indicate that file will be accessed in random order.Open file in read-only mode.Optional hint to perform readahead on the file.All file I/O should be durable. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenOption
Returns the enum constant of this class with the specified name.static OpenOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READ_ONLY
Open file in read-only mode. -
CREATE
Create the file if it doesn't already exist. -
MAPPED
Map the file into main memory. -
SYNC_IO
All file I/O should be durable. -
DIRECT_IO
All file I/O should be durable and bypass the file system cache, if possible. -
NON_DURABLE
File contents don't persist after an OS crash or power failure. -
RANDOM_ACCESS
Indicate that file will be accessed in random order. -
READAHEAD
Optional hint to perform readahead on the file. -
CLOSE_DONTNEED
Optional hint to apply at file close indicating that the file data will not be accessed in the near future.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-