com.indexdata.torus2.query
Class MatchingUtil

java.lang.Object
  extended by com.indexdata.torus2.query.MatchingUtil

public class MatchingUtil
extends Object

Author:
jakub

Constructor Summary
MatchingUtil()
           
 
Method Summary
static String deAnchorTerm(String term)
           
static boolean equalsWildcard(String pattern, int patternAt, String text, int textAt)
           
static String normalizeTokens(String src, String sep, Tokenizer.TokenizerType type)
           
static org.z3950.zing.cql.CQLNode parseQuery(String query)
          Parses query string into tree representation
static String surround(String text, String sur)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchingUtil

public MatchingUtil()
Method Detail

parseQuery

public static org.z3950.zing.cql.CQLNode parseQuery(String query)
                                             throws QueryException
Parses query string into tree representation

Parameters:
query -
Returns:
parsed query or null if query string was null or empty
Throws:
QueryException - when query is malformed or cannot be read

equalsWildcard

public static boolean equalsWildcard(String pattern,
                                     int patternAt,
                                     String text,
                                     int textAt)

normalizeTokens

public static String normalizeTokens(String src,
                                     String sep,
                                     Tokenizer.TokenizerType type)

deAnchorTerm

public static String deAnchorTerm(String term)

surround

public static String surround(String text,
                              String sur)


Copyright © 2008-2013 Index Data. All Rights Reserved.