本文整理了Java中org.locationtech.geowave.core.store.api.DataStore.getTypes()
方法的一些代码示例,展示了DataStore.getTypes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataStore.getTypes()
方法的具体详情如下:
包路径:org.locationtech.geowave.core.store.api.DataStore
类名称:DataStore
方法名:getTypes
[英]Get all the data type adapters that have been used within this data store
[中]
代码示例来源:origin: locationtech/geowave
private ArrayList<DataAdapterInfo> getStoreAdapterInfo(
final String storeName,
final String adapterId) {
final DataStorePluginOptions dsPlugin = getStorePlugin(storeName);
final DataStore dataStore = dsPlugin.createDataStore();
final ArrayList<DataAdapterInfo> adapterInfoList = new ArrayList<>();
LOGGER.debug("Adapter list for " + storeName + " with adapterId = " + adapterId + ": ");
for (final DataTypeAdapter<?> adapter : dataStore.getTypes()) {
final DataAdapterInfo info = getAdapterInfo(adapterId, adapter);
if (info != null) {
adapterInfoList.add(info);
LOGGER.debug("> '" + info.typeName + "' adapter passed filter");
}
}
LOGGER.debug("getStoreAdapterInfo(" + storeName + ") got " + adapterInfoList.size() + " ids");
if (dataStore instanceof Closeable) {
try {
((Closeable) dataStore).close();
} catch (final IOException e) {
LOGGER.error("Unable to close datastore");
}
}
return adapterInfoList;
}
代码示例来源:origin: locationtech/geowave
final DataTypeAdapter<?>[] destTypes = other.getTypes();
for (int i = 0; i < typesToCopy.size(); i++) {
boolean found = false;
代码示例来源:origin: locationtech/geowave
final DataTypeAdapter<?>[] destTypes = other.getTypes();
for (int i = 0; i < sourceTypes.length; i++) {
boolean found = false;
内容来源于网络,如有侵权,请联系作者删除!