Package com.google.cloud.hadoop.util
Enum AsyncWriteChannelOptions.UploadType
- java.lang.Object
-
- java.lang.Enum<AsyncWriteChannelOptions.UploadType>
-
- com.google.cloud.hadoop.util.AsyncWriteChannelOptions.UploadType
-
- All Implemented Interfaces:
Serializable,Comparable<AsyncWriteChannelOptions.UploadType>
- Enclosing class:
- AsyncWriteChannelOptions
public static enum AsyncWriteChannelOptions.UploadType extends Enum<AsyncWriteChannelOptions.UploadType>
UploadType are in parity with various upload configuration offered by google-java-storage client ref: https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/com.google.cloud.storage.BlobWriteSessionConfigs
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHUNK_UPLOADJOURNALINGPARALLEL_COMPOSITE_UPLOADWRITE_TO_DISK_THEN_UPLOAD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncWriteChannelOptions.UploadTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AsyncWriteChannelOptions.UploadType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHUNK_UPLOAD
public static final AsyncWriteChannelOptions.UploadType CHUNK_UPLOAD
-
WRITE_TO_DISK_THEN_UPLOAD
public static final AsyncWriteChannelOptions.UploadType WRITE_TO_DISK_THEN_UPLOAD
-
JOURNALING
public static final AsyncWriteChannelOptions.UploadType JOURNALING
-
PARALLEL_COMPOSITE_UPLOAD
public static final AsyncWriteChannelOptions.UploadType PARALLEL_COMPOSITE_UPLOAD
-
-
Method Detail
-
values
public static AsyncWriteChannelOptions.UploadType[] 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 (AsyncWriteChannelOptions.UploadType c : AsyncWriteChannelOptions.UploadType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsyncWriteChannelOptions.UploadType 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 nameNullPointerException- if the argument is null
-
-