|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectGranuleCatalogSource
public class GranuleCatalogSource
A GranuleSource
implementation wrapping a GranuleCatalog
.
Field Summary | |
---|---|
protected GranuleCatalog |
catalog
The underlying GranuleCatalog |
protected Hints |
hints
|
protected String |
typeName
|
Constructor Summary | |
---|---|
GranuleCatalogSource(GranuleCatalog catalog,
String typeName,
Hints hints)
|
Method Summary | |
---|---|
void |
dispose()
This will free/release any resource (cached granules, ...). |
ReferencedEnvelope |
getBounds(Query q)
Get the spatial bounds of the granules that would be returned by the given Query . |
int |
getCount(Query q)
Gets the number of the granules that would be returned by the given Query , taking into account any settings for max features and start
index set on the Query . |
SimpleFeatureCollection |
getGranules(Query q)
Retrieves granules, in the form of a SimpleFeatureCollection , based on a Query . |
SimpleFeatureType |
getSchema()
Retrieves the schema (feature type) that will apply to granules retrieved from this GranuleSource . |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GranuleCatalog catalog
GranuleCatalog
protected String typeName
protected Hints hints
Constructor Detail |
---|
public GranuleCatalogSource(GranuleCatalog catalog, String typeName, Hints hints)
Method Detail |
---|
public SimpleFeatureCollection getGranules(Query q) throws IOException
GranuleSource
SimpleFeatureCollection
, based on a Query
.
getGranules
in interface GranuleSource
q
- the Query
to select granules
IOException
public int getCount(Query q) throws IOException
GranuleSource
Query
, taking into account any settings for max features and start
index set on the Query
.
getCount
in interface GranuleSource
q
- the Query
to select granules
IOException
public ReferencedEnvelope getBounds(Query q) throws IOException
GranuleSource
Query
.
getBounds
in interface GranuleSource
q
- the Query
to select granules
IOException
public SimpleFeatureType getSchema() throws IOException
GranuleSource
GranuleSource
.
getSchema
in interface GranuleSource
IOException
public void dispose() throws IOException
GranuleSource
dispose
in interface GranuleSource
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |