Class

org.apache.spark.sql.catalyst.catalog

InMemoryCatalog

Related Doc: package catalog

Permalink

class InMemoryCatalog extends ExternalCatalog

An in-memory (ephemeral) implementation of the system catalog.

This is a dummy implementation that does not require setting up external systems. It is intended for testing or exploration purposes only and should not be used in production.

All public methods should be synchronized for thread-safety.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InMemoryCatalog
  2. ExternalCatalog
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new InMemoryCatalog(hadoopConfig: Configuration = new Configuration)

    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(dbDefinition: CatalogDatabase): Unit

    Permalink

    Alter a database whose name matches the one specified in dbDefinition, assuming the database exists.

    Alter a database whose name matches the one specified in dbDefinition, assuming the database exists.

    Note: If the underlying implementation does not support altering a certain field, this becomes a no-op.

    Definition Classes
    InMemoryCatalogExternalCatalog
  5. def alterPartitions(db: String, table: String, parts: Seq[CatalogTablePartition]): Unit

    Permalink

    Alter one or many table partitions whose specs that match those specified in parts, assuming the partitions exist.

    Alter one or many table partitions whose specs that match those specified in parts, assuming the partitions exist.

    Note: If the underlying implementation does not support altering a certain field, this becomes a no-op.

    Definition Classes
    InMemoryCatalogExternalCatalog
  6. def alterTable(db: String, tableDefinition: CatalogTable): Unit

    Permalink

    Alter a table whose name that matches the one specified in tableDefinition, assuming the table exists.

    Alter a table whose name that matches the one specified in tableDefinition, assuming the table exists.

    Note: If the underlying implementation does not support altering a certain field, this becomes a no-op.

    Definition Classes
    InMemoryCatalogExternalCatalog
  7. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def createDatabase(dbDefinition: CatalogDatabase, ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  10. def createFunction(db: String, func: CatalogFunction): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  11. def createPartitions(db: String, table: String, parts: Seq[CatalogTablePartition], ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  12. def createTable(db: String, tableDefinition: CatalogTable, ignoreIfExists: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  13. def databaseExists(db: String): Boolean

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  14. def dropDatabase(db: String, ignoreIfNotExists: Boolean, cascade: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  15. def dropFunction(db: String, funcName: String): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  16. def dropPartitions(db: String, table: String, partSpecs: Seq[TablePartitionSpec], ignoreIfNotExists: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  17. def dropTable(db: String, table: String, ignoreIfNotExists: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  18. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  22. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  23. def getDatabase(db: String): CatalogDatabase

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  24. def getFunction(db: String, funcName: String): CatalogFunction

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  25. def getPartition(db: String, table: String, spec: TablePartitionSpec): CatalogTablePartition

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  26. def getTable(db: String, table: String): CatalogTable

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  27. def getTableOption(db: String, table: String): Option[CatalogTable]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  28. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def listDatabases(pattern: String): Seq[String]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  31. def listDatabases(): Seq[String]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  32. def listFunctions(db: String, pattern: String): Seq[String]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  33. def listPartitions(db: String, table: String, partialSpec: Option[TablePartitionSpec] = None): Seq[CatalogTablePartition]

    Permalink

    List the metadata of all partitions that belong to the specified table, assuming it exists.

    List the metadata of all partitions that belong to the specified table, assuming it exists.

    A partial partition spec may optionally be provided to filter the partitions returned. For instance, if there exist partitions (a='1', b='2'), (a='1', b='3') and (a='2', b='4'), then a partial spec of (a='1') will return the first two only.

    db

    database name

    table

    table name

    partialSpec

    partition spec

    Definition Classes
    InMemoryCatalogExternalCatalog
  34. def listTables(db: String, pattern: String): Seq[String]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  35. def listTables(db: String): Seq[String]

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  36. def loadPartition(db: String, table: String, loadPath: String, partition: TablePartitionSpec, isOverwrite: Boolean, holdDDLTime: Boolean, inheritTableSpecs: Boolean, isSkewedStoreAsSubdir: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  37. def loadTable(db: String, table: String, loadPath: String, isOverwrite: Boolean, holdDDLTime: Boolean): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  38. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  41. def renameFunction(db: String, oldName: String, newName: String): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  42. def renamePartitions(db: String, table: String, specs: Seq[TablePartitionSpec], newSpecs: Seq[TablePartitionSpec]): Unit

    Permalink

    Override the specs of one or many existing table partitions, assuming they exist.

    Override the specs of one or many existing table partitions, assuming they exist. This assumes index i of specs corresponds to index i of newSpecs.

    Definition Classes
    InMemoryCatalogExternalCatalog
  43. def renameTable(db: String, oldName: String, newName: String): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  44. def requireDbExists(db: String): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ExternalCatalog
  45. def setCurrentDatabase(db: String): Unit

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def tableExists(db: String, table: String): Boolean

    Permalink
    Definition Classes
    InMemoryCatalogExternalCatalog
  48. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ExternalCatalog

Inherited from AnyRef

Inherited from Any

Ungrouped