| prefuse.data.tuple.DefaultTupleSet prefuse.data.search.SearchTupleSet
All known Subclasses: prefuse.data.search.RegexSearchTupleSet, prefuse.data.search.KeywordSearchTupleSet, prefuse.data.search.PrefixSearchTupleSet,
Method Summary | |
public Tuple | addTuple(Tuple t) This method is not supported by this implementation. | abstract public String | getQuery() Returns the current search query, if any. | public void | index(Iterator tuples, String field) Indexes the data values for the given field name for
each Tuple in the provided Iterator. | abstract public void | index(Tuple t, String field) Index an individual Tuple field, so that it can be searched for. | abstract public boolean | isUnindexSupported() Indicates if this TupleSearchSet supports the unindex operation. | public boolean | removeTuple(Tuple t) This method is not supported by this implementation. | abstract public void | search(String query) Searches the indexed fields of this TupleSet for matching
strings, adding the Tuple instances for each search match
to the TupleSet. | abstract public void | unindex(Tuple t, String field) Un-index an individual Tuple field, so that it can no longer be
searched for. |
getQuery | abstract public String getQuery()(Code) | | Returns the current search query, if any.
the currently active search query |
index | public void index(Iterator tuples, String field)(Code) | | Indexes the data values for the given field name for
each Tuple in the provided Iterator. These values are used
to construct an internal data structure allowing fast searches
over these attributes. To index multiple fields, simply call
this method multiple times with the desired field names.
Parameters: tuples - an Iterator over Tuple instances to index Parameters: field - the name of the attribute to index throws: ClassCastException - is a non-Tuple instance isencountered in the iteration. |
index | abstract public void index(Tuple t, String field)(Code) | | Index an individual Tuple field, so that it can be searched for.
Parameters: t - the Tuple Parameters: field - the data field to index |
isUnindexSupported | abstract public boolean isUnindexSupported()(Code) | | Indicates if this TupleSearchSet supports the unindex operation.
true if unindex is supported, false otherwise. See Also: SearchTupleSet.unindex(Tuple,String) |
search | abstract public void search(String query)(Code) | | Searches the indexed fields of this TupleSet for matching
strings, adding the Tuple instances for each search match
to the TupleSet. The details of how the query is matched to
indexed fields is left to subclasses.
Parameters: query - the query string to search for. Indexed fieldswith matching text will be added to the TupleSet. |
|
|