org.nsdl.mptstore.query.component
Interface NodeFilter<T extends Node>

Type Parameters:
T - The type of node that is being constrained by this filter. Typically, this is one of SubjectNode, PredicateNode, ObjectNode, or just Node if the exact node type is unimportant or unknown.
All Known Implementing Classes:
BasicNodeFilter, MappableNodeFilter

public interface NodeFilter<T extends Node>

Represents a constraint on the value of a particular node pattern.

Relates a node pattern to a particular constraint value via some operator. The actual meaning of the constraint is determined by whatever query engine/language is using the node filter. This class merely represents a generic container used for constraining node values in queries.

Author:
birkland

Method Summary
 NodePattern<T> getConstraint()
          Get the constraint on this filter's NodePattern's value.
 NodePattern<T> getNode()
          Get the node pattern whose value this NodeFilter is constraining.
 java.lang.String getOperator()
          Get the operator that specifies the relationship between the NodePattern and a value constraint (e.g.
 

Method Detail

getNode

NodePattern<T> getNode()
Get the node pattern whose value this NodeFilter is constraining.

Returns:
the pattern.

getOperator

java.lang.String getOperator()
Get the operator that specifies the relationship between the NodePattern and a value constraint (e.g. '=', '<', '>', etc). Its semantics exact are undefined at this level.

Returns:
the operator.

getConstraint

NodePattern<T> getConstraint()
Get the constraint on this filter's NodePattern's value.

Returns:
the constraint.