public interface Query
The system works like this. Leaves of the query tree receives the complete graph and the subgraphs they return are passed to the parent query. Thus the root query is the last query to get the subgraphs and returns the final result. This querying system make possible to create query chains and complex scenario with various operators (AND, OR, ...).
Queries are built by the FilterController
from filter instances.
FilterController
Modifier and Type | Method and Description |
---|---|
FilterBuilder |
getBuilder()
Returns the filter builder that creates the filter this query is
wrapping.
|
Query[] |
getChildren()
Returns queries that are children of this query.
|
int |
getChildrenSlotsCount()
Returns the limit number of children this query can have.
|
Query[] |
getDescendantsAndSelf()
Utility method that returns all descendant queries plus this query.
|
Filter |
getFilter()
Returns the filter this query is wrapping.
|
String |
getName()
Returns query's full name.
|
Query |
getParent()
Returns the parent query or
null if this query is root. |
int |
getPropertiesCount()
Returns the number of properties this query has.
|
String |
getPropertyName(int index)
Returns the name of the property at the specified
index . |
Object |
getPropertyValue(int index)
Returns the value of the property at the specified
index . |
Query[] |
getQueries(Class<? extends Filter> filterClass)
Utility method that returns all queries in this query hierarchy that are
filterClass instance. |
String getName()
Query[] getChildren()
int getChildrenSlotsCount()
Query getParent()
null
if this query is root.null
int getPropertiesCount()
String getPropertyName(int index)
index
.index
- the index of the propertyArrayIndexOutOfBoundsException
- if index
is out of
boundsObject getPropertyValue(int index)
index
.index
- the index of the propertyArrayIndexOutOfBoundsException
- if index
is out of
boundsQuery[] getQueries(Class<? extends Filter> filterClass)
filterClass
instance.filterClass
- the filter class that is to be queriedfilterClass
instanceQuery[] getDescendantsAndSelf()
Filter getFilter()
FilterBuilder getBuilder()
Copyright © 2007–2015 Gephi Consortium. All rights reserved.