Class

io.snappydata.sql.catalog.impl

SmartConnectorExternalCatalog

Related Doc: package impl

Permalink

class SmartConnectorExternalCatalog extends ExternalCatalog with SnappyExternalCatalog with ConnectorExternalCatalog

An ExternalCatalog implementation for the smart connector mode.

Note that unlike other ExternalCatalog implementations, this is created one for each session rather than being a singleton in the SharedState because each request needs to be authenticated independently using the credentials of the user that created the session. Consequently calls to "sharedState.externalCatalog()" will return null in smart connector mode and should never be used. For internal code paths in Spark that use it, an alternative dummy global might be added later that switches the user authentication using thread-locals or similar, but as of now it is used only by some hive insert paths which are not used in SnappySessionState.

Linear Supertypes
ConnectorExternalCatalog, SnappyExternalCatalog, ExternalCatalog, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SmartConnectorExternalCatalog
  2. ConnectorExternalCatalog
  3. SnappyExternalCatalog
  4. ExternalCatalog
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SmartConnectorExternalCatalog(session: SparkSession)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def alterDatabase(schemaDefinition: CatalogDatabase): Unit

    Permalink
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  5. def alterPartitions(schema: String, table: String, parts: Seq[CatalogTablePartition]): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  6. def alterTable(table: CatalogTable): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  7. def alterTableSchema(schemaName: String, table: String, schema: StructType): Unit

    Permalink
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def close(): Unit

    Permalink
    Definition Classes
    ConnectorExternalCatalog
  11. var connectorHelper: SmartConnectorHelper

    Permalink
    Attributes
    protected
    Definition Classes
    ConnectorExternalCatalog
  12. def createDatabase(schemaDefinition: CatalogDatabase, ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  13. def createFunction(schema: String, function: CatalogFunction): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  14. def createPartitions(schema: String, table: String, parts: Seq[CatalogTablePartition], ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  15. def createPolicy(schemaName: String, policyName: String, targetTable: String, policyFor: String, policyApplyTo: Seq[String], expandedPolicyApplyTo: Seq[String], owner: String, filterString: String): Unit

    Permalink
  16. def createTable(table: CatalogTable, ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  17. def databaseExists(schema: String): Boolean

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  18. def dropDatabase(schema: String, ignoreIfNotExists: Boolean, cascade: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  19. def dropFunction(schema: String, funcName: String): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  20. def dropPartitions(schema: String, table: String, parts: Seq[TablePartitionSpec], ignoreIfNotExists: Boolean, purge: Boolean, retainData: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  21. def dropTable(schema: String, table: String, ignoreIfNotExists: Boolean, purge: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def functionExists(schema: String, funcName: String): Boolean

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  26. def getAllTables(skipSchemas: Seq[String] = SYS_SCHEMA :: Nil): Seq[CatalogTable]

    Permalink

    Get all the tables in the catalog skipping given schema names.

    Get all the tables in the catalog skipping given schema names. By default the inbuilt SYS schema is skipped.

    Definition Classes
    SnappyExternalCatalog
  27. def getBaseTable(tableDefinition: CatalogTable): Option[String]

    Permalink

    Check for baseTable in both properties and storage.properties (older releases used a mix).

    Check for baseTable in both properties and storage.properties (older releases used a mix).

    Definition Classes
    SnappyExternalCatalog
  28. def getCachedCatalogTable(schema: String, table: String): CatalogTable

    Permalink
    Attributes
    protected
    Definition Classes
    SmartConnectorExternalCatalogSnappyExternalCatalog
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getDatabase(schema: String): CatalogDatabase

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  31. def getDependents(schema: String, table: String, catalogTable: CatalogTable, includeTypes: Seq[Type], excludeTypes: Seq[Type]): Seq[CatalogTable]

    Permalink

    Get all the dependent objects for a given catalog object.

    Get all the dependent objects for a given catalog object.

    Definition Classes
    SnappyExternalCatalog
  32. def getDependentsFromProperties(schema: String, properties: Map[String, String], includeTypes: Seq[Type], excludeTypes: Seq[Type]): Seq[CatalogTable]

    Permalink
    Attributes
    protected
    Definition Classes
    SnappyExternalCatalog
  33. def getDependentsFromProperties(schema: String, table: String, includeTypes: Seq[Type] = Nil, excludeTypes: Seq[Type] = Nil): Seq[CatalogTable]

    Permalink

    Get all the dependent objects for a given catalog object.

    Get all the dependent objects for a given catalog object. Note that this does not check for older releases that may lack appropriate catalog entries for dependent relations. Use getDependents for cases where that might be possible.

    Definition Classes
    SnappyExternalCatalog
  34. def getFunction(schema: String, funcName: String): CatalogFunction

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  35. def getPartition(schema: String, table: String, spec: TablePartitionSpec): CatalogTablePartition

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  36. def getPartitionOption(schema: String, table: String, spec: TablePartitionSpec): Option[CatalogTablePartition]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  37. def getPolicies(schema: String, table: String, properties: Map[String, String]): Seq[CatalogTable]

    Permalink

    Get the list of policies defined for a given table

    Get the list of policies defined for a given table

    schema

    schema name of the table

    table

    name of the table

    properties

    CatalogTable.properties for the table

    returns

    list of policy CatalogTables

    Definition Classes
    SnappyExternalCatalog
  38. def getRelationInfo(schema: String, table: String, rowTable: Boolean): (RelationInfo, Option[LocalRegion])

    Permalink

    Get RelationInfo for given table with underlying region in embedded mode.

    Get RelationInfo for given table with underlying region in embedded mode.

    Definition Classes
    SmartConnectorExternalCatalogSnappyExternalCatalog
  39. def getTable(schema: String, table: String): CatalogTable

    Permalink
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  40. def getTableOption(schema: String, table: String): Option[CatalogTable]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  41. def getTableWithBaseTable(table: CatalogTable): Seq[(String, String)]

    Permalink
    Attributes
    protected
    Definition Classes
    SnappyExternalCatalog
  42. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  43. def invalidate(name: (String, String)): Unit

    Permalink
  44. def invalidateAll(): Unit

    Permalink
    Definition Classes
    ConnectorExternalCatalog
  45. def invalidateCaches(relations: Seq[(String, String)]): Unit

    Permalink
  46. def isConnectionException(e: SQLException): Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    ConnectorExternalCatalog
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. def jdbcUrl: String

    Permalink
  49. def listDatabases(pattern: String): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  50. def listDatabases(): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  51. def listFunctions(schema: String, pattern: String): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  52. def listPartitionNames(schema: String, table: String, partialSpec: Option[TablePartitionSpec]): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  53. def listPartitions(schema: String, table: String, partialSpec: Option[TablePartitionSpec]): Seq[CatalogTablePartition]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  54. def listPartitionsByFilter(schema: String, table: String, predicates: Seq[Expression]): Seq[CatalogTablePartition]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  55. def listTables(schema: String, pattern: String): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  56. def listTables(schema: String): Seq[String]

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  57. def loadDynamicPartitions(schema: String, table: String, loadPath: String, partition: TablePartitionSpec, replace: Boolean, numDP: Int, holdDDLTime: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  58. def loadPartition(schema: String, table: String, loadPath: String, partition: TablePartitionSpec, isOverwrite: Boolean, holdDDLTime: Boolean, inheritTableSpecs: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  59. def loadTable(schema: String, table: String, loadPath: String, isOverwrite: Boolean, holdDDLTime: Boolean): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  60. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. def renameFunction(schema: String, oldName: String, newName: String): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  64. def renamePartitions(schema: String, table: String, specs: Seq[TablePartitionSpec], newSpecs: Seq[TablePartitionSpec]): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  65. def renameTable(schemaName: String, oldName: String, newName: String): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  66. def requireDbExists(schema: String): Unit

    Permalink
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  67. def requireFunctionExists(schema: String, funcName: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  68. def requireFunctionNotExists(schema: String, funcName: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  69. def requireTableExists(schema: String, table: String): Unit

    Permalink
    Definition Classes
    SnappyExternalCatalog → ExternalCatalog
  70. def schemaNotFoundException(schema: String): AnalysisException

    Permalink
    Attributes
    protected
    Definition Classes
    SnappyExternalCatalog
  71. val session: SparkSession

    Permalink
  72. def setCurrentDatabase(schema: String): Unit

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  73. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  74. def systemSchemaDefinition: CatalogDatabase

    Permalink
    Definition Classes
    SnappyExternalCatalog
  75. def tableExists(schema: String, table: String): Boolean

    Permalink
    Definition Classes
    SmartConnectorExternalCatalog → ExternalCatalog
  76. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  77. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  78. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  79. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. def withExceptionHandling[T](function: ⇒ T): T

    Permalink
    Attributes
    protected
    Definition Classes
    ConnectorExternalCatalog

Inherited from ConnectorExternalCatalog

Inherited from SnappyExternalCatalog

Inherited from ExternalCatalog

Inherited from AnyRef

Inherited from Any

Ungrouped