| Modifier and Type | Field and Description |
|---|---|
protected org.opengis.filter.Filter |
filter |
protected int |
pageSize |
protected Map<String,Object> |
properties |
protected boolean |
requestsTotalResultsCount |
protected org.opengis.filter.sort.SortBy |
sortBy |
protected int |
startIndex |
protected long |
timeoutMillis |
DEFAULT_MAXIMUM_RETURNED_RESULTS| Constructor and Description |
|---|
QueryImpl(org.opengis.filter.Filter filter)
Instantiates a new QueryImpl with a
Filter Throws IllegalArgumentException if a null
object is passed in. |
QueryImpl(org.opengis.filter.Filter rootFilter,
int startIndex,
int pageSize,
org.opengis.filter.sort.SortBy sortPolicy,
boolean requestsTotalResultsCount,
long timeoutMillis)
Instantiates a new QueryImpl with a
Filter, startIndex, pageSize, sortPolicy,
requestsTotalResultsCount, and timeoutMillis |
| Modifier and Type | Method and Description |
|---|---|
Object |
accept(org.opengis.filter.FilterVisitor visitor,
Object obj) |
boolean |
evaluate(Object obj) |
org.opengis.filter.Filter |
getFilter() |
int |
getPageSize()
The page size represents the maximum amount of results the query will return.
|
org.opengis.filter.sort.SortBy |
getSortBy()
The sortBy determines how the results will be sorted.
|
int |
getStartIndex()
Get the offset where the query results will begin.
|
long |
getTimeoutMillis()
The timeout is specified in milliseconds.
|
boolean |
requestsTotalResultsCount()
Determines whether the total number of results should be returned
|
void |
setFilter(org.opengis.filter.Filter rootFilter)
Throws IllegalArgumentException if a null object is passed in.
|
void |
setPageSize(int pageSize) |
void |
setProperties(Map<String,Object> properties) |
void |
setRequestsTotalResultsCount(boolean requestsTotalResultsCount) |
void |
setSortBy(org.opengis.filter.sort.SortBy sortBy) |
void |
setStartIndex(int startIndex) |
void |
setTimeoutMillis(long timeoutMillis) |
String |
toString() |
protected org.opengis.filter.Filter filter
protected int startIndex
protected int pageSize
protected boolean requestsTotalResultsCount
protected long timeoutMillis
protected org.opengis.filter.sort.SortBy sortBy
public QueryImpl(org.opengis.filter.Filter filter)
Filter Throws IllegalArgumentException if a null
object is passed in.filter - the filterpublic QueryImpl(org.opengis.filter.Filter rootFilter,
int startIndex,
int pageSize,
org.opengis.filter.sort.SortBy sortPolicy,
boolean requestsTotalResultsCount,
long timeoutMillis)
Filter, startIndex, pageSize, sortPolicy,
requestsTotalResultsCount, and timeoutMillisrootFilter - the filterstartIndex - the starting indexpageSize - the page sizesortPolicy - the sort policyrequestsTotalResultsCount - if the Total Results Count is requested or nottimeoutMillis - the timeout in millisecondspublic Object accept(org.opengis.filter.FilterVisitor visitor, Object obj)
accept in interface org.opengis.filter.Filterpublic boolean evaluate(Object obj)
evaluate in interface org.opengis.filter.Filterpublic org.opengis.filter.Filter getFilter()
public void setFilter(org.opengis.filter.Filter rootFilter)
rootFilter - public int getPageSize()
QuerySource, whichever is
smaller.getPageSize in interface Querypublic void setPageSize(int pageSize)
pageSize - public org.opengis.filter.sort.SortBy getSortBy()
Querypublic void setSortBy(org.opengis.filter.sort.SortBy sortBy)
sortBy - public int getStartIndex()
QueryStart index is required to be 1-based. For example if the query specifies a start index of 5 then the query results will start with the 5th result discovered by the query.
If a value less than 1 is returned, Source implementations will
throw UnsupportedQueryException.
getStartIndex in interface Querypublic void setStartIndex(int startIndex)
startIndex - public long getTimeoutMillis()
QuerygetTimeoutMillis in interface Querypublic void setTimeoutMillis(long timeoutMillis)
timeoutMillis - public boolean requestsTotalResultsCount()
QueryrequestsTotalResultsCount in interface Querypublic void setRequestsTotalResultsCount(boolean requestsTotalResultsCount)
requestsTotalResultsCount - This work is licensed under a Creative Commons Attribution 4.0 International License.