scales.xml.parser.strategies

QNameOptimisationT

trait QNameOptimisationT[Token <: QNameToken] extends MemoryOptimisationStrategy[Token]

Threadsafe global cache, assumption is most applications would benefit from this

Linear Supertypes
MemoryOptimisationStrategy[Token], AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QNameOptimisationT
  2. MemoryOptimisationStrategy
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createToken(implicit ver: XmlVersion, fromParser: FromParser): Token

    Definition Classes
    MemoryOptimisationStrategy

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def attribute(qname: xml.AttributeQName, value: String, token: Token): Attribute

    It is expected that certain attributes have fixed values, ie.

    It is expected that certain attributes have fixed values, ie. booleans or based on schema enums etc, this function allows such optimisations.

    The qname will have been obtained via a call to either noNamespaceQName, unprefixedQName or prefixedQName, so any optimisations provided by them can be leveraged.

    Definition Classes
    MemoryOptimisationStrategy
  8. def attributeArray(newSize: Int, token: Token): Array[Attribute]

    During parsing provides a backing array for attribute storage.

    During parsing provides a backing array for attribute storage. The expected new size must be passed in, failure to give a size large enough will lead to OOB exceptions.

    Implementations are advised to use the array for parsing performance reasons.

    The default implementataion expands the size by 50% of the backed array. The array ownership should remain with the strategy instance

    Definition Classes
    MemoryOptimisationStrategy
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def elem(name: QName, attributes: xml.Attributes, namespaces: Map[String, String], token: Token): Elem

    For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.

    For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.

    The Elements QName is garaunteed to be the last QName evaluated via the QName functions (i.e. Attributes are done first then the Elems QName)

    Definition Classes
    MemoryOptimisationStrategy
  11. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def noNamespaceQName(local: String, token: Token): NoNamespaceQName

    The creation costs can also be reduced

    The creation costs can also be reduced

    Definition Classes
    QNameOptimisationTMemoryOptimisationStrategy
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. def prefixedQName(local: String, uri: String, prefix: String, token: Token): PrefixedQName

  22. val qNameCache: ConcurrentHashMap[FullEqualQNameKey, QName]

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. def unprefixedQName(local: String, uri: String, token: Token): UnprefixedQName

  26. def value[T <: QName](key: FullEqualQNameKey)(newT: (FullEqualQNameKey) ⇒ T): T

  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MemoryOptimisationStrategy[Token]

Inherited from AnyRef

Inherited from Any

Ungrouped