Package cascading.pattern.model.tree.predicate.compound

Examples of cascading.pattern.model.tree.predicate.compound.SurrogatePredicate


        case AND:
          return new AndPredicate( predicates );
        case XOR:
          return new XorPredicate( predicates );
        case SURROGATE:
          return new SurrogatePredicate( predicates );
        }
      }

    throw new UnsupportedOperationException( "predicate type is unsupported: " + predicate );
    }
View Full Code Here


    }

  @Test
  public void testSurrogate()
    {
    Predicate surrogatePredicate = new SurrogatePredicate(
      new EqualsToPredicate( "var2", 0.0d ),
      new EqualsToPredicate( "var2", 0.0d ),
      new TruePredicate() );

    assertTrue( new PredicateEvaluator( expectedFields, surrogatePredicate ).evaluate( tupleEntry ) );
View Full Code Here

TOP

Related Classes of cascading.pattern.model.tree.predicate.compound.SurrogatePredicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.