org.locationtech.geowave.core.store.api.DataStore.getTypes()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(152)

本文整理了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

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;

相关文章