Uses of Enum
gudusoft.gsqlparser.sqlenv.ESQLDataObjectType
Packages that use ESQLDataObjectType
Package
Description
-
Uses of ESQLDataObjectType in gudusoft.gsqlparser.dlineage.util
Methods in gudusoft.gsqlparser.dlineage.util with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionstatic booleanDlineageUtil.compareIdentifier(String source, String target, ESQLDataObjectType sqlDataObjectType) static StringDlineageUtil.getIdentifierNormalName(String name, ESQLDataObjectType sqlDataObjectType) -
Uses of ESQLDataObjectType in gudusoft.gsqlparser.resolver2.matcher
Methods in gudusoft.gsqlparser.resolver2.matcher that return ESQLDataObjectTypeModifier and TypeMethodDescriptionVendorNameMatcher.getDefaultObjectType()Get the default object type.Methods in gudusoft.gsqlparser.resolver2.matcher with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionbooleanVendorNameMatcher.matches(String name1, String name2, ESQLDataObjectType objectType) Check if two names match according to vendor rules for a specific object type.VendorNameMatcher.normalize(String name, ESQLDataObjectType objectType) Normalize a name according to vendor rules for a specific object type.VendorNameMatcher.normalizeQualifiedName(String qualifiedName, ESQLDataObjectType objectType) Normalize a qualified name (e.g., schema.table.column).VendorNameMatcher.withObjectType(ESQLDataObjectType objectType) Create a new matcher with a different default object type.Constructors in gudusoft.gsqlparser.resolver2.matcher with parameters of type ESQLDataObjectTypeModifierConstructorDescriptionVendorNameMatcher(EDbVendor vendor, ESQLDataObjectType defaultObjectType) Create a vendor name matcher with specified default object type. -
Uses of ESQLDataObjectType in gudusoft.gsqlparser.sqlenv
Fields in gudusoft.gsqlparser.sqlenv declared as ESQLDataObjectTypeModifier and TypeFieldDescriptionprotected ESQLDataObjectTypeTSQLObject.dataObjectTypefinal ESQLDataObjectTypeNameKey.objectTypefinal ESQLDataObjectTypeQualifiedName.objectTypeMethods in gudusoft.gsqlparser.sqlenv that return ESQLDataObjectTypeModifier and TypeMethodDescriptionTSQLObject.getDataObjectType()Type of this database objectstatic ESQLDataObjectTypeReturns the enum constant of this type with the specified name.static ESQLDataObjectType[]ESQLDataObjectType.values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in gudusoft.gsqlparser.sqlenv with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionTSQLEnv.addSQLRoutine(String qualifiedProcedureName, boolean fromDDL, ESQLDataObjectType type) booleanIdentifierService.areEqual(String ident1, String ident2, ESQLDataObjectType objectType) 比较两个标识符是否相等static booleanIdentifierService.areEqualStatic(EDbVendor dbVendor, ESQLDataObjectType objectType, String ident1, String ident2) High-performance static identifier comparison method with cachingvoidIdentifierService.assertSingleSegmentOrThrow(String identifier, ESQLDataObjectType objectType) 断言标识符为单段,否则抛出异常CompositeKeyOptimizer.buildCompositeKey(String qualifiedName, ESQLDataObjectType objectType) 构建复合键(使用长度前缀编码避免冲突)IdentifierService.buildCompositeKey(String qualifiedName, ESQLDataObjectType objectType) 构造复合键(从完整限定名)IdentifierService.buildCompositeKey(List<String> segments, ESQLDataObjectType objectType) 构造复合键(使用长度前缀编码避免冲突)static StringNameNormalizer.canonicalize(EDbVendor vendor, ESQLDataObjectType type, String identifier) static booleanTSQLEnv.compareIdentifier(EDbVendor dbVendor, ESQLDataObjectType objectType, TObjectName source, TObjectName target) static booleanTSQLEnv.compareIdentifier(EDbVendor dbVendor, ESQLDataObjectType objectType, String ident1, String ident2) booleanTSQLEnv.compareIdentifier(ESQLDataObjectType objectType, String ident1, String ident2) static intTSQLObject.compareTo(EDbVendor dbVendor, ESQLDataObjectType sqlDataObjectType, TSQLObject targetDataObject, String objectName) static intTSQLObject.compareTo(EDbVendor dbVendor, ESQLDataObjectType sqlDataObjectType, String pTargetObjectName, String objectName) Deprecated.since version 2.2.3.2(2021-05-10), replaced by @TSQLEnv.compareIdentifier()static intTSQLObject.compareTo(TSQLEnv sqlEnv, ESQLDataObjectType sqlDataObjectType, TSQLObject targetDataObject, String objectName) how to compare the name of database object is various from different databases due to the different implementation.TSQLSchema.createProcedure(String procedureName, ESQLDataObjectType type) protected TSQLSchemaObjectTSQLOraclePackage.createSchemaObject(String schemaObjectName, ESQLDataObjectType dataObjectType) protected TSQLSchemaObjectTSQLOraclePackage.createSchemaObject(String schemaObjectName, ESQLDataObjectType dataObjectType, int priority) TSQLSchema.createSchemaObject(String schemaObjectName, ESQLDataObjectType dataObjectType) protected TSQLSchemaObjectTSQLSchema.createSchemaObject(String schemaObjectName, ESQLDataObjectType dataObjectType, int priority) TSQLEnv.doAddSchemaObject(TObjectName qualifiedObjectName, ESQLDataObjectType objectType) TSQLEnv.doAddSchemaObject(String qualifiedObjectName, ESQLDataObjectType objectType) protected TSQLSchemaObjectTSQLEnv.doSearchSchemaObject(String catalog, String schema, String table, ESQLDataObjectType objectType) HierarchicalResolver.findSchemaObject(TSQLEnv env, String qualifiedName, ESQLDataObjectType objectType) 查找 schema 对象(通用方法)CompositeKeyOptimizer.get(String qualifiedName, ESQLDataObjectType objectType) 从复合键索引查找对象IdentifierProfile.getRules(ESQLDataObjectType objectType) 获取指定对象类型的标识符规则IdentifierService.keyForMap(String identifier, ESQLDataObjectType objectType) 为 Map 索引构造键(单个标识符段)static booleanTSQLEnv.matchSubObjectNameToWhole(EDbVendor dbVendor, ESQLDataObjectType sqlDataObjectType, String sub, String whole) 比较 一个数据库对象名是否等于或者属于另一个对象 等于 就是完全相等(根据不同数据库的比较规则) 属于 表示如下情况: 1.IdentifierService.normalize(String identifier, ESQLDataObjectType objectType) 规范化标识符(去引号 + 大小写折叠)static StringTSQLEnv.normalizeIdentifier(EDbVendor dbVendor, ESQLDataObjectType sqlDataObjectType, String identifier) 1.TSQLEnv.normalizeIdentifier(ESQLDataObjectType sqlDataObjectType, String identifier) IdentifierService.normalizeQualifiedName(String qualifiedName, ESQLDataObjectType objectType) 规范化完整限定名(等价于 SQLUtil.getIdentifierNormalName)IdentifierService.normalizeSegment(String segment, ESQLDataObjectType objectType) 规范化单个段(去引号 + 大小写折叠)static StringIdentifierService.normalizeStatic(EDbVendor dbVendor, ESQLDataObjectType objectType, String identifier) High-performance static normalize method with cachingvoidCompositeKeyOptimizer.put(String qualifiedName, ESQLDataObjectType objectType, TSQLSchemaObject object) 添加对象到复合键索引CompositeKeyOptimizer.remove(String qualifiedName, ESQLDataObjectType objectType) 移除对象protected TSQLSchemaObjectTSQLEnv.searchSchemaObject(TObjectName qualifiedName, ESQLDataObjectType objectType) TSQLEnv.searchSchemaObject(String qualifiedName, ESQLDataObjectType objectType) Phase 1: 使用 IdentifierService 的新方法处理多段名voidTSQLObject.setDataObjectType(ESQLDataObjectType dataObjectType) Method parameters in gudusoft.gsqlparser.sqlenv with type arguments of type ESQLDataObjectTypeModifier and TypeMethodDescriptionIdentifierService.keysForHierarchy(String qualifiedName, List<ESQLDataObjectType> partTypes) 生成层级索引所需的段级键列表Constructors in gudusoft.gsqlparser.sqlenv with parameters of type ESQLDataObjectTypeModifierConstructorDescriptionBucketedIndex(CollatorProvider collatorProvider, String collationName, ESQLDataObjectType objectType) 构造分桶索引QualifiedName(EDbVendor vendor, String server, String catalog, String schema, String object, String column, ESQLDataObjectType objectType) TSQLObject(TSQLEnv sqlEnv, String objectName, ESQLDataObjectType dataObjectType) create a new database object and add to the SQL environment.TSQLProcedure(TSQLOraclePackage oraclePackage, String procedureName, ESQLDataObjectType dataObjectType) TSQLProcedure(TSQLSchema sqlSchema, String procedureName, ESQLDataObjectType dataObjectType) TSQLRoutine(TSQLSchema schema, String objectName, ESQLDataObjectType dataObjectType) TSQLSchemaObject(TSQLSchema schema, String objectName, ESQLDataObjectType dataObjectType) TSQLSchemaObject(TSQLSchema schema, String objectName, ESQLDataObjectType dataObjectType, int priority) -
Uses of ESQLDataObjectType in gudusoft.gsqlparser.sqlenv.calcite
Methods in gudusoft.gsqlparser.sqlenv.calcite that return ESQLDataObjectTypeMethods in gudusoft.gsqlparser.sqlenv.calcite with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionNameService.createSet(ESQLDataObjectType type) Creates a Set that uses vendor/type-aware name matching for equality.NameService.distinctCopy(ESQLDataObjectType type, Iterable<String> names) Creates a distinct copy of a collection, removing duplicates using vendor/type-aware matching.booleanNameService.equals(ESQLDataObjectType type, String name1, String name2) Checks if two names are equal according to vendor-specific and type-specific rules.CatalogStore.get(String catalog, String schema, String objectName, ESQLDataObjectType type) Finds an object by its fully-qualified name and type.CatalogStore.getByName(String objectName, ESQLDataObjectType type) Finds objects by name only, regardless of catalog/schema.CatalogStore.getByType(ESQLDataObjectType type) Finds all objects of a specific type.NamePolicyFactory.getMatcherForType(ESQLDataObjectType type) Gets or creates a SqlNameMatcher for the specified object type.intNameService.indexOf(ESQLDataObjectType type, Iterable<String> names, String target) Finds the index of a name in a collection, using vendor/type-aware matching.booleanNamePolicyFactory.isCaseSensitive(ESQLDataObjectType type) Convenience method to check if a specific object type is case-sensitive for this vendor.booleanNameService.isCaseSensitive(ESQLDataObjectType type) Checks if a specific object type is case-sensitive for this vendor.Constructors in gudusoft.gsqlparser.sqlenv.calcite with parameters of type ESQLDataObjectTypeModifierConstructorDescriptionQualifiedName(String catalog, String schema, String objectName, ESQLDataObjectType type) -
Uses of ESQLDataObjectType in gudusoft.gsqlparser.sqlenv.catalog
Methods in gudusoft.gsqlparser.sqlenv.catalog with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionCatalogStoreProvider.findObject(String catalog, String schema, String objectName, ESQLDataObjectType type) ICatalogProvider.findObject(String catalog, String schema, String objectName, ESQLDataObjectType type) 查找 schema 对象(全限定名查找)LegacyCatalogProvider.findObject(String catalog, String schema, String objectName, ESQLDataObjectType type) voidDifferenceLogger.logNewSearchError(String catalog, String schema, String objectName, ESQLDataObjectType type, Throwable e) 记录新实现的 search 错误voidDifferenceLogger.logSearchDifference(String catalog, String schema, String objectName, ESQLDataObjectType type, TSQLSchemaObject legacyResult, TSQLSchemaObject newResult) 记录搜索结果差异voidDifferenceLogger.logSearchMiss(String catalog, String schema, String objectName, ESQLDataObjectType type) 记录搜索 miss(新实现未找到对象) -
Uses of ESQLDataObjectType in gudusoft.gsqlparser.util
Methods in gudusoft.gsqlparser.util that return ESQLDataObjectTypeMethods in gudusoft.gsqlparser.util with parameters of type ESQLDataObjectTypeModifier and TypeMethodDescriptionstatic booleanSQLUtil.compareIdentifier(EDbVendor dbVendor, ESQLDataObjectType sqlDataObjectType, String identifier1, String identifier2) static StringSQLUtil.getIdentifierNormalName(EDbVendor dbVendor, String name, ESQLDataObjectType sqlDataObjectType) 规范化多段限定名(Multi-Segment Qualified Name)并返回规范化后的完整限定名。static StringSQLUtil.normalizeIdentifier(EDbVendor dbVendor, ESQLDataObjectType objectType, String identifier) Constructors in gudusoft.gsqlparser.util with parameters of type ESQLDataObjectTypeModifierConstructorDescriptionIdentifier(EDbVendor vendor, ESQLDataObjectType sqlDataObjectType, String identifier)