Package org.infinispan.objectfilter.impl.predicateindex

Examples of org.infinispan.objectfilter.impl.predicateindex.RegexCondition


         }
         return new Predicate<Object>(i);
      } else if (condition instanceof IsNullExpr) {
         return new Predicate<Object>(IsNullCondition.INSTANCE);
      } else if (condition instanceof RegexExpr) {
         return new Predicate<String>(new RegexCondition(((RegexExpr) condition).getPattern()));
      }

      throw new IllegalStateException("Unexpected condition type: " + condition);
   }
View Full Code Here


               throw new IllegalStateException("Unexpected comparison type: " + expr.getComparisonType());
         }
      } else if (condition instanceof IsNullExpr) {
         addPredicateNode(parent, nodes, treeCounters, isNegated, path, new Predicate<Object>(isRepeated, IsNullCondition.INSTANCE));
      } else if (condition instanceof LikeExpr) {
         addPredicateNode(parent, nodes, treeCounters, isNegated, path, new Predicate<String>(isRepeated, new RegexCondition(((LikeExpr) condition).getPattern())));
      } else {
         throw new IllegalStateException("Unexpected condition type: " + condition);
      }
   }
View Full Code Here

         }
         return new Predicate<Object>(i);
      } else if (condition instanceof IsNullExpr) {
         return new Predicate<Object>(IsNullCondition.INSTANCE);
      } else if (condition instanceof RegexExpr) {
         return new Predicate<String>(new RegexCondition(((RegexExpr) condition).getPattern()));
      }

      throw new IllegalStateException("Unexpected condition type: " + condition);
   }
View Full Code Here

TOP

Related Classes of org.infinispan.objectfilter.impl.predicateindex.RegexCondition

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.