Package com.illumon.iris.importers.merge
Enum SyncMode
- All Implemented Interfaces:
Serializable
,Comparable<SyncMode>
,java.lang.constant.Constable
public enum SyncMode extends Enum<SyncMode>
Flags for controlling column file synchronization behavior.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CONCURRENT
Column files are synchronized to the destination file system immediately when writing finishes, but the writing thread is free to accept new jobs.FINAL
Column files are synchronized to the destination file system when all writing finishes.IMMEDIATE
Column files are synchronized to the destination file system immediately when writing finishes, blocking the thread that wrote them until complete. -
Method Summary
Modifier and Type Method Description static SyncMode
lookup(String exceptionPrefix, String name)
abstract SyncOperator
makeSyncOperator(String name, int numColumns, int numPartitions)
static SyncMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SyncMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IMMEDIATE
Column files are synchronized to the destination file system immediately when writing finishes, blocking the thread that wrote them until complete. This is the default, unless . -
CONCURRENT
Column files are synchronized to the destination file system immediately when writing finishes, but the writing thread is free to accept new jobs. Synchronization jobs are waited for when all writing finishes. -
FINAL
Column files are synchronized to the destination file system when all writing finishes.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
lookup
-
makeSyncOperator
public abstract SyncOperator makeSyncOperator(@NotNull String name, int numColumns, int numPartitions)
-