Package mil.nga.giat.geowave.store.query

Examples of mil.nga.giat.geowave.store.query.DistributableQuery


      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,
View Full Code Here


  private TreeSet<IntermediateSplitInfo> getIntermediateSplits(
      final JobContext context,
      final Integer maxSplits )
      throws IOException {
    final Index[] indices = getIndices(context);
    final DistributableQuery query = getQuery(context);
    final String tableNamespace = getTableNamespace(context);

    final TreeSet<IntermediateSplitInfo> splits = new TreeSet<IntermediateSplitInfo>();
    for (final Index index : indices) {
      if ((query != null) && !query.isSupported(index)) {
        continue;
      }
      final String tableName = AccumuloUtils.getQualifiedTableName(
          tableNamespace,
          index.getId().getString());
      final NumericIndexStrategy indexStrategy = index.getIndexStrategy();
      final TreeSet<Range> ranges;
      if (query != null) {
        final MultiDimensionalNumericData indexConstraints = query.getIndexConstraints(indexStrategy);
        if ((maxSplits != null) && (maxSplits > 0)) {
          ranges = AccumuloUtils.byteArrayRangesToAccumuloRanges(AccumuloUtils.constraintsToByteArrayRanges(
              indexConstraints,
              indexStrategy,
              maxSplits));
View Full Code Here

        new AccumuloDataStatisticsStore(
            GeoWaveITSuite.accumuloOperations),
            GeoWaveITSuite.accumuloOperations);
    // this file is the filtered dataset (using the previous file as a
    // filter) so use it to ensure the query worked
    final DistributableQuery query = resourceToQuery(savedFilterResource);
    final CloseableIterator<?> actualResults;
    if (index == null) {
      actualResults = geowaveStore.query(query);
    }
    else {
View Full Code Here

        new AccumuloAdapterStore(
            GeoWaveITSuite.accumuloOperations),
        new AccumuloDataStatisticsStore(
            GeoWaveITSuite.accumuloOperations),
            GeoWaveITSuite.accumuloOperations);
    final DistributableQuery query = resourceToQuery(savedFilterResource);
    final Index index = indexType.createDefaultIndex();
    final CloseableIterator<?> actualResults;

    actualResults = geowaveStore.query(
        index,
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.store.query.DistributableQuery

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.