class CachedTable extends BaseCachedTable
Represents a cached table entry with a single refresher function. All the queries sent to the same table can share the same refresher to update file URLs.
Example:
If two queries share the same cached table entry, they will both rely on the same refresher
function to update the file URLs. When the refresher is invoked, it will generate a new
mapping of file IDs to pre-signed URLs, along with a new expiration timestamp and refresh token.
This ensures that both queries benefit from the updated URLs without duplicating the refresh
logic or state.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- CachedTable
- BaseCachedTable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new CachedTable(expiration: Long, idToUrl: Map[String, String], lastAccess: Long, refreshToken: Option[String], refresher: (Option[String]) => TableRefreshResult, refs: Seq[WeakReference[AnyRef]])
- refs
the references that we track. When all of references in the table are gone, we will remove the cached table from our cache.
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()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val expiration: Long
- Definition Classes
- BaseCachedTable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- val idToUrl: Map[String, String]
- Definition Classes
- BaseCachedTable
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- var lastAccess: Long
- Definition Classes
- BaseCachedTable
- 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()
- val refreshToken: Option[String]
- Definition Classes
- BaseCachedTable
- val refresher: (Option[String]) => TableRefreshResult
- Definition Classes
- BaseCachedTable
- val refs: Seq[WeakReference[AnyRef]]
- 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)