org.apache.activemq.apollo.util.path

PathMap

class PathMap[Value] extends AnyRef

A Map-like data structure allowing values to be indexed by String and retrieved by path - supporting both * and > style of wildcard as well as composite paths.
This class assumes that the index changes rarely but that fast lookup into the index is required. So this class maintains a pre-calculated index for path steps. So looking up the values for "TEST.*" or "*.TEST" will be pretty fast.
Looking up of a value could return a single value or a List of matching values if a wildcard or composite path is used.

Version

$Revision: 1.3 $

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PathMap
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathMap()

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 chooseValue(path: Path): Value

    Returns the value which matches the given path or null if there is no matching value.

    Returns the value which matches the given path or null if there is no matching value. If there are multiple values, the results are sorted and the last item (the biggest) is returned.

    path

    the path to find the value for

    returns

    the largest matching value or null if no value matches

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. def findWildcardMatches(path: Path): Set[Value]

    Attributes
    protected
  13. def get(key: Path): Set[Value]

    Looks up the value(s) matching the given String key.

    Looks up the value(s) matching the given String key. For simple paths this is typically a List of one single value, for wild cards or composite paths this will typically be a List of matching values.

    key

    the path to lookup

    returns

    a List of matching values or an empty list if there are no matching values.

  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def getRootNode: PathMapNode[Value]

  16. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  21. def put(key: Path, value: Value): Unit

  22. def remove(path: Path, value: Value): Boolean

    Removes the value from the associated path

  23. def removeAll(key: Path): Set[Value]

    key
    returns

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped