Package com.google.refine.browsing.filters

Examples of com.google.refine.browsing.filters.ExpressionStringComparisonRowFilter


        }
       
        Evaluable eval = new VariableExpr("value");
       
        if ("regex".equals(_mode)) {
            return new ExpressionStringComparisonRowFilter(eval, _columnName, _cellIndex) {
                @Override
                protected boolean checkValue(String s) {
                    return _pattern.matcher(s).find();
                };
            };
        } else {
            return new ExpressionStringComparisonRowFilter(eval, _columnName, _cellIndex) {
                @Override
                protected boolean checkValue(String s) {
                    return (_caseSensitive ? s : s.toLowerCase()).contains(_query);
                };
            };
View Full Code Here

TOP

Related Classes of com.google.refine.browsing.filters.ExpressionStringComparisonRowFilter

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.