Class FileFormatSurfaces

java.lang.Object
dev.frostlake.executor.FileFormatSurfaces

public final class FileFormatSurfaces extends Object
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 Details

    • isKnownType

      public static boolean isKnownType(String type)
    • tree

      public static List<FormatProperty> tree(String type)
    • isKnownOption

      public static boolean isKnownOption(String name)
      Whether ANY type's tree carries this option — outside that, the name itself is invalid.
    • isOptionValidFor

      public static boolean isOptionValidFor(String type, String name)
      Whether the given type's tree carries the option.
    • requireLegalValue

      public static void requireLegalValue(String name, String value)
    • requireLegalValue

      public static void requireLegalValue(String name, String value, String written)
      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 parameter
      value - its value, decoded
      written - its value as the statement spells it