Top Description Inners Constructors Methods
net.sf.ehcache.statistics.extended

pack-priv Class EhcacheQueryBuilder

extends Object
Class Inheritance
Imports
java.util.HashSet, .Set, net.sf.ehcache.Cache, org.terracotta.context.TreeNode, org.terracotta.context.query.Query

A factory for Ehcache related context query builders.
Author
Chris Dennis

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
EhcacheQueryBuilder.EhcacheQuery

Convenience builder for Ehcache related context queries.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static EhcacheQueryBuilder.EhcacheQuery

Returns:

cache query
cache
()

Creates a query selecting caches.

pack-priv static EhcacheQueryBuilder.EhcacheQuery

Returns:

children query
children
()

Creates a query selecting all children.

pack-priv static EhcacheQueryBuilder.EhcacheQuery

Returns:

descendants query
descendants
()

Creates a query selecting all descendants.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EhcacheQueryBuilderback to summary
pack-priv EhcacheQueryBuilder()

Method Detail

cacheback to summary
pack-priv static EhcacheQueryBuilder.EhcacheQuery cache()

Creates a query selecting caches.

Returns:EhcacheQueryBuilder.EhcacheQuery

cache query

childrenback to summary
pack-priv static EhcacheQueryBuilder.EhcacheQuery children()

Creates a query selecting all children.

Returns:EhcacheQueryBuilder.EhcacheQuery

children query

descendantsback to summary
pack-priv static EhcacheQueryBuilder.EhcacheQuery descendants()

Creates a query selecting all descendants.

Returns:EhcacheQueryBuilder.EhcacheQuery

descendants query

net.sf.ehcache.statistics.extended back to summary

pack-priv final Class EhcacheQueryBuilder.EhcacheQuery

extends Object
implements Query
Class Inheritance
  • java.lang.Object
  • net.sf.ehcache.statistics.extended.EhcacheQueryBuilder.EhcacheQuery
All Implemented Interfaces
org.terracotta.context.query.Query

Convenience builder for Ehcache related context queries.

Field Summary

Modifier and TypeField and Description
private final Query

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv EhcacheQueryBuilder.EhcacheQuery

Returns:

merged node set
add
(final EhcacheQueryBuilder.EhcacheQuery chain)

Add the given nodes to the current node set

pack-priv EhcacheQueryBuilder.EhcacheQuery

Returns:

children
children
()

Select the children of the current node set

pack-priv EhcacheQueryBuilder.EhcacheQuery

Returns:

children of the specified type
children
(Class<?>
class to be selected
klazz
)

Select the children of the current node set that are subtypes of the specified class

pack-priv EhcacheQueryBuilder.EhcacheQuery

Returns:

descendants
descendants
()

Select the descendants of the current node set

pack-priv EhcacheQueryBuilder.EhcacheQuery

Returns:

current set minus the given type
exclude
(Class<?>
class to be excluded
klazz
)

Remove instances of the specified type from the node set

public Set<TreeNode>
execute(Set<TreeNode>
query input node set
input
)

Implements org.terracotta.context.query.Query.execute.

Transforms the input node set in to an output node set.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

queryback to summary
private final Query query

Constructor Detail

EhcacheQueryback to summary
private EhcacheQuery(Query query)

Method Detail

addback to summary
pack-priv EhcacheQueryBuilder.EhcacheQuery add(final EhcacheQueryBuilder.EhcacheQuery chain)

Add the given nodes to the current node set

Returns:EhcacheQueryBuilder.EhcacheQuery

merged node set

childrenback to summary
pack-priv EhcacheQueryBuilder.EhcacheQuery children()

Select the children of the current node set

Returns:EhcacheQueryBuilder.EhcacheQuery

children

childrenback to summary
pack-priv EhcacheQueryBuilder.EhcacheQuery children(Class<?> klazz)

Select the children of the current node set that are subtypes of the specified class

Parameters
klazz:Class<?>

class to be selected

Returns:EhcacheQueryBuilder.EhcacheQuery

children of the specified type

descendantsback to summary
pack-priv EhcacheQueryBuilder.EhcacheQuery descendants()

Select the descendants of the current node set

Returns:EhcacheQueryBuilder.EhcacheQuery

descendants

excludeback to summary
pack-priv EhcacheQueryBuilder.EhcacheQuery exclude(Class<?> klazz)

Remove instances of the specified type from the node set

Parameters
klazz:Class<?>

class to be excluded

Returns:EhcacheQueryBuilder.EhcacheQuery

current set minus the given type

executeback to summary
public Set<TreeNode> execute(Set<TreeNode> input)

Implements org.terracotta.context.query.Query.execute.

Doc from org.terracotta.context.query.Query.execute.

Transforms the input node set in to an output node set.

Parameters
input:Set<TreeNode>

query input node set

Returns:Set<TreeNode>

the output node set

Annotations
@Override