Examples of GeoWaveTransactionState


Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveTransactionState

    if ((filter == Filter.EXCLUDE) || filter.equals(Filter.EXCLUDE)) {
      return new EmptyFeatureReader<SimpleFeatureType, SimpleFeature>(
          featureType);
    }

    final GeoWaveTransactionState state = getMyTransactionState(
        transaction,
        source);

    FeatureReader<SimpleFeatureType, SimpleFeature> reader = source.getReaderInternal(
        query,
        state.getGeoWaveTransaction(typeName));

    if (!filter.equals(Filter.INCLUDE)) {
      reader = new FilteringFeatureReader<SimpleFeatureType, SimpleFeature>(
          reader,
          filter);
View Full Code Here

Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveTransactionState

    if (transaction == null) {
      throw new NullPointerException(
          "getFeatureWriter requires Transaction: " + "did you mean to use Transaction.AUTO_COMMIT?");
    }

    final GeoWaveTransactionState state = getMyTransactionState(
        transaction,
        source);

    if (filter == Filter.EXCLUDE) {
      return source.getWriterInternal(state.getGeoWaveTransaction(typeName));
    }

    FeatureWriter<SimpleFeatureType, SimpleFeature> writer;

    writer = source.getWriterInternal(
        state.getGeoWaveTransaction(typeName),
        filter);

    if (filter != Filter.INCLUDE) {
      writer = new FilteringFeatureWriter(
          writer,
View Full Code Here

Examples of mil.nga.giat.geowave.vector.plugin.transaction.GeoWaveTransactionState

  protected GeoWaveTransactionState getMyTransactionState(
      final Transaction transaction,
      final GeoWaveFeatureSource source )
      throws IOException {
    synchronized (transaction) {
      GeoWaveTransactionState state = null;
      if (transaction == Transaction.AUTO_COMMIT) {
        state = new GeoWaveAutoCommitTransactionState(
            source);
      }
      else {
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.