Top Description Methods
org.terracotta.context.query

public Interface Query

Known Direct Implementers
org.terracotta.context.query.ChainedQuery, org.terracotta.context.query.Children, org.terracotta.context.query.Descendants, org.terracotta.context.query.EmptyQuery, org.terracotta.context.query.EnsureUnique, org.terracotta.context.query.Filter, org.terracotta.context.query.NullQuery, org.terracotta.context.query.Parent
Imports
org.terracotta.context.TreeNode, java.util.Set

A Query instance transforms an input node set into an output node set.

Useful implementations will normally perform a sequence of graph traversal and node filtering operations to generate the query result.

Method Summary

Modifier and TypeMethod and Description
public Set<TreeNode>

Returns:

the output node set
execute
(Set<TreeNode>
query input node set
input
)

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

Method Detail

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

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