Package cascading.pattern.model.tree.predicate

Examples of cascading.pattern.model.tree.predicate.IsMissingPredicate


        case GREATER_THAN:
          return new GreaterThanPredicate( fieldName, (Comparable) Coercions.coerce( value, expectedFieldType ) );
        case GREATER_OR_EQUAL:
          return new GreaterOrEqualThanPredicate( fieldName, (Comparable) Coercions.coerce( value, expectedFieldType ) );
        case IS_MISSING:
          return new IsMissingPredicate( fieldName );
        case IS_NOT_MISSING:
          return new IsNotMissingPredicate( fieldName );
        }
      }
View Full Code Here


  @Test
  public void testComplex()
    {
    Predicate complexPredicate = new AndPredicate(
      new IsNotMissingPredicate( "var0" ),
      new OrPredicate( new EqualsToPredicate( "var1", "value" ), new IsMissingPredicate( "var2" ) ) );

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

TOP

Related Classes of cascading.pattern.model.tree.predicate.IsMissingPredicate

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.