| Package | Description |
|---|---|
| gudusoft.gsqlparser.catalog.input.model | |
| gudusoft.gsqlparser.catalog.runtime | |
| gudusoft.gsqlparser.dlineage.dataflow.model | |
| gudusoft.gsqlparser.nodes |
Provides the classes represents various SQL query parse tree node.
|
| gudusoft.gsqlparser.slpc.adapter | |
| gudusoft.gsqlparser.sqlenv | |
| gudusoft.gsqlparser.sqlenv.parser.sharded | |
| gudusoft.gsqlparser.sqlenv.parser.sqlflow |
| Modifier and Type | Method and Description |
|---|---|
IdentifierInputForm |
UnifiedCatalogModel.nameForm()
How every object name in this model is written: as SQL text
(
SQL_LEXICAL, "Amount" / [Order ID], an
undelimited name folds the way the vendor folds it) or as the name the database
catalog holds (CATALOG_STORED, Amount IS the
stored name). |
| Modifier and Type | Method and Description |
|---|---|
UnifiedCatalogModel.Builder |
UnifiedCatalogModel.Builder.defaultNameForm(IdentifierInputForm v)
The form to use when the input did not declare one: sets
UnifiedCatalogModel.nameForm() without
marking it as declared. |
UnifiedCatalogModel.Builder |
UnifiedCatalogModel.Builder.nameForm(IdentifierInputForm v)
|
| Modifier and Type | Method and Description |
|---|---|
IdentifierInputForm |
CatalogLookupName.getDatabaseLinkForm() |
IdentifierInputForm |
CatalogLookupName.Slot.getForm()
Where the text came from, only when PRESENT.
|
| Modifier and Type | Method and Description |
|---|---|
static CatalogObjectKey |
CatalogObjectKey.atDatabaseLink(IdentifierService service,
CatalogObjectKey completeLocalKey,
String link,
IdentifierInputForm form)
The same identity, reached through a database link.
|
CatalogLookupName.Builder |
CatalogLookupName.Builder.baseColumn(String text,
IdentifierInputForm form)
A named column level.
|
static CatalogObjectKey |
CatalogObjectKey.catalog(IdentifierService service,
CatalogHierarchy hierarchy,
String server,
String catalog,
IdentifierInputForm form)
A catalog, optionally under a server.
|
static CatalogObjectKey |
CatalogObjectKey.childObject(IdentifierService service,
CatalogObjectKey parent,
CatalogObjectKind childKind,
String localName,
IdentifierInputForm form)
An index, constraint or package member of an already-identified parent object.
|
static CatalogObjectKey |
CatalogObjectKey.column(IdentifierService service,
CatalogObjectKey parentRelation,
String localName,
IdentifierInputForm form)
A column of an already-identified relation.
|
CatalogLookupName.Builder |
CatalogLookupName.Builder.containerObject(String text,
IdentifierInputForm form)
A named container object whose exact kind is not yet known — only the family, which the
request carries through
CatalogLookupName.Builder.parentConstraint. |
CatalogLookupName.Builder |
CatalogLookupName.Builder.databaseLink(String text,
IdentifierInputForm form) |
CatalogLookupName.Builder |
CatalogLookupName.Builder.object(CatalogObjectKind kind,
String text,
IdentifierInputForm form)
A named object level, with its entity kind.
|
static CatalogObjectKey |
CatalogObjectKey.objectInCatalogOnly(IdentifierService service,
CatalogObjectKey parentCatalog,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object directly inside a catalog, for a schemaless topology such as MySQL's.
|
static CatalogObjectKey |
CatalogObjectKey.objectInSchema(IdentifierService service,
CatalogObjectKey parentSchema,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object inside an already-identified schema.
|
static CatalogLookupName |
CatalogLookupName.ofDeclaredLayout(List<String> components,
CatalogNameLayout layout,
IdentifierInputForm form,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy)
Parses a FLAT name under a layout the caller DECLARES, against a topology the caller DECLARES.
|
CatalogLookupName.Builder |
CatalogLookupName.Builder.present(IdentifierComponentRole role,
String text,
IdentifierInputForm form)
The level exists and is named.
|
static CatalogObjectKey |
CatalogObjectKey.rootObject(IdentifierService service,
CatalogHierarchy hierarchy,
CatalogObjectKind kind,
String localName,
IdentifierInputForm form)
An object at the root of a topology with no container levels at all.
|
static CatalogObjectKey |
CatalogObjectKey.rootSchema(IdentifierService service,
CatalogHierarchy hierarchy,
String schema,
IdentifierInputForm form)
A schema under a topology that has no catalog level.
|
static CatalogObjectKey |
CatalogObjectKey.schemaIn(IdentifierService service,
CatalogObjectKey parentCatalog,
String schema,
IdentifierInputForm form)
A schema inside an already-identified catalog.
|
static void |
CatalogNameGrammar.validateLookup(List<CatalogLookupName.Slot> slots,
CatalogObjectKind terminalKind,
CatalogHierarchy hierarchy,
String databaseLink,
IdentifierInputForm linkForm,
CatalogParentConstraint parentConstraint)
Validates a LOOKUP.
|
| Modifier and Type | Method and Description |
|---|---|
static IdentifierInputForm |
ModelBindingManager.getGlobalDatabaseForm()
CATALOG_STORED when the global database text is a stored name, else null. |
static IdentifierInputForm |
ModelBindingManager.getGlobalSchemaForm()
CATALOG_STORED when the global schema text is a stored name, else null. |
IdentifierInputForm |
SqlInfo.getGroupNameForm()
The form of the names in
SqlInfo.getGroup(): CATALOG_STORED when a metadata export that
declares it gave them (a query's stored database and schema), null for SQL spellings. |
| Modifier and Type | Method and Description |
|---|---|
static void |
ModelBindingManager.setGlobalDatabase(String database,
IdentifierInputForm form)
ModelBindingManager.setGlobalDatabase(String) with the form the text arrived in; null is a SQL spelling. |
static void |
ModelBindingManager.setGlobalSchema(String schema,
IdentifierInputForm form)
ModelBindingManager.setGlobalSchema(String) with the form the text arrived in; null is a SQL spelling. |
void |
SqlInfo.setGroupNameForm(IdentifierInputForm groupNameForm) |
| Modifier and Type | Method and Description |
|---|---|
IdentifierInputForm |
TObjectName.getImplictDatabaseForm()
Where the text of
TObjectName.getImplictDatabaseString() came from; see TObjectName.getImplictSchemaForm(). |
IdentifierInputForm |
TObjectName.getImplictSchemaForm()
Where the text of
TObjectName.getImplictSchemaString() came from, so a consumer can key it:
CATALOG_STORED when the name was found by
searching the catalog and the text is the schema the catalog holds it in (TSQLSchema.getName()),
SQL_LEXICAL when it is a spelling: the name's
own qualifier, or a session default a resolver stamped, which the catalog itself reads as SQL. |
| Constructor and Description |
|---|
Segment(String segmentKind,
ESQLDataObjectType objectType,
String text,
IdentifierInputForm inputForm) |
| Modifier and Type | Method and Description |
|---|---|
static IdentifierInputForm |
TSQLEnv.parseNameForm(Object declared,
IdentifierInputForm defaultForm)
Read a metadata file's
nameForm declaration. |
static IdentifierInputForm |
IdentifierInputForm.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IdentifierInputForm[] |
IdentifierInputForm.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
ApproximateIdentifierKey |
IdentifierService.approximateKeyV1(ESQLDataObjectType objectType,
String name,
IdentifierInputForm form)
Mint the best-effort key that serves EVERY rule cell, including the
collation-based and mixed-kind cells
IdentifierService.persistentKeyV1(gudusoft.gsqlparser.sqlenv.ESQLDataObjectType, java.lang.String, gudusoft.gsqlparser.sqlenv.IdentifierInputForm) rejects:
quote-strip (lenient — a malformed quoted spelling keeps its identity
as written, mirroring IdentifierService.areEqual(java.lang.String, java.lang.String, gudusoft.gsqlparser.sqlenv.ESQLDataObjectType)'s totality) plus pinned simple
case-fold collapse. |
CanonKey |
IdentifierService.canonKeyOf(String text,
ESQLDataObjectType objectType,
IdentifierInputForm form)
Canonical key for one component, with its provenance stated rather than guessed (stage S0R).
|
static IdentifierInputForm |
TSQLEnv.parseNameForm(Object declared,
IdentifierInputForm defaultForm)
Read a metadata file's
nameForm declaration. |
PersistentIdentifierKey |
IdentifierService.persistentKeyV1(ESQLDataObjectType objectType,
String name,
IdentifierInputForm form)
Mint the persistable canonical key of one identifier segment.
|
static String |
TSQLEnv.toLexical(EDbVendor vendor,
ESQLDataObjectType objectType,
String name,
IdentifierInputForm form)
The spelling to hand to
createTable / addColumn / createSchema and
the other catalog entry points, for a name that arrived in the given input form. |
String |
TSQLEnv.toLexical(ESQLDataObjectType objectType,
String name,
IdentifierInputForm form)
Instance counterpart of
TSQLEnv.toLexical(EDbVendor, ESQLDataObjectType, String,
IdentifierInputForm) that encodes under THIS environment's configuration. |
| Modifier and Type | Method and Description |
|---|---|
QualifiedCanonKey |
IdentifierService.qualifiedCanonKeyFromSegments(List<String> segments,
List<IdentifierInputForm> forms,
ESQLDataObjectType objectType)
Identity key of a qualified name whose segments arrived in DIFFERENT forms: one entry per
hierarchy level, outermost first, each with the form it arrived in.
|
| Constructor and Description |
|---|
SqlflowShardedSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server,
String baseDir,
IdentifierInputForm nameForm) |
SqlflowShardedSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server,
String baseDir,
IdentifierInputForm nameForm,
IdentifierProfile identifierProfile)
Same input, analyzed under an explicit identifier configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static IdentifierInputForm |
SqlflowNameForm.declared(Map root)
The form a
servers file declares; SQL_LEXICAL when it declares none. |
static IdentifierInputForm |
SqlflowNameForm.toLexicalInPlace(EDbVendor defaultVendor,
Map root)
Rewrite a parsed
servers file, in place, so that its names are SQL text. |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlflowNameForm.shardToLexicalInPlace(EDbVendor vendor,
Map shard,
ESQLDataObjectType role,
IdentifierInputForm manifestForm)
Rewrite one catalog or schema shard of a sharded export, in place.
|
| Constructor and Description |
|---|
SqlflowSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server,
IdentifierInputForm nameForm) |
SqlflowSQLEnv(String defaultServer,
String defaultDatabase,
String defaultSchema,
EDbVendor dbVendor,
Map server,
IdentifierInputForm nameForm,
IdentifierProfile identifierProfile)
Same input, analyzed under an explicit identifier configuration.
|