Package mil.nga.giat.geowave.vector.adapter

Examples of mil.nga.giat.geowave.vector.adapter.FeatureDataAdapter$TimeDescriptors


  public WritableDataAdapter<SimpleFeature>[] getDataAdapters(
      final String globalVisibility ) {
    final FieldVisibilityHandler<SimpleFeature, Object> fieldVisiblityHandler = ((globalVisibility != null) && !globalVisibility.isEmpty()) ? new GlobalVisibilityHandler<SimpleFeature, Object>(
        globalVisibility) : null;
    return new WritableDataAdapter[] {
      new FeatureDataAdapter(
          tdrivepointType,
          fieldVisiblityHandler)
    };
  }
View Full Code Here


    public InternalIterator(
        final SimpleFeatureCollection featureCollection,
        final String visibility ) {
      featureIterator = featureCollection.features();
      if ((visibility == null) || visibility.isEmpty()) {
        dataAdapter = new FeatureDataAdapter(
            featureCollection.getSchema());
      }
      else {
        dataAdapter = new FeatureDataAdapter(
            featureCollection.getSchema(),
            new GlobalVisibilityHandler(
                visibility));
      }
    }
View Full Code Here

    final SimpleFeatureBuilder pointBuilder = new SimpleFeatureBuilder(
        point);

    // This is an adapter, that is needed to describe how to persist the
    // data type passed
    final FeatureDataAdapter adapter = createDataAdapter(point);

    // This describes how to index the data
    final Index index = createSpatialIndex();

    // features require a featureID - this should be unqiue as it's a
View Full Code Here

    final SimpleFeatureBuilder pointBuilder = new SimpleFeatureBuilder(
        point);

    // This is an adapter, that is needed to describe how to persist the
    // data type passed
    final FeatureDataAdapter adapter = createDataAdapter(point);

    // This describes how to index the data
    final Index index = createSpatialIndex();

    // features require a featureID - this should be unqiue as it's a
View Full Code Here

    final SimpleFeatureBuilder pointBuilder = new SimpleFeatureBuilder(
        point);

    // This is an adapter, that is needed to describe how to persist the
    // data type passed
    final FeatureDataAdapter adapter = createDataAdapter(point);

    // This describes how to index the data
    final Index index = createSpatialIndex();

    // features require a featureID - this should be unqiue as it's a
View Full Code Here

   * @return data adapter that handles serialization of the sft simple feature
   *         type
   */
  protected FeatureDataAdapter createDataAdapter(
      final SimpleFeatureType sft ) {
    return new FeatureDataAdapter(
        sft);
  }
View Full Code Here

  public WritableDataAdapter<SimpleFeature>[] getDataAdapters(
      final String globalVisibility ) {
    final FieldVisibilityHandler<SimpleFeature, Object> fieldVisiblityHandler = ((globalVisibility != null) && !globalVisibility.isEmpty()) ? new GlobalVisibilityHandler<SimpleFeature, Object>(
        globalVisibility) : null;
    return new WritableDataAdapter[] {
      new FeatureDataAdapter(
          geolifePointType,
          fieldVisiblityHandler),
      new FeatureDataAdapter(
          geolifeTrackType,
          fieldVisiblityHandler)

    };
  }
View Full Code Here

  public WritableDataAdapter<SimpleFeature>[] getDataAdapters(
      final String globalVisibility ) {
    final FieldVisibilityHandler<SimpleFeature, Object> fieldVisiblityHandler = ((globalVisibility != null) && !globalVisibility.isEmpty()) ? new GlobalVisibilityHandler<SimpleFeature, Object>(
        globalVisibility) : null;
    return new WritableDataAdapter[] {
      new FeatureDataAdapter(
          GPXConsumer.pointType,
          fieldVisiblityHandler),
      new FeatureDataAdapter(
          GPXConsumer.waypointType,
          fieldVisiblityHandler),
      new FeatureDataAdapter(
          GPXConsumer.trackType,
          fieldVisiblityHandler),
      new FeatureDataAdapter(
          GPXConsumer.routeType,
          fieldVisiblityHandler)
    };
  }
View Full Code Here

    index = IndexType.SPATIAL_VECTOR.createDefaultIndex();
    final IndexStore indexStore = new MemoryIndexStore(
        new Index[] {
          index
        });
    adapter = new FeatureDataAdapter(
        type);
    final AdapterStore adapterStore = new MemoryAdapterStore(
        new DataAdapter[] {
          new FeatureDataAdapter(
              type)
        });
    final AccumuloOptions options = new AccumuloOptions();
    options.setPersistDataStatistics(false);
    // TODO consider an in memory statistics store that will write the
View Full Code Here

        password,
        statsNamespace);
    final AccumuloAdapterStore statsAdapterStore = new AccumuloAdapterStore(
        statsOperations);
    for (int level = minLevel; level <= maxLevel; level++) {
      final FeatureDataAdapter featureAdapter = new FeatureDataAdapter(
          AccumuloKDEReducer.createFeatureType(AccumuloKDEReducer.getTypeName(
              level,
              statsName)));
      if (!statsAdapterStore.adapterExists(featureAdapter.getAdapterId())) {
        statsAdapterStore.addAdapter(featureAdapter);
      }
    }
    final AccumuloIndexStore statsIndexStore = new AccumuloIndexStore(
        statsOperations);
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.vector.adapter.FeatureDataAdapter$TimeDescriptors

Copyright © 2018 www.massapicom. 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.