Package io.prestosql.execution.buffer
Enum PageCodecMarker
- java.lang.Object
-
- java.lang.Enum<PageCodecMarker>
-
- io.prestosql.execution.buffer.PageCodecMarker
-
- All Implemented Interfaces:
Serializable
,Comparable<PageCodecMarker>
public enum PageCodecMarker extends Enum<PageCodecMarker>
Encodes boolean properties forSerializedPage
by using a bitmasking strategy, allowing up to 8 such properties to be stored in a single byte
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PageCodecMarker.MarkerSet
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPRESSED
ENCRYPTED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSet(byte value)
static byte
none()
The byte value of noPageCodecMarker
values set to truebyte
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.
-
-
-
Enum Constant Detail
-
COMPRESSED
public static final PageCodecMarker COMPRESSED
-
ENCRYPTED
public static final PageCodecMarker ENCRYPTED
-
-
Method Detail
-
values
public static PageCodecMarker[] 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 (PageCodecMarker c : PageCodecMarker.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PageCodecMarker 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
-
isSet
public boolean isSet(byte value)
-
set
public byte set(byte value)
-
unset
public byte unset(byte value)
-
none
public static byte none()
The byte value of noPageCodecMarker
values set to true
-
toSummaryString
public static String toSummaryString(byte markers)
-
-