Package | Description |
---|---|
org.infinispan.tree |
This package contains the TreeCache.
|
Modifier and Type | Field and Description |
---|---|
static Fqn |
Fqn.ROOT
Immutable root Fqn.
|
Modifier and Type | Method and Description |
---|---|
static Fqn |
Fqn.fromElements(Object... elements)
Retrieves an Fqn that represents the array of elements passed in.
|
static Fqn |
Fqn.fromList(List<?> names)
Retrieves an Fqn that represents the list of elements passed in.
|
static Fqn |
Fqn.fromRelativeElements(Fqn base,
Object... relativeElements)
Retrieves an Fqn that represents the array of elements passed in, relative to the base Fqn.
|
static Fqn |
Fqn.fromRelativeFqn(Fqn base,
Fqn relative)
Retrieves an Fqn that represents the absolute Fqn of the relative Fqn passed in.
|
static Fqn |
Fqn.fromRelativeList(Fqn base,
List<?> relativeElements)
Retrieves an Fqn that represents the List
|
static Fqn |
Fqn.fromString(String stringRepresentation)
Returns a new Fqn from a string, where the elements are deliminated by one or more separator (
Fqn.SEPARATOR )
characters.Example use: |
Fqn |
Fqn.getAncestor(int generation)
Obtains an ancestor of the current Fqn.
|
Fqn |
Node.getFqn()
|
Fqn |
Fqn.getParent()
Returns the parent of this Fqn.
|
Fqn |
Fqn.getSubFqn(int startIndex,
int endIndex)
Obtains a sub-Fqn from the given Fqn.
|
Fqn |
Fqn.Externalizer.readObject(ObjectInput input) |
Fqn |
Fqn.replaceAncestor(Fqn oldAncestor,
Fqn newAncestor)
Creates a new Fqn whose ancestor has been replaced with the new ancestor passed in.
|
static Fqn |
Fqn.root() |
Modifier and Type | Method and Description |
---|---|
Set<Class<? extends Fqn>> |
Fqn.Externalizer.getTypeClasses() |
Modifier and Type | Method and Description |
---|---|
Node<K,V> |
Node.addChild(Fqn f)
Adds a child node with the given
Fqn under the current node. |
Node<K,V> |
Node.addChild(Fqn f,
Flag... flags) |
void |
TreeCache.clearData(Fqn fqn)
Removes the keys and properties from a named node.
|
void |
TreeCache.clearData(Fqn fqn,
Flag... flags) |
int |
Fqn.compareTo(Fqn fqn)
Compares this Fqn to another
|
boolean |
TreeCache.exists(Fqn fqn)
Tests if an Fqn exists.
|
boolean |
TreeCache.exists(Fqn fqn,
Flag... flags) |
static Fqn |
Fqn.fromRelativeElements(Fqn base,
Object... relativeElements)
Retrieves an Fqn that represents the array of elements passed in, relative to the base Fqn.
|
static Fqn |
Fqn.fromRelativeFqn(Fqn base,
Fqn relative)
Retrieves an Fqn that represents the absolute Fqn of the relative Fqn passed in.
|
static Fqn |
Fqn.fromRelativeList(Fqn base,
List<?> relativeElements)
Retrieves an Fqn that represents the List
|
V |
TreeCache.get(Fqn fqn,
K key)
Convenience method that allows for direct access to the data in a
Node . |
V |
TreeCache.get(Fqn fqn,
K key,
Flag... flags) |
Node<K,V> |
Node.getChild(Fqn f)
Returns the child node
|
Node<K,V> |
Node.getChild(Fqn f,
Flag... flags) |
Map<K,V> |
TreeCache.getData(Fqn fqn)
Retrieves a defensively copied data map of the underlying node.
|
Map<K,V> |
TreeCache.getData(Fqn fqn,
Flag... flags) |
Set<K> |
TreeCache.getKeys(Fqn fqn)
Returns a set of attribute keys for the Fqn.
|
Set<K> |
TreeCache.getKeys(Fqn fqn,
Flag... flags) |
Node<K,V> |
TreeCache.getNode(Fqn fqn)
A convenience method to retrieve a node directly from the cache.
|
Node<K,V> |
TreeCache.getNode(Fqn fqn,
Flag... flags) |
boolean |
Node.hasChild(Fqn f)
Returns true if the child node denoted by the relative
Fqn passed in exists. |
boolean |
Node.hasChild(Fqn f,
Flag... flags) |
boolean |
Fqn.isChildOf(Fqn parentFqn)
Returns true if this Fqn is child of parentFqn.
|
boolean |
Fqn.isChildOrEquals(Fqn parentFqn)
Returns true if this Fqn is equals or the child of parentFqn.
|
boolean |
Fqn.isDirectChildOf(Fqn parentFqn)
Returns true if this Fqn is a direct child of a given Fqn.
|
void |
TreeCache.move(Fqn nodeToMove,
Fqn newParent)
Moves a part of the cache to a different subtree.
|
void |
TreeCache.move(Fqn nodeToMove,
Fqn newParent,
Flag... flags) |
V |
TreeCache.put(Fqn fqn,
K key,
V value)
Associates the specified value with the specified key for a
Node in this cache. |
V |
TreeCache.put(Fqn fqn,
K key,
V value,
Flag... flags) |
void |
TreeCache.put(Fqn fqn,
Map<? extends K,? extends V> data)
Copies all of the mappings from the specified map to a
Node . |
void |
TreeCache.put(Fqn fqn,
Map<? extends K,? extends V> data,
Flag... flags) |
V |
TreeCache.remove(Fqn fqn,
K key)
Removes the mapping for this key from a Node.
|
V |
TreeCache.remove(Fqn fqn,
K key,
Flag... flags) |
boolean |
Node.removeChild(Fqn f)
Removes a child node specified by the given relative
Fqn . |
boolean |
Node.removeChild(Fqn f,
Flag... flags) |
boolean |
TreeCache.removeNode(Fqn fqn)
|
boolean |
TreeCache.removeNode(Fqn fqn,
Flag... flags) |
Fqn |
Fqn.replaceAncestor(Fqn oldAncestor,
Fqn newAncestor)
Creates a new Fqn whose ancestor has been replaced with the new ancestor passed in.
|
void |
Fqn.Externalizer.writeObject(ObjectOutput output,
Fqn fqn) |
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.