Package org.apache.gravitino.audit
Enum Class FilesetDataOperation
- All Implemented Interfaces:
Serializable
,Comparable<FilesetDataOperation>
,Constable
An enum class containing fileset data operations that supported.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAppends some content into a file.Gets the content of a file.Copies a file.Creates a new file.Gets the created time of a file.Deletes a file or a directory.Gets the current working directory.Gets the default block size of a file system.Gets the default replication of a file system.Copies a remote file to local.Gets a file status from a file or a directory.Lists file statuses under a directory.Creates a directory.Gets the modified time of a file.Opens a file.Opens a file and appends to it.Opens a file and writes to it.Renames a file or a directory.Sets current working directory.Unknown data operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkValid
(String operation) Check if the operation is valid.static FilesetDataOperation
Returns the enum constant of this class with the specified name.static FilesetDataOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATE
Creates a new file. -
OPEN
Opens a file. -
OPEN_AND_WRITE
Opens a file and writes to it. -
OPEN_AND_APPEND
Opens a file and appends to it. -
APPEND
Appends some content into a file. -
RENAME
Renames a file or a directory. -
DELETE
Deletes a file or a directory. -
GET_FILE_STATUS
Gets a file status from a file or a directory. -
LIST_STATUS
Lists file statuses under a directory. -
MKDIRS
Creates a directory. -
GET_DEFAULT_REPLICATION
Gets the default replication of a file system. -
GET_DEFAULT_BLOCK_SIZE
Gets the default block size of a file system. -
SET_WORKING_DIR
Sets current working directory. -
EXISTS
Gets the current working directory. -
CREATED_TIME
Gets the created time of a file. -
MODIFIED_TIME
Gets the modified time of a file. -
COPY_FILE
Copies a file. -
CAT_FILE
Gets the content of a file. -
GET_FILE
Copies a remote file to local. -
UNKNOWN
Unknown data operation.
-
-
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
-
checkValid
Check if the operation is valid.- Parameters:
operation
- the operation to check- Returns:
- true if the operation is valid, false otherwise
-