本文整理了Java中org.geoserver.catalog.Catalog.count()
方法的一些代码示例,展示了Catalog.count()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Catalog.count()
方法的具体详情如下:
包路径:org.geoserver.catalog.Catalog
类名称:Catalog
方法名:count
[英]Returns the number of catalog objects of the requested type that match the given query predicate.
[中]返回与给定查询谓词匹配的请求类型的目录对象数。
代码示例来源:origin: geoserver/geoserver
@Override
public <T extends CatalogInfo> int count(Class<T> of, Filter filter) {
return delegate.count(of, filter);
}
代码示例来源:origin: geoserver/geoserver
@Override
public <T extends CatalogInfo> int count(Class<T> of, Filter filter) {
return delegate.count(of, filter);
}
代码示例来源:origin: geoserver/geoserver
@Override
public <T extends CatalogInfo> int count(Class<T> of, Filter filter) {
Filter securityFilter = securityFilter(of, filter);
final int count = delegate.count(of, securityFilter);
return count;
}
代码示例来源:origin: geoserver/geoserver
@Override
public <T extends CatalogInfo> int count(Class<T> of, Filter filter) {
Filter securityFilter = securityFilter(of, filter);
final int count = delegate.count(of, securityFilter);
return count;
}
代码示例来源:origin: geoserver/geoserver
private int countFeatureTypesOf(DataStoreInfo ds) {
Filter filter = Predicates.equal("store.id", ds.getId());
int dsTypeCount = catalog.count(FeatureTypeInfo.class, filter);
return dsTypeCount;
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testCascadeStore() {
Catalog catalog = getCatalog();
DataStoreInfo store =
(DataStoreInfo) catalog.getLayerByName(getLayerId(LAKES)).getResource().getStore();
new CascadeDeleteVisitor(catalog).visit(store);
// that store actually holds all layers, so check we got empty
assertEquals(0, catalog.count(LayerInfo.class, Filter.INCLUDE));
assertEquals(0, catalog.count(ResourceInfo.class, Filter.INCLUDE));
assertEquals(0, catalog.count(StoreInfo.class, Filter.INCLUDE));
List<LayerGroupInfo> groups = catalog.getLayerGroups();
assertEquals(0, catalog.count(LayerGroupInfo.class, Filter.INCLUDE));
}
代码示例来源:origin: geoserver/geoserver
@Test
public void testCascadeWorkspace() {
Catalog catalog = getCatalog();
WorkspaceInfo ws = catalog.getWorkspaceByName(CITE_PREFIX);
new CascadeDeleteVisitor(catalog).visit(ws);
// check the namespace is also gone
assertNull(catalog.getNamespaceByPrefix(CITE_PREFIX));
// that workspace actually holds all layers, so check we got empty
assertEquals(0, catalog.count(LayerInfo.class, Filter.INCLUDE));
assertEquals(0, catalog.count(ResourceInfo.class, Filter.INCLUDE));
assertEquals(0, catalog.count(StoreInfo.class, Filter.INCLUDE));
assertEquals(0, catalog.count(LayerGroupInfo.class, Filter.INCLUDE));
// the workspace specific style is also gone
assertEquals(0, catalog.getStylesByWorkspace(CITE_PREFIX).size());
assertNull(catalog.getStyleByName(WS_STYLE));
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
@Override
public int fullSize() {
Filter filter = Predicates.acceptAll();
int count = getCatalog().count(StyleInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
public long size() {
Filter filter = getFilter();
int count = getCatalog().count(LayerInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
public int fullSize() {
Filter filter = Predicates.acceptAll();
int count = getCatalog().count(LayerInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-wms
@Override
public long size() {
Filter filter = getFilter();
int count = getCatalog().count(StyleInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-demo
private int sizeInternal() {
Filter filter = getFilter();
int result = getCatalog().count(PublishedInfo.class, filter);
return result;
}
代码示例来源:origin: org.geoserver.web/gs-web-demo
private int fullSizeInternal() {
Filter filter = Predicates.acceptAll();
return getCatalog().count(PublishedInfo.class, filter);
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
public int fullSize() {
Filter filter = Predicates.acceptAll();
filter = getWorkspaceFilter(filter);
int count = getCatalog().count(StoreInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
public long size() {
Filter filter = getFilter();
filter = getWorkspaceFilter(filter);
int count = getCatalog().count(StoreInfo.class, filter);
return count;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
final Filter allWorkspaces = acceptAll();
final int layerCount = catalog.count(LayerInfo.class, allLayers);
final int storesCount = catalog.count(StoreInfo.class, allStores);
final int wsCount = catalog.count(WorkspaceInfo.class, allWorkspaces);
代码示例来源:origin: org.geoserver.importer/gs-importer-core
int initialLayerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
int layerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
assertEquals(initialLayerCount, layerCount);
代码示例来源:origin: org.geoserver.importer/gs-importer-core
int initialLayerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
int layerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
assertEquals(initialLayerCount, layerCount);
代码示例来源:origin: org.geoserver.importer/gs-importer-core
int initialLayerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
int layerCount = catalog.count(LayerInfo.class, Filter.INCLUDE);
assertEquals(initialLayerCount, layerCount);
内容来源于网络,如有侵权,请联系作者删除!