Examples of IdAndValueSha1Comparator


Examples of com.moesol.geoserver.sync.core.IdAndValueSha1Comparator

   */
  private void deleteInPosition(Sha1SyncPositionHash position) {
    Sha1Value prefix = new Sha1Value(position.position());
    HashAndFeatureValue find = new HashAndFeatureValue(prefix, null, null);
    // TODO, hmm, better search?
    int i = Collections.binarySearch(m_featureSha1s, find, new IdAndValueSha1Comparator(versionFeatures));
    if (i < 0) {
      i = -i - 1;
    }
    for ( ; i < m_featureSha1s.size(); i++) {
      HashAndFeatureValue value = m_featureSha1s.get(i);
View Full Code Here

Examples of com.moesol.geoserver.sync.core.IdAndValueSha1Comparator

    m_featureSha1s.clear();
    for (FeatureAccessor a : m_features.values()) {
      Feature f = a.getFeature();
      m_featureSha1s.add(makeHashAndFeatureValue(f));
    }
    Collections.sort(m_featureSha1s, new IdAndValueSha1Comparator(versionFeatures));
  }
View Full Code Here

Examples of com.moesol.geoserver.sync.core.IdAndValueSha1Comparator

    try {
      m_sha1 = MessageDigest.getInstance("SHA-1");
    } catch (NoSuchAlgorithmException e) {
      throw new IllegalStateException("Unable to load SHA-1 message digest", e);
    }
    Collections.sort(featureSha1s, new IdAndValueSha1Comparator(versionFeatures));
    m_sortedFeatureSha1s = featureSha1s;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.