Package dev.frostlake.executor
Class FileFormatSurfaces
java.lang.Object
dev.frostlake.executor.FileFormatSurfaces
The per-TYPE file-format property surface a real account exposes, measured tree by tree: which
options each type accepts (an option outside its type's tree refuses
Option X is not
valid for file format type Y.), each property's declared type, its current-value default and
the constant default column DESC prints (JSON-family NULL_IF starts [] while the
default column still reads [\N]). One table drives DESC FILE FORMAT, DESC STAGE's
format group, SHOW FILE FORMATS' format_options blob and the option validation. The ORC tree
follows the documented option set; every other tree is account-measured.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisKnownOption(String name) Whether ANY type's tree carries this option — outside that, the name itself is invalid.static booleanisKnownType(String type) static booleanisOptionValidFor(String type, String name) Whether the given type's tree carries the option.static voidrequireLegalValue(String name, String value) static voidrequireLegalValue(String name, String value, String written) Judge a parameter's value and refuse it in the account's own words.static List<FormatProperty>
-
Method Details
-
isKnownType
-
tree
-
isKnownOption
Whether ANY type's tree carries this option — outside that, the name itself is invalid. -
isOptionValidFor
Whether the given type's tree carries the option. -
requireLegalValue
-
requireLegalValue
Judge a parameter's value and refuse it in the account's own words. The value is judged DECODED, as the reader will see it - a doubled quote is ONE quote and an escaped backslash ONE backslash - while the refusal echoes the text AS WRITTEN: a bare word bare, a string literal with its quotes.- Parameters:
name- the parametervalue- its value, decodedwritten- its value as the statement spells it
-