Package mil.nga.giat.geowave.index

Examples of mil.nga.giat.geowave.index.ByteArrayId


  @SuppressWarnings("unchecked")
  @Override
  public void entryDeleted(
      final IngestEntryInfo entryInfo,
      final T entry ) {
    final ByteArrayId visibilityByteArray = new ByteArrayId(
        visibilityHandler.getVisibility(
            entryInfo,
            entry));
    DataStatistics<T> statistics = statisticsMap.get(visibilityByteArray);
    if (statistics == null) {
      statistics = adapter.createDataStatistics(statisticsId);
      statistics.setVisibility(visibilityByteArray.getBytes());
      statisticsMap.put(
          visibilityByteArray,
          statistics);
    }
    if (statistics instanceof DeleteCallback) {
View Full Code Here


    if (expectedByteCount <= 0) {
      // special case for no precision
      return new RangeDecomposition(
          new ByteArrayRange[] {
            new ByteArrayRange(
                new ByteArrayId(
                    new byte[] {}),
                new ByteArrayId(
                    new byte[] {}))
          });
    }
    for (int i = 0; i < hilbertRanges.size(); i++) {
      final FilteredIndexRange<BigIntegerRange, BigIntegerRange> range = hilbertRanges.get(i);
      // sanity check that values fit within the expected range
      // it seems that uzaygezen can produce a value at 2^totalPrecision
      // rather than 2^totalPrecision - 1
      final BigInteger startValue = clamp(
          minHilbertValue,
          maxHilbertValue,
          range.getIndexRange().getStart());
      final BigInteger endValue = clamp(
          minHilbertValue,
          maxHilbertValue,
          range.getIndexRange().getEnd().subtract(BigInteger.ONE));
      // make sure its padded if necessary
      final byte[] start = HilbertSFC.fitExpectedByteCount(
          expectedByteCount,
          startValue.toByteArray());

      // make sure its padded if necessary
      final byte[] end = HilbertSFC.fitExpectedByteCount(
          expectedByteCount,
          endValue.toByteArray());
      sfcRanges[i] = new ByteArrayRange(
          new ByteArrayId(
              start),
          new ByteArrayId(
              end));
    }

    final RangeDecomposition rangeDecomposition = new RangeDecomposition(
        sfcRanges);
View Full Code Here

    buf.get(selfBinary);

    super.fromBinary(selfBinary);
    final byte[] idBinary = new byte[bytes.length - selfBinaryLength - 4];
    buf.get(idBinary);
    id = new ByteArrayId(
        idBinary);
  }
View Full Code Here

          // value)
          },
          binnedQuery.getBinId());
      for (final ByteArrayRange range : rangeDecomp.getRanges()) {
        queryRanges.add(new ByteArrayRange(
            new ByteArrayId(
                ByteArrayUtils.combineArrays(
                    tierAndBinId,
                    range.getStart().getBytes())),
            new ByteArrayId(
                ByteArrayUtils.combineArrays(
                    tierAndBinId,
                    range.getEnd().getBytes()))));
      }
    }
View Full Code Here

          new byte[] {
            (byte) tier
          },
          index.getBinId());
      final double[] minValues = index.getMinValuesPerDimension();
      retVal.add(new ByteArrayId(
          ByteArrayUtils.combineArrays(
              tierAndBinId,
              sfc.getId(minValues))));
      return retVal;
    }
View Full Code Here

    // tier, decompose it
    for (final ByteArrayRange range : rangeDecomp.getRanges()) {
      final byte[] currentRowId = Arrays.copyOf(
          range.getStart().getBytes(),
          range.getStart().getBytes().length);
      retVal.add(new ByteArrayId(
          ByteArrayUtils.combineArrays(
              tierAndBinId,
              currentRowId)));
      while (!Arrays.equals(
          currentRowId,
          range.getEnd().getBytes())) {
        // increment until we reach the end row ID
        boolean overflow = !ByteArrayUtils.increment(currentRowId);
        if (!overflow) {
          retVal.add(new ByteArrayId(
              ByteArrayUtils.combineArrays(
                  tierAndBinId,
                  currentRowId)));
        }
        else {
View Full Code Here

        metadata,
        originalGridCoverage,
        DEFAULT_TILE_SIZE,
        DEFAULT_BUILD_PYRAMID,
        new NoDataMergeStrategy(
            new ByteArrayId(
                coverageName),
            originalGridCoverage.getRenderedImage().getSampleModel().createCompatibleSampleModel(
                DEFAULT_TILE_SIZE,
                DEFAULT_TILE_SIZE)));
  }
View Full Code Here

        backgroundValuesPerBand,
        new HistogramConfig(
            sampleModel),
        buildPyramid,
        new NoDataMergeStrategy(
            new ByteArrayId(
                coverageName),
            sampleModel.createCompatibleSampleModel(
                tileSize,
                tileSize)));
  }
View Full Code Here

    }
  }

  @Override
  public ByteArrayId getAdapterId() {
    return new ByteArrayId(
        getCoverageName());
  }
View Full Code Here

  }

  @Override
  public ByteArrayId getDataId(
      final GridCoverage entry ) {
    return new ByteArrayId(
        new byte[] {});
  }
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.index.ByteArrayId

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.