Package org.archive.wayback.core

Examples of org.archive.wayback.core.UrlSearchResult


      Document document) {
    UrlSearchResults results = new UrlSearchResults();
    NodeList xresults = getSearchResults(document);
    for(int i = 0; i < xresults.getLength(); i++) {
      Node xresult = xresults.item(i);
      UrlSearchResult result = searchElementToUrlSearchResult(xresult);
      results.addSearchResult(result, true);
    }
    return results;
  }
View Full Code Here


    }
    return results;
  }
  private UrlSearchResult searchElementToUrlSearchResult(Node e) {

    UrlSearchResult result = new UrlSearchResult();
    addNodeDataToSearchResult(e,result);
    return result;
  }
View Full Code Here

        String lastCapture = firstCapture;
        HashMap<String,Object> digests = new HashMap<String,Object>();
        digests.put(captureResult.getDigest(),null);
        int numCaptures = 1;

        cachedNext = new UrlSearchResult();
        cachedNext.setUrlKey(currentKey);
        cachedNext.setOriginalUrl(originalUrl);

        // now rip through the rest until we find either the last
        // in the iterator, or the first having a different urlKey:
View Full Code Here

   */
  public UrlSearchResult next() {
    if(cachedNext == null) {
      throw new NoSuchElementException("use hasNext!");
    }
    UrlSearchResult tmp = cachedNext;
    cachedNext = null;
    return tmp;
  }
View Full Code Here

      count = 0;
    }

  @Override
    public int writeLine(CDXLine line) {
    UrlSearchResult result = new UrlSearchResult();
   
    result.setUrlKey(line.getUrlKey());
    result.setOriginalUrl(line.getOriginalUrl());
    result.setFirstCapture(line.getTimestamp());
   
    result.setLastCapture(line.getField(GroupCountProcessor.endtimestamp));
    result.setNumCaptures(line.getField(GroupCountProcessor.groupcount));
    result.setNumVersions(line.getField(GroupCountProcessor.uniqcount));
   
    results.addSearchResult(result);
    ++count;
   
    return 1;
View Full Code Here

TOP

Related Classes of org.archive.wayback.core.UrlSearchResult

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.