Neo4j Community

org.neo4j.graphmatching.filter
Class CompareExpression

java.lang.Object
  extended by org.neo4j.graphmatching.filter.AbstractFilterExpression
      extended by org.neo4j.graphmatching.filter.CompareExpression
All Implemented Interfaces:
FilterExpression

Deprecated.

@Deprecated
public class CompareExpression
extends AbstractFilterExpression

An implementation which can compare commons expressions, f.ex: less than (<), greater than or equal to (>=) a.s.o.


Constructor Summary
CompareExpression(String label, String property, String operator, Object value)
          Deprecated. Constructs a new comparison expression.
 
Method Summary
 boolean matches(FilterValueGetter valueGetter)
          Deprecated. Matches a value from a valueGetter and returns whether or not there was a match.
 
Methods inherited from class org.neo4j.graphmatching.filter.AbstractFilterExpression
getLabel, getProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompareExpression

public CompareExpression(String label,
                         String property,
                         String operator,
                         Object value)
Deprecated. 
Constructs a new comparison expression.

Parameters:
label - the PatternNode label.
property - property key.
operator - operator, f.ex. >= or < or =
value - value to compare against.
Method Detail

matches

public boolean matches(FilterValueGetter valueGetter)
Deprecated. 
Description copied from interface: FilterExpression
Matches a value from a valueGetter and returns whether or not there was a match.

Parameters:
valueGetter - the getter which fetches the value to match.
Returns:
whether or not the value from valueGetter matches the criterias found in this expression.

Neo4j Community

Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.