public enum OverwriteCause extends Enum<OverwriteCause>
Enum Constant and Description |
---|
DIFF_DATA
Indicates this address has been already written and it is a different data (derived from the length).
|
HOLE
Indicates this address has been already written by a hole.
|
NONE
Indicates there is no actual cause for the overwrite, hence no overwrite exception has occurred.
|
SAME_DATA
Indicates this address has been already written and it is 'potentially' the same data
(i.e., based on data length).
|
TRIM
Indicates this address was already trimmed.
|
Modifier and Type | Method and Description |
---|---|
static OverwriteCause |
fromId(int id) |
static OverwriteCause |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OverwriteCause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OverwriteCause HOLE
public static final OverwriteCause SAME_DATA
public static final OverwriteCause DIFF_DATA
public static final OverwriteCause TRIM
public static final OverwriteCause NONE
public static OverwriteCause[] values()
for (OverwriteCause c : OverwriteCause.values()) System.out.println(c);
public static OverwriteCause valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static OverwriteCause fromId(int id)
Copyright © 2019 CorfuDB. All rights reserved.