|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.core.memory.FTField
public class FTField
Class FTField represents a field in the tree structure of fields. The
implementation that is provided in this class would be used for the root
field only . Every field would then rewrite words()
method.
WARNING: This class is not synchronized.
Constructor Summary | |
---|---|
FTField()
|
Method Summary | |
---|---|
void |
addField(java.lang.String name,
FTField child)
|
boolean |
addFilter(Filter filter)
Append a next filter to the chain of filters used over the token stream of words() . |
Sequence<Token> |
filteredWords()
Return an enumeration of the terms in the field filtered by filters. |
java.util.HashMap<java.lang.String,org.egothor.core.memory.MemoryProximities> |
invertize()
Construct a new Hashtable and adds inverted lists to it. |
Sequence<Token> |
words()
Return an enumeration of the terms in the field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FTField()
Method Detail |
---|
public boolean addFilter(Filter filter)
words()
. After this.append(filter1);
this.append(filter2); : this.append(filterN);
the filters will be applied in this order: filter1, filter2, ... filterN.
If any filter ends with a non-Filter object, nothing is added.
filter
- the filter
public void addField(java.lang.String name, FTField child)
name
- name of the field in this parent objectchild
- the fieldpublic Sequence<Token> words()
public Sequence<Token> filteredWords()
public java.util.HashMap<java.lang.String,org.egothor.core.memory.MemoryProximities> invertize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |