|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.di.mg4j.index.NullTermProcessor
public class NullTermProcessor
A term processor that accepts all terms and does not do any processing.
| Method Summary | |
|---|---|
NullTermProcessor |
copy()
|
static TermProcessor |
getInstance()
|
boolean |
processPrefix(MutableString prefix)
Processes the given prefix, leaving the result in the same mutable string. |
boolean |
processTerm(MutableString term)
Processes the given term, leaving the result in the same mutable string. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static final TermProcessor getInstance()
public boolean processTerm(MutableString term)
TermProcessor
processTerm in interface TermProcessorterm - a mutable string containing the term to be processed,
or null.
null and should be indexed, false otherwise.public boolean processPrefix(MutableString prefix)
TermProcessorThis method is not used during the indexing phase, but rather at query time. If the user wants to specify a prefix query, it is sometimes necessary to transform the prefix (e.g., DowncaseTermProcessor.processPrefix(MutableString) downcasing it).
It is of course unlikely that this method returns false, as it is usually not possible to foresee which are the prefixes of indexable words. In case no natural transformation applies, this method should leave its argument unchanged.
processPrefix in interface TermProcessorprefix - a mutable string containing a prefix to be processed,
or null.
null and there might be an indexed
word starting with prefix, false otherwise.public String toString()
toString in class Objectpublic NullTermProcessor copy()
copy in interface TermProcessorcopy in interface FlyweightPrototype<TermProcessor>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||