cascading.pattern.model.tree.predicate.compound
Class SurrogatePredicate

java.lang.Object
  extended by cascading.pattern.model.tree.predicate.Predicate
      extended by cascading.pattern.model.tree.predicate.compound.CompoundPredicate
          extended by cascading.pattern.model.tree.predicate.compound.SurrogatePredicate
All Implemented Interfaces:
Serializable

public class SurrogatePredicate
extends CompoundPredicate

Class SurrogatePredicate returns the result of the first child predicate that as non null or not missing value. This is similar to a if then else statement.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class cascading.pattern.model.tree.predicate.compound.CompoundPredicate
children
 
Constructor Summary
SurrogatePredicate(List<Predicate> predicates)
           
SurrogatePredicate(Predicate... predicates)
           
 
Method Summary
 Boolean evaluate(Iterator<Boolean> results)
           
 
Methods inherited from class cascading.pattern.model.tree.predicate.compound.CompoundPredicate
getChildren, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SurrogatePredicate

public SurrogatePredicate(List<Predicate> predicates)

SurrogatePredicate

public SurrogatePredicate(Predicate... predicates)
Method Detail

evaluate

public Boolean evaluate(Iterator<Boolean> results)
Specified by:
evaluate in class CompoundPredicate


Copyright © 2007-2015 Concurrent, Inc. All Rights Reserved.