Package mil.nga.giat.geowave.index

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


      Expect... expectations ) {
    Map<ByteArrayId, Integer> result = new HashMap<ByteArrayId, Integer>();

    while (it.hasNext()) {
      Entry<Key, Value> entry = it.next();
      ByteArrayId rowID = new ByteArrayId(
          entry.getKey().getRow().getBytes());
      result.put(
          rowID,
          new Integer(
              1 + (result.containsKey(rowID) ? result.get(
                  rowID).intValue() : 0)));
    }
    int expectedCount = 0;
    for (Expect e : expectations) {
      ByteArrayId rowID = new ByteArrayId(
          e.id);
      expectedCount += (e.count > 0 ? 1 : 0);
      assertEquals(
          new Text(
              e.id).toString(),
View Full Code Here


    InputStream is = this.getClass().getClassLoader().getResourceAsStream(
        "sample_gpx.xml");
    GPXConsumer consumer = new GPXConsumer(
        is,
        new ByteArrayId(
            "123".getBytes()),
        "123",
        new HashMap<String, Map<String, String>>(),
        true,
        "");
View Full Code Here

      InputStream is = new FileInputStream(
          dir);
      try {
        GPXConsumer consumer = new GPXConsumer(
            is,
            new ByteArrayId(
                "123".getBytes()),
            "",
            new HashMap<String, Map<String, String>>(),
            false,
            "");
View Full Code Here

      globalVisibility = context.getConfiguration().get(
          AbstractMapReduceIngest.GLOBAL_VISIBILITY_KEY);
      final String primaryIndexIdStr = context.getConfiguration().get(
          AbstractMapReduceIngest.PRIMARY_INDEX_ID_KEY);
      if (primaryIndexIdStr != null) {
        primaryIndexId = new ByteArrayId(
            primaryIndexIdStr);
      }
    }
    catch (final Exception e) {
      throw new IllegalArgumentException(
View Full Code Here

      globalVisibility = context.getConfiguration().get(
          AbstractMapReduceIngest.GLOBAL_VISIBILITY_KEY);
      final String primaryIndexIdStr = context.getConfiguration().get(
          AbstractMapReduceIngest.PRIMARY_INDEX_ID_KEY);
      if (primaryIndexIdStr != null) {
        primaryIndexId = new ByteArrayId(
            primaryIndexIdStr);
      }
    }
    catch (final Exception e) {
      throw new IllegalArgumentException(
View Full Code Here

    }

    @Override
    public ByteArrayId getDataId(
        final Integer entry ) {
      return new ByteArrayId(
          "DataID" + entry.toString());
    }
View Full Code Here

      DimensionField<TestIndexFieldType>
  {
    final ByteArrayId fieldId;

    public TestDimensionField() {
      fieldId = new ByteArrayId(
          new String(
              "TestDimensionField1"));
    }
View Full Code Here

      nativeFieldsInIndex.addAll(Arrays.asList(fieldHandler.getNativeFieldIds()));
    }
    final PersistentDataset<Object> extendedData = new PersistentDataset<Object>();
    // now for the other data
    for (final NativeFieldHandler<T, Object> fieldHandler : nativeFieldHandlers) {
      final ByteArrayId fieldId = fieldHandler.getFieldId();
      if (nativeFieldsInIndex.contains(fieldId)) {
        continue;
      }
      extendedData.addValue(new PersistentValue<Object>(
          fieldId,
View Full Code Here

  public DataType getDataType() {
    return dataType;
  }

  public ByteArrayId getId() {
    return new ByteArrayId(
        StringUtils.stringToBinary(indexStrategy.getId() + "_" + indexModel.getId()));
  }
View Full Code Here

  @Override
  public void entryIngested(
      final IngestEntryInfo entryInfo,
      final T entry ) {
    final ByteArrayId visibility = new ByteArrayId(
        visibilityHandler.getVisibility(
            entryInfo,
            entry));
    DataStatistics<T> statistics = statisticsMap.get(visibility);
    if (statistics == null) {
      statistics = adapter.createDataStatistics(statisticsId);
      statistics.setVisibility(visibility.getBytes());
      statisticsMap.put(
          visibility,
          statistics);
    }
    statistics.entryIngested(
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.