Package dev.frostlake.types
Enum Class BinaryWidthSpelling
- All Implemented Interfaces:
Serializable,Comparable<BinaryWidthSpelling>,Constable
How a BINARY's width is spelled where the plan names the type —
SYSTEM$TYPEOF and the
argument-type refusals (live-verified):
SYSTEM$TYPEOF refusal
DECLARED a column, X'..', CAST(x AS BINARY(n)) BINARY(n) BINARY(n)
UNSIZED TO_BINARY, CAST(x AS BINARY), DECRYPT BINARY BINARY(67108864)
MAXIMUM COALESCE(b5, TO_BINARY(s)) BINARY(67108864) BINARY(67108864)
The spelling is carried beside the width a binary is held at, which it never changes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionmeeting(BinaryWidthSpelling later) The spelling a fold takes where a branch spelledlaterfollows branches spelled this one.static BinaryWidthSpellingReturns the enum constant of this class with the specified name.static BinaryWidthSpelling[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DECLARED
Sized at its own width. -
UNSIZED
Never sized by the plan: the result of a conversion, a cast to a bare BINARY, a SQL UDF. -
MAXIMUM
Sized at the 64MB maximum: a fold that met an unsized branch after a sized one.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
meeting
The spelling a fold takes where a branch spelledlaterfollows branches spelled this one. The lead decides: an unsized lead keeps the fold unsized, and a sized lead meeting anything unsized takes it to the maximum — live,IFF(c, TO_BINARY(s), X'00')is bare BINARY whileIFF(c, X'00', TO_BINARY(s))is BINARY(67108864).- Parameters:
later- the following branch's spelling- Returns:
- the folded spelling
-