public final class SqllrResources extends Object
lineage-spec/ paths under "/gudusoft/gsqlparser/lineage/v2/".
A jar cannot list a directory, so resources.sha256 (in sha256sum format) lists every
file with its SHA-256 digest. A file is served only when it is listed, and only when its bytes have that
digest. Each file is parsed once with CanonicalJson.parse(byte[]) into an unmodifiable value
that every caller shares.
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE
The classpath directory of the shipped files.
|
static String |
CORE_REGISTRY |
static String |
INDEX
The index file, relative to
BASE. |
static String |
LINEAGE_DOCUMENT_SCHEMA |
static String |
QUALIFICATION_PROFILES |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
bytes(String path)
The bytes of a shipped file.
|
static Object |
coreRegistry()
registry/core-registry.json. |
static Object |
identifierRules(String dialect,
int ruleSetVersion)
The identifier rule set
identifier-rules/<dialect>/rules-<version>.json. |
static Map<String,String> |
index()
Every shipped file (path relative to
BASE) with its lowercase hexadecimal SHA-256. |
static Object |
json(String path)
A shipped file parsed under the input rules of
canonical-json-v1; shared, do not modify. |
static Object |
lineageDocumentSchema()
schema/0.1/lineage-document.schema.json. |
static Object |
qualificationProfiles()
registry/qualification-profiles.json. |
static String |
sha256Hex(byte[] data)
The lowercase hexadecimal SHA-256 of
data. |
public static final String BASE
public static final String INDEX
BASE.public static final String LINEAGE_DOCUMENT_SCHEMA
public static final String CORE_REGISTRY
public static final String QUALIFICATION_PROFILES
public static Map<String,String> index()
BASE) with its lowercase hexadecimal SHA-256.public static byte[] bytes(String path)
path - a path of index(), such as registry/core-registry.jsonIllegalArgumentException - when the file is not listedIllegalStateException - when the file is missing or its digest differs from the indexpublic static Object json(String path)
canonical-json-v1; shared, do not modify.public static Object lineageDocumentSchema()
schema/0.1/lineage-document.schema.json.public static Object coreRegistry()
registry/core-registry.json.public static Object qualificationProfiles()
registry/qualification-profiles.json.public static Object identifierRules(String dialect, int ruleSetVersion)
identifier-rules/<dialect>/rules-<version>.json.