Java org.apache.hadoop.fs CreateFlag fields, constructors, methods, implement or subclass

Example usage for Java org.apache.hadoop.fs CreateFlag fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.hadoop.fs CreateFlag.

The text is from its open source code.

Field

CreateFlagCREATE
Create a file.
CreateFlagOVERWRITE
Truncate/overwrite a file.
CreateFlagAPPEND
Append to a file.
CreateFlagSYNC_BLOCK
Force closed blocks to disk.
CreateFlagNEW_BLOCK
Append data to a new block instead of the end of the last partial block.

Method

voidvalidate(EnumSet flag)
Validate the CreateFlag and throw exception if it is invalid
voidvalidateForAppend(EnumSet flag)
Validate the CreateFlag for the append operation.