|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.data.tuple.AbstractTupleSet prefuse.data.tuple.DefaultTupleSet prefuse.data.search.SearchTupleSet prefuse.data.search.RegexSearchTupleSet
public class RegexSearchTupleSet
SearchTupleSet implementation that treats the query as a regular expression
to match against all indexed Tuple data fields.
The regular expression engine provided by the
standard Java libraries
(java.util.regex.Pattern
) is used; please
refer to the documentation for that class for more about the regular
expression syntax.
SearchQueryBinding
Field Summary |
---|
Fields inherited from class prefuse.data.tuple.DefaultTupleSet |
---|
m_tuples |
Fields inherited from interface prefuse.data.event.EventConstants |
---|
ALL_COLUMNS, DELETE, INSERT, UPDATE |
Fields inherited from interface prefuse.data.tuple.TupleSet |
---|
EMPTY_ARRAY |
Constructor Summary | |
---|---|
RegexSearchTupleSet()
Create a new, case-insensitive regular expression search tuple set. |
|
RegexSearchTupleSet(boolean caseSensitive)
Create a new regular expression search tuple set. |
Method Summary | |
---|---|
void |
clear()
Removes all search hits and clears out the index. |
java.lang.String |
getQuery()
Returns the current search query, if any. |
void |
index(Tuple t,
java.lang.String field)
Index an individual Tuple field, so that it can be searched for. |
boolean |
isUnindexSupported()
Returns true, as unidexing is supported by this class. |
void |
search(java.lang.String query)
Searches the indexed fields of this TupleSet for matching strings, adding the Tuple instances for each search match to the TupleSet. |
void |
unindex(Tuple t,
java.lang.String field)
Un-index an individual Tuple field, so that it can no longer be searched for. |
Methods inherited from class prefuse.data.search.SearchTupleSet |
---|
addTuple, index, removeTuple |
Methods inherited from class prefuse.data.tuple.DefaultTupleSet |
---|
addInternal, clearInternal, containsTuple, getTupleCount, removeInternal, setTuple, toArray, tuples |
Methods inherited from class prefuse.data.tuple.AbstractTupleSet |
---|
addColumn, addColumn, addColumn, addColumn, addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, isAddColumnSupported, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples, tuples |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegexSearchTupleSet()
public RegexSearchTupleSet(boolean caseSensitive)
caseSensitive
- true to make the indexing case sensitive, false
otherwise.Method Detail |
---|
public java.lang.String getQuery()
SearchTupleSet
getQuery
in class SearchTupleSet
SearchTupleSet.getQuery()
public void search(java.lang.String query)
SearchTupleSet
search
in class SearchTupleSet
query
- the query string to search for. Indexed fields
with matching text will be added to the TupleSet.SearchTupleSet.search(java.lang.String)
public void index(Tuple t, java.lang.String field)
SearchTupleSet
index
in class SearchTupleSet
t
- the Tuplefield
- the data field to indexSearchTupleSet.index(prefuse.data.Tuple, java.lang.String)
public void unindex(Tuple t, java.lang.String field)
SearchTupleSet
unindex
in class SearchTupleSet
t
- the Tuplefield
- the data field to unindexSearchTupleSet.unindex(prefuse.data.Tuple, java.lang.String)
public boolean isUnindexSupported()
isUnindexSupported
in class SearchTupleSet
SearchTupleSet.isUnindexSupported()
public void clear()
clear
in interface TupleSet
clear
in class DefaultTupleSet
TupleSet.clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |