class StringInterningView extends StringInterning with InternizingStringInterningView with UpdatingStringInterningView with NamedLogging
This uses the prefixed raw representation internally similar to the persistence layer. Concurrent view usage is optimized for reading: - The single, volatile reference enables non-synchronized access from all threads, accessing persistent-immutable datastructure - On the writing side it synchronizes (this usage is anyway expected) and maintains the immutable internal datastructure
- Alphabetic
- By Inheritance
- StringInterningView
- NamedLogging
- UpdatingStringInterningView
- InternizingStringInterningView
- StringInterning
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new StringInterningView(loggerFactory: NamedLoggerFactory)
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]) @native() @IntrinsicCandidate()
- val domainId: StringInterningDomain[DomainId]
- Definition Classes
- StringInterningView → StringInterning
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- implicit def errorLoggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def internize(domainStringIterators: DomainStringIterators): Iterable[(Int, String)]
Internize strings of different domains.
Internize strings of different domains. The new entries are returend as prefixed entries for persistent storage.
- domainStringIterators
iterators of the new entires
- returns
If some of the entries were not part of the view: they will be added, and these will be returned as a interned-id and raw, prefixed string pairs.
- Definition Classes
- StringInterningView → InternizingStringInterningView
- Note
This method is thread-safe.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: TracedLogger
- Attributes
- protected
- Definition Classes
- NamedLogging
- val loggerFactory: NamedLoggerFactory
- Attributes
- protected
- Definition Classes
- StringInterningView → NamedLogging
- implicit def namedLoggingContext(implicit traceContext: TraceContext): NamedLoggingContext
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- Attributes
- protected
- Definition Classes
- NamedLogging
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- val packageName: StringInterningDomain[PackageName]
- Definition Classes
- StringInterningView → StringInterning
- val party: StringInterningDomain[Party]
- Definition Classes
- StringInterningView → StringInterning
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val templateId: StringInterningDomain[Identifier]
- Definition Classes
- StringInterningView → StringInterning
- def toString(): String
- Definition Classes
- AnyRef → Any
- def update(lastStringInterningId: Int)(loadStringInterningEntries: LoadStringInterningEntries): Future[Unit]
Update the StringInterningView from persistence
Update the StringInterningView from persistence
- lastStringInterningId
this is the "version" of the persistent view, which from the StringInterningView can see if it is behind
- returns
a completion Future: * if the view is behind, it will load the missing entries from persistence, and update the view state. * if the view is ahead, it will remove all entries with ids greater than the
lastStringInterningId
- Definition Classes
- StringInterningView → UpdatingStringInterningView
- Note
This method is NOT thread-safe and should not be called concurrently with itself or InternizingStringInterningView.internize.
- 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])