public enum PageCodecMarker extends Enum<PageCodecMarker>
SerializedPage by using a bitmasking strategy, allowing
up to 8 such properties to be stored in a single byte| Enum Constant and Description |
|---|
CHECKSUMMED |
COMPRESSED |
ENCRYPTED |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSet(byte value) |
static byte |
none()
The byte value of no
PageCodecMarker values set to true |
byte |
set(byte value) |
static String |
toSummaryString(byte markers) |
byte |
unset(byte value) |
static PageCodecMarker |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PageCodecMarker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PageCodecMarker COMPRESSED
public static final PageCodecMarker ENCRYPTED
public static final PageCodecMarker CHECKSUMMED
public static PageCodecMarker[] values()
for (PageCodecMarker c : PageCodecMarker.values()) System.out.println(c);
public static PageCodecMarker 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 boolean isSet(byte value)
public byte set(byte value)
public byte unset(byte value)
public static byte none()
PageCodecMarker values set to truepublic static String toSummaryString(byte markers)
Copyright © 2012–2022. All rights reserved.