| prefuse.data.search.SearchTupleSet prefuse.data.search.PrefixSearchTupleSet
PrefixSearchTupleSet | public class PrefixSearchTupleSet extends SearchTupleSet (Code) | |
SearchTupleSet implementation supporting word prefix searches over indexed
Tuple data fields. This class uses a
Trie Trie data structure
to find search results quickly; however, only prefix matches will be
identified as valid search matches. Multi-term search queries will result
in the union of the results for the individual query terms. That is, Tuples
that match any one of the terms will be included in the results.
For more advanced search capabilities, see
KeywordSearchTupleSet or
RegexSearchTupleSet .
version: 1.0 author: jeffrey heer See Also: prefuse.data.query.SearchQueryBinding |
Constructor Summary | |
public | PrefixSearchTupleSet() Creates a new KeywordSearchFocusSet that is not case sensitive. | public | PrefixSearchTupleSet(boolean caseSensitive) Creates a new KeywordSearchFocusSet with the indicated case sensitivity. |
Method Summary | |
public void | clear() Removes all search hits and clears out the index. | public String | getDelimiterString() Returns the delimiter string used to divide data values and
queries into separate words. | public String | getQuery() | public void | index(Tuple t, String field) Indexes the given field of the provided Tuple instance. | public boolean | isUnindexSupported() Returns true, as unidexing is supported by this class. | public void | search(String query) Searches the indexed Tuple fields for matching string prefixes,
adding the Tuple instances for each search match to this TupleSet.
The query string is first broken up into separate terms, as determined
by the current delimiter string. | public void | setDelimiterString(String delim) Sets the delimiter string used to divide data values and
queries into separate words. | public void | unindex(Tuple t, String field) |
PrefixSearchTupleSet | public PrefixSearchTupleSet()(Code) | | Creates a new KeywordSearchFocusSet that is not case sensitive.
|
PrefixSearchTupleSet | public PrefixSearchTupleSet(boolean caseSensitive)(Code) | | Creates a new KeywordSearchFocusSet with the indicated case sensitivity.
Parameters: caseSensitive - true if the search routines should be casesensitive, false otherwise. |
getDelimiterString | public String getDelimiterString()(Code) | | Returns the delimiter string used to divide data values and
queries into separate words. By default, the value consists
of just whitespace characters.
the delimiter string used. This is passed as an argument to ajava.util.StringTokenizer instance that will tokenize the text. See Also: java.util.StringTokenizer |
search | public void search(String query)(Code) | | Searches the indexed Tuple fields for matching string prefixes,
adding the Tuple instances for each search match to this TupleSet.
The query string is first broken up into separate terms, as determined
by the current delimiter string. A search for each term is conducted,
and all matching Tuples are included in the results.
Parameters: query - the query string to search for. See Also: PrefixSearchTupleSet.setDelimiterString(String) |
setDelimiterString | public void setDelimiterString(String delim)(Code) | | Sets the delimiter string used to divide data values and
queries into separate words. By default, the delimiter consists
of just whitespace characters.
Parameters: delim - the delimiter string to use. This is passed as an argumentto a java.util.StringTokenizer instance that will tokenize thetext. See Also: java.util.StringTokenizer |
|
|