Package mil.nga.giat.geowave.accumulo.mapreduce

Examples of mil.nga.giat.geowave.accumulo.mapreduce.JobContextAdapterStore


    split = (GeoWaveInputSplit) inSplit;

    try {
      final AccumuloOperations operations = GeoWaveInputFormat.getAccumuloOperations(attempt);

      final JobContextAdapterStore adapterStore = GeoWaveInputFormat.getDataAdapterStore(
          attempt,
          operations);
      final DistributableQuery query = GeoWaveInputFormat.getQuery(attempt);
      final String[] additionalAuthorizations = GeoWaveInputFormat.getAuthorizations(attempt);

      numKeysRead = 0;
      final Map<RangeIndexPair, CloseableIterator<?>> iteratorsPerRange = new LinkedHashMap<RangeIndexPair, CloseableIterator<?>>();

      final Set<Index> indices = split.getIndices();
      for (final Index i : indices) {
        final List<Range> ranges = split.getRanges(i);
        List<QueryFilter> queryFilters = null;
        if (query != null) {
          queryFilters = query.createFilters(i.getIndexModel());
        }
        for (final Range r : ranges) {
          iteratorsPerRange.put(
              new RangeIndexPair(
                  r,
                  i),
              new InputFormatAccumuloRangeQuery(
                  adapterStore.getAdapterIds(),
                  i,
                  r,
                  queryFilters,
                  additionalAuthorizations).query(
                  operations,
View Full Code Here


  }

  protected static JobContextAdapterStore getDataAdapterStore(
      final JobContext context,
      final AccumuloOperations accumuloOperations ) {
    return new JobContextAdapterStore(
        context,
        accumuloOperations);
  }
View Full Code Here

  }

  protected static AdapterStore getDataAdapterStore(
      final JobContext context,
      final AccumuloOperations accumuloOperations ) {
    return new JobContextAdapterStore(
        context,
        accumuloOperations);
  }
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.accumulo.mapreduce.JobContextAdapterStore

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.