public static enum InsertContext.CompatibilityMode extends java.lang.Enum<InsertContext.CompatibilityMode>
Enum Constant and Description |
---|
COMPAT_1250
1250 or previous: Segments up to 128 data 128 check, check <= data.
|
COMPAT_1250_EXACT
Exactly as before 1250: Segments of exactly 128 data, 128 check, check = data
|
COMPAT_1251
1251/2/3: Basic even splitting, 1 extra check block if data blocks < 128, max 131 data blocks.
|
COMPAT_1255
1255: Second stage of even splitting, a whole bunch of segments lose one block rather than the last segment losing lots of blocks.
|
COMPAT_1416
1416: New CHK encryption
|
COMPAT_1468
1468: Fill in topDontCompress and topCompatibilityMode on splitfiles.
|
COMPAT_CURRENT
No compatibility issues, use the most efficient metadata possible.
|
COMPAT_UNKNOWN
We do not know.
|
Modifier and Type | Field and Description |
---|---|
short |
code
Code used in metadata for this CompatibilityMode.
|
static InsertContext.CompatibilityMode |
COMPAT_DEFAULT
The default compatibility mode for new inserts when it is not specified.
|
Modifier and Type | Method and Description |
---|---|
static InsertContext.CompatibilityMode |
byCode(short code) |
static boolean |
hasCode(short min) |
InsertContext.CompatibilityMode |
intern()
Must be called whenever we accept a CompatibilityMode as e.g.
|
static InsertContext.CompatibilityMode |
latest() |
static boolean |
maybeFutureCode(short code) |
static InsertContext.CompatibilityMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InsertContext.CompatibilityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InsertContext.CompatibilityMode COMPAT_UNKNOWN
public static final InsertContext.CompatibilityMode COMPAT_CURRENT
public static final InsertContext.CompatibilityMode COMPAT_1250_EXACT
public static final InsertContext.CompatibilityMode COMPAT_1250
public static final InsertContext.CompatibilityMode COMPAT_1251
public static final InsertContext.CompatibilityMode COMPAT_1255
public static final InsertContext.CompatibilityMode COMPAT_1416
public static final InsertContext.CompatibilityMode COMPAT_1468
public final short code
public static final InsertContext.CompatibilityMode COMPAT_DEFAULT
public static InsertContext.CompatibilityMode[] values()
for (InsertContext.CompatibilityMode c : InsertContext.CompatibilityMode.values()) System.out.println(c);
public static InsertContext.CompatibilityMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static InsertContext.CompatibilityMode latest()
public InsertContext.CompatibilityMode intern()
public static InsertContext.CompatibilityMode byCode(short code)
public static boolean hasCode(short min)
public static boolean maybeFutureCode(short code)