Codota Logo
CaptureSearchResult.flagDuplicateDigest
Code IndexAdd Codota to your IDE (free)

How to use
flagDuplicateDigest
method
in
org.archive.wayback.core.CaptureSearchResult

Best Java code snippets using org.archive.wayback.core.CaptureSearchResult.flagDuplicateDigest (Showing top 17 results out of 315)

  • Common ways to obtain CaptureSearchResult
private void myMethod () {
CaptureSearchResult c =
  • Codota Iconnew CaptureSearchResult()
  • Smart code suggestions by Codota
}
origin: iipc/openwayback

@SuppressWarnings("deprecation")
@Override
public void flagDuplicateDigest(Date storedDate) {
  super.ensureMap();
  super.flagDuplicateDigest(storedDate);
}
origin: org.netpreserve.openwayback/openwayback-core

@SuppressWarnings("deprecation")
@Override
public void flagDuplicateDigest(String storedTS) {
  super.ensureMap();
  super.flagDuplicateDigest(storedTS);
}
origin: iipc/openwayback

@SuppressWarnings("deprecation")
@Override
public void flagDuplicateDigest(String storedTS) {
  super.ensureMap();
  super.flagDuplicateDigest(storedTS);
}
origin: iipc/openwayback

/** @deprecated */
public void flagDuplicateDigest(String storedTS) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, storedTS);
}
origin: org.netpreserve.openwayback/openwayback-core

/** @deprecated */
public void flagDuplicateDigest(String storedTS) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, storedTS);
}
origin: org.netpreserve.openwayback/openwayback-core

@SuppressWarnings("deprecation")
@Override
public void flagDuplicateDigest(Date storedDate) {
  super.ensureMap();
  super.flagDuplicateDigest(storedDate);
}
origin: iipc/openwayback

private int annotate(CaptureSearchResult o) {
  o.flagDuplicateDigest();
  
  String thisDigest = o.getDigest();
  CaptureSearchResult last = memory.get(thisDigest);
  if (last == null) {
    if (LOGGER.isLoggable(Level.FINER)) {
      LOGGER.finer("did not find matching digest in previous fetch of url, hopefully it's a new-style revisit - "
          + o.getCaptureTimestamp() + " " + o.getOriginalUrl());
    }
    return FILTER_INCLUDE;
  }
  
  o.flagDuplicateDigest(last);
  
  return FILTER_INCLUDE;
}
origin: org.netpreserve.openwayback/openwayback-core

private int annotate(CaptureSearchResult o) {
  o.flagDuplicateDigest();
  
  String thisDigest = o.getDigest();
  CaptureSearchResult last = memory.get(thisDigest);
  if (last == null) {
    if (LOGGER.isLoggable(Level.FINER)) {
      LOGGER.finer("did not find matching digest in previous fetch of url, hopefully it's a new-style revisit - "
          + o.getCaptureTimestamp() + " " + o.getOriginalUrl());
    }
    return FILTER_INCLUDE;
  }
  
  o.flagDuplicateDigest(last);
  
  return FILTER_INCLUDE;
}
origin: iipc/openwayback

/** @deprecated */
public void flagDuplicateDigest(Date storedDate) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, dateToTS(storedDate));
}
origin: org.netpreserve.openwayback/openwayback-core

/** @deprecated */
public void flagDuplicateDigest(Date storedDate) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, dateToTS(storedDate));
}
origin: org.netpreserve.openwayback/openwayback-core

/**
 * Mark this capture as a revisit of previous capture {@code payload}, identified by content digest.
 * <p>Record location information is copied from {@code payload} so that the content can be
 * loaded from the record later.</p>
 * <p>{@link ResourceIndex} implementations should call this method before returning
 * {@code CaptureSearchResult}s to {@code AccessPoint}.</p>
 * @param payload capture being revisited
 * @see #getDuplicateDigestStoredTimestamp()
 * @see #getDuplicateDigestStoredDate()
 * @see #getDuplicatePayloadFile()
 * @see #getDuplicatePayloadOffset()
 * @see #getDuplicatePayloadCompressedLength()
 */
public void flagDuplicateDigest(CaptureSearchResult payload) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, payload.getCaptureTimestamp());
  put(CAPTURE_DUPLICATE_PAYLOAD_FILE, payload.getFile());
  put(CAPTURE_DUPLICATE_PAYLOAD_OFFSET,
    String.valueOf(payload.getOffset()));
  if (payload.getCompressedLength() > 0) {
    put(CAPTURE_DUPLICATE_PAYLOAD_COMPRESSED_LENGTH,
      String.valueOf(payload.getCompressedLength()));
  }
}
origin: iipc/openwayback

/**
 * Mark this capture as a revisit of previous capture {@code payload}, identified by content digest.
 * <p>Record location information is copied from {@code payload} so that the content can be
 * loaded from the record later.</p>
 * <p>{@link ResourceIndex} implementations should call this method before returning
 * {@code CaptureSearchResult}s to {@code AccessPoint}.</p>
 * @param payload capture being revisited
 * @see #getDuplicateDigestStoredTimestamp()
 * @see #getDuplicateDigestStoredDate()
 * @see #getDuplicatePayloadFile()
 * @see #getDuplicatePayloadOffset()
 * @see #getDuplicatePayloadCompressedLength()
 */
public void flagDuplicateDigest(CaptureSearchResult payload) {
  flagDuplicateDigest();
  put(CAPTURE_DUPLICATE_STORED_TS, payload.getCaptureTimestamp());
  put(CAPTURE_DUPLICATE_PAYLOAD_FILE, payload.getFile());
  put(CAPTURE_DUPLICATE_PAYLOAD_OFFSET,
    String.valueOf(payload.getOffset()));
  if (payload.getCompressedLength() > 0) {
    put(CAPTURE_DUPLICATE_PAYLOAD_COMPRESSED_LENGTH,
      String.valueOf(payload.getCompressedLength()));
  }
}
origin: org.netpreserve.openwayback/openwayback-core

if (revisits != null) {
  for (CaptureSearchResult revisit : revisits) {
    revisit.flagDuplicateDigest(result);
origin: iipc/openwayback

if (revisits != null) {
  for (CaptureSearchResult revisit : revisits) {
    revisit.flagDuplicateDigest(result);
origin: iipc/openwayback

  createTestRevisitResource("20140619016511", revisited, true));
CaptureSearchResult revisit = results.getResults().get(1);
revisit.flagDuplicateDigest(); // revisit, but original is not found.
origin: iipc/openwayback

captures.get(2).flagDuplicateDigest(capture1);
EasyMock.expect(
  resourceStore.retrieveResource(eqCaptureSearchResult(captures
    .get(2)))).andStubReturn(revisit1);
captures.get(3).flagDuplicateDigest(capture1);
EasyMock.expect(
  resourceStore.retrieveResource(eqCaptureSearchResult(captures
origin: iipc/openwayback

for (CaptureSearchResult r : results.getResults()) {
  if (r.getCaptureTimestamp().equals(refTimestamp)) {
    result.flagDuplicateDigest(r);
    refTimestamp = null;
    break;
  result.flagDuplicateDigest();
org.archive.wayback.coreCaptureSearchResultflagDuplicateDigest

Popular methods of CaptureSearchResult

  • <init>
  • setUrlKey
  • getOriginalUrl
  • setFile
  • setHttpCode
  • setMimeType
  • setOffset
  • setOriginalUrl
  • getCaptureDate
  • getCaptureTimestamp
  • getDigest
  • getDuplicatePayload
  • getDigest,
  • getDuplicatePayload,
  • getDuplicatePayloadCompressedLength,
  • getDuplicatePayloadFile,
  • getDuplicatePayloadOffset,
  • getFile,
  • getOffset,
  • getRobotFlags,
  • getUrlKey

Popular in Java

  • Finding current android device location
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Reference (javax.naming)
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now