Examples of AdapterStore


Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

        new Index[] {
          index
        });
    adapter = new FeatureDataAdapter(
        type);
    final AdapterStore adapterStore = new MemoryAdapterStore(
        new DataAdapter[] {
          new FeatureDataAdapter(
              type)
        });
    final AccumuloOptions options = new AccumuloOptions();
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

        zookeeper,
        instance,
        user,
        password,
        namespace);
    final AdapterStore adapterStore = new AccumuloAdapterStore(
        ops);
    final DataAdapter<?> adapter = adapterStore.getAdapter(new ByteArrayId(
        StringUtils.stringToBinary(featureType)));
    conf.set(
        GaussianCellMapper.DATA_ADAPTER_KEY,
        ByteArrayUtils.byteArrayToString(PersistenceUtils.toBinary(adapter)));
    conf.setInt(
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

      final String... authorizations ) {
    store(adapter);
    final List<ByteArrayId> adapterIds = Arrays.asList(new ByteArrayId[] {
      adapter.getAdapterId()
    });
    final AdapterStore adapterStore = new MemoryAdapterStore(
        new DataAdapter[] {
          adapter
        });

    if (query == null) {
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

        new Index[] {
          index
        });
    adapter = new FeatureDataAdapter(
        type);
    final AdapterStore adapterStore = new MemoryAdapterStore(
        new DataAdapter[] {
          new FeatureDataAdapter(
              type)
        });
    final AccumuloOptions options = new AccumuloOptions();
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

      throws IOException,
      InterruptedException {
    try {
      // TODO expose GeoWave's AccumuloOptions
      final AccumuloOperations accumuloOperations = getAccumuloOperations(context);
      final AdapterStore accumuloAdapterStore = new AccumuloAdapterStore(
          accumuloOperations);
      final DataAdapter<?>[] adapters = JobContextAdapterStore.getDataAdapters(context);
      for (final DataAdapter<?> a : adapters) {
        if (!accumuloAdapterStore.adapterExists(a.getAdapterId())) {
          accumuloAdapterStore.addAdapter(a);
        }
      }
      final IndexStore accumuloIndexStore = new AccumuloIndexStore(
          accumuloOperations);
      final Index[] indices = JobContextIndexStore.getIndices(context);
      for (final Index i : indices) {
        if (!accumuloIndexStore.indexExists(i.getId())) {
          accumuloIndexStore.addIndex(i);
        }
      }
      final AdapterStore jobContextAdapterStore = getDataAdapterStore(
          context,
          accumuloOperations);
      final IndexStore jobContextIndexStore = getIndexStore(
          context,
          accumuloOperations);
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

      final String typeName ) {
    // TODO add some basic "global" types such as all spatial, or all
    // spatial temporal
    if (typeName.startsWith("heatmap_")) {
      if (statsOperations.tableExists(AbstractAccumuloPersistence.METADATA_TABLE)) {
        final AdapterStore adapterStore = new AccumuloAdapterStore(
            statsOperations);
        final DataAdapter<?> adapter = adapterStore.getAdapter(new ByteArrayId(
            StringUtils.stringToBinary("l0_stats" + typeName.substring(8))));
        if (adapter instanceof FeatureDataAdapter) {
          return (FeatureDataAdapter) adapter;
        }
      }
View Full Code Here

Examples of mil.nga.giat.geowave.store.adapter.AdapterStore

    return null;
  }

  private String[] getDefaultTypeNames() {
    if (statsOperations.tableExists(AbstractAccumuloPersistence.METADATA_TABLE)) {
      final AdapterStore adapterStore = new AccumuloAdapterStore(
          statsOperations);
      try (final CloseableIterator<DataAdapter<?>> adapters = adapterStore.getAdapters()) {
        final Set<String> typeNames = new HashSet<String>();
        while (adapters.hasNext()) {
          final DataAdapter<?> adapter = adapters.next();
          typeNames.add(StringUtils.stringFromBinary(adapter.getAdapterId().getBytes()));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.