ナビゲーション・リンクをスキップ
org.apache.hadoop.fs

列挙型 CreateFlag

    • 列挙型定数の詳細

      • CREATE

        public static final CreateFlag CREATE
        Create a file. See javadoc for more description already exists
      • OVERWRITE

        public static final CreateFlag OVERWRITE
        Truncate/overwrite a file. Same as POSIX O_TRUNC. See javadoc for description.
      • APPEND

        public static final CreateFlag APPEND
        Append to a file. See javadoc for more description.
      • SYNC_BLOCK

        public static final CreateFlag SYNC_BLOCK
        Force closed blocks to disk. Similar to POSIX O_SYNC. See javadoc for description.
      • LAZY_PERSIST

        public static final CreateFlag LAZY_PERSIST
        Create the block on transient storage (RAM) if available. If transient storage is unavailable then the block will be created on disk. HDFS will make a best effort to lazily write these files to persistent storage, however file contents may be lost at any time due to process/ node restarts, hence there is no guarantee of data durability. This flag must only be used for intermediate data whose loss can be tolerated by the application.
      • NEW_BLOCK

        public static final CreateFlag NEW_BLOCK
        Append data to a new block instead of the end of the last partial block. This is only useful for APPEND.
      • NO_LOCAL_WRITE

        @InterfaceAudience.LimitedPrivate(value="HBase")
        public static final CreateFlag NO_LOCAL_WRITE
        Advise that a block replica NOT be written to the local DataNode where 'local' means the same host as the client is being run on.
    • メソッドの詳細

      • values

        public static CreateFlag[] values()
        この列挙型の定数を含む配列を宣言されている順序で返します。 このメソッドは次のようにして定数を反復するために 使用できます:
        for(CreateFlag c: CreateFlag.values())
          System.out.println(c);
        
        戻り値:
        この列挙型の定数を含む、宣言されている順序での配列
      • valueOf

        public static CreateFlag valueOf(String name)
        指定した名前を持つこの型の列挙型定数を返します。 文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に 一致している必要があります。 (余分な空白文字を含めることはできません。)
        パラメータ:
        name - 返される列挙型定数の名前。
        戻り値:
        指定した名前の列挙型定数
        例外:
        IllegalArgumentException - この列挙型に、指定した名前の定数がない場合
        NullPointerException - 引数がnullの場合
      • validateForAppend

        public static void validateForAppend(EnumSet<CreateFlag> flag)
        Validate the CreateFlag for the append operation. The flag must contain APPEND, and cannot contain OVERWRITE.

Copyright © 2016 Apache Software Foundation. All rights reserved.