class InMemoryUCClient extends UCClient
An in-memory implementation of UCClient for testing purposes. This implementation simulates Unity Catalog operations without actually connecting to a remote service. It maintains all state in memory in InMemoryUCCommitCoordinator
This class provides a lightweight way to test Delta table operations that would normally require interaction with the Unity Catalog.
Example usage:
val metastoreId = "test-metastore" val ucCommitCoordinator = new InMemoryUCCommitCoordinator() val client = new InMemoryUCClient(metastoreId, ucCommitCoordinator) // Use the client for testing val getCommitsResponse = client.getCommits( "tableId", new URI("tableUri"), Optional.empty(), Optional.empty())
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- InMemoryUCClient
- UCClient
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new InMemoryUCClient(metastoreId: String, ucCommitCoordinator: InMemoryUCCommitCoordinator)
- metastoreId
The identifier for the simulated metastore
- ucCommitCoordinator
The in-memory coordinator to handle commit operations
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def close(): Unit
- Definition Classes
- InMemoryUCClient → UCClient → AutoCloseable
- def commit(tableId: String, tableUri: URI, commit: Optional[Commit], lastKnownBackfilledVersion: Optional[Long], disown: Boolean, newMetadata: Optional[AbstractMetadata], newProtocol: Optional[AbstractProtocol]): Unit
- Definition Classes
- InMemoryUCClient → UCClient
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def getCommits(tableId: String, tableUri: URI, startVersion: Optional[Long], endVersion: Optional[Long]): GetCommitsResponse
- Definition Classes
- InMemoryUCClient → UCClient
- def getMetastoreId(): String
- Definition Classes
- InMemoryUCClient → UCClient
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)