Package org.archive.wayback.partition

Examples of org.archive.wayback.partition.NotableResultExtractor


    pw.flush();
  }

  public static String generateMementoLinkHeaders(
      CaptureSearchResults results, WaybackRequest wbr, boolean includeTimegateLink, boolean includeOriginalLink) {
    NotableResultExtractor nre = getNotableResults(results);
    CaptureSearchResult first = nre.getFirst();
    CaptureSearchResult prev = nre.getPrev();
    CaptureSearchResult closest = nre.getClosest();
    CaptureSearchResult next = nre.getNext();
    CaptureSearchResult last = nre.getLast();
    ArrayList<String> rels = new ArrayList<String>();

    AccessPoint ap = wbr.getAccessPoint();

    String requestUrl = wbr.getRequestUrl();
View Full Code Here


    // ResourceIndex.query() but for now, we'll just do an extra traversal
    // of the whole set of results:

    Iterator<CaptureSearchResult> itr = r.iterator();
    Date want = r.getClosest().getCaptureDate();
    NotableResultExtractor nre = new NotableResultExtractor(want);

    ObjectFilterIterator<CaptureSearchResult> ofi = new ObjectFilterIterator<CaptureSearchResult>(
        itr, nre);
    while (ofi.hasNext()) {
      ofi.next();
View Full Code Here

TOP

Related Classes of org.archive.wayback.partition.NotableResultExtractor

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.