Package mil.nga.giat.geowave.index

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


  public void testPOPNonDefault() {
    assertTrue(Arrays.equals(
        "default".getBytes(),
        simplePOPHandler.getVisibility(
            newFeature,
            new ByteArrayId(
                "pop".getBytes()),
            "pop")));

  }
View Full Code Here


  public void testGEORegexDefault() {
    assertTrue(Arrays.equals(
        "S".getBytes(),
        simpleGEOHandler.getVisibility(
            newFeature,
            new ByteArrayId(
                "geometry".getBytes()),
            "geometry")));

  }
View Full Code Here

        "{\"pid\":\"TS\", \".*\":\"U\"}");
    assertTrue(Arrays.equals(
        "U".getBytes(),
        simplePOPHandler.getVisibility(
            newFeature,
            new ByteArrayId(
                "pop".getBytes()),
            "pop")));

  }
View Full Code Here

      GeoWaveTransaction transaction )
      throws IOException {

    this.dataStore.deleteEntry(
        this.currentIndex,
        new ByteArrayId(
            StringUtils.stringToBinary(fid)),
        adapter.getAdapterId(),
        transaction.composeAuthorizations());
  }
View Full Code Here

    return null;
  }

  @Override
  public ByteArrayId getAdapterId() {
    return new ByteArrayId(
        StringUtils.stringToBinary(reprojectedType.getTypeName()));
  }
View Full Code Here

  }

  @Override
  public ByteArrayId getDataId(
      final SimpleFeature entry ) {
    return new ByteArrayId(
        StringUtils.stringToBinary(entry.getID()));
  }
View Full Code Here

      final List<SimpleFeature> retVal = new ArrayList<SimpleFeature>();
      final Set<String> fids = ((FidFilterImpl) filter).getIDs();
      for (final String fid : fids) {
        retVal.add((SimpleFeature) components.getDataStore().getEntry(
            components.getCurrentIndex(),
            new ByteArrayId(
                fid),
            components.getAdapter().getAdapterId(),
            transaction.composeAuthorizations()));
      }
      return new CloseableIterator.Wrapper(
View Full Code Here

      final TemporalConstraints timeBounds,
      final int level,
      final String statsName ) {
    return interweaveTransaction((CloseableIterator<SimpleFeature>) components.getStatsDataStore().query(
        Arrays.asList(new ByteArrayId[] {
          new ByteArrayId(
              StringUtils.stringToBinary("l" + level + "_stats" + statsName))
        }),
        composeQuery(
            jtsBounds,
            timeBounds)));
View Full Code Here

        lonLat.getY(),
        lonLat.getX()).getIndexConstraints(
        indexStrategy));
    // this should be of size one if its a simple spatial index
    if (!rowIdsForPixel.isEmpty()) {
      final ByteArrayId rowId = rowIdsForPixel.get(0);
      final Key rowIdKey = new Key(
          new Text(
              rowId.getBytes()));
      if ((rowIdKey != null) && ((minRowId == null) || (minRowId.compareTo(rowIdKey) > 0))) {
        minRowId = rowIdKey;
      }
    }
    return minRowId;
View Full Code Here

      featureAdapter = new FeatureDataAdapter(
          statsFeatureType,
          getVisibilityManagement());
    }
    else {
      final DataAdapter<?> adapter = adapterStore.getAdapter(new ByteArrayId(
          StringUtils.stringToBinary(typeName)));
      if ((adapter == null) || !(adapter instanceof FeatureDataAdapter)) {
        return null;
      }
      featureAdapter = (FeatureDataAdapter) adapter;
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.