Codota Logo
DhtRefDatabase.findChunk
Code IndexAdd Codota to your IDE (free)

How to use
findChunk
method
in
org.eclipse.jgit.storage.dht.DhtRefDatabase

Best Java code snippets using org.eclipse.jgit.storage.dht.DhtRefDatabase.findChunk (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public boolean has(AnyObjectId objId, int typeHint) throws IOException {
  if (objId instanceof RefDataUtil.IdWithChunk)
    return true;
  if (recentChunks.has(repo, objId))
    return true;
  if (repository.getRefDatabase().findChunk(objId) != null)
    return true;
  return !find(objId).isEmpty();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public boolean has(AnyObjectId objId, int typeHint) throws IOException {
  if (objId instanceof RefDataUtil.IdWithChunk)
    return true;
  if (recentChunks.has(repo, objId))
    return true;
  if (repository.getRefDatabase().findChunk(objId) != null)
    return true;
  return !find(objId).isEmpty();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

ChunkKey findChunk(AnyObjectId objId) throws DhtException {
  if (objId instanceof RefDataUtil.IdWithChunk)
    return ((RefDataUtil.IdWithChunk) objId).getChunkKey();
  ChunkKey key = repository.getRefDatabase().findChunk(objId);
  if (key != null)
    return key;
  ChunkAndOffset r = recentChunks.find(repo, objId);
  if (r != null)
    return r.chunk.getChunkKey();
  for (ObjectInfo link : find(objId))
    return link.getChunkKey();
  return null;
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

ChunkKey findChunk(AnyObjectId objId) throws DhtException {
  if (objId instanceof RefDataUtil.IdWithChunk)
    return ((RefDataUtil.IdWithChunk) objId).getChunkKey();
  ChunkKey key = repository.getRefDatabase().findChunk(objId);
  if (key != null)
    return key;
  ChunkAndOffset r = recentChunks.find(repo, objId);
  if (r != null)
    return r.chunk.getChunkKey();
  for (ObjectInfo link : find(objId))
    return link.getChunkKey();
  return null;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

  key = ((RefDataUtil.IdWithChunk) objId).getChunkKey();
else
  key = repository.getRefDatabase().findChunk(objId);
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

  key = ((RefDataUtil.IdWithChunk) objId).getChunkKey();
else
  key = repository.getRefDatabase().findChunk(objId);
org.eclipse.jgit.storage.dhtDhtRefDatabasefindChunk

Popular methods of DhtRefDatabase

  • <init>
  • cachePeeledState
  • clearCache
  • doPeel
  • fromData
  • getOneRef
  • getRepository
  • newUpdate
  • read
  • readRefs
  • recreate
  • removed
  • recreate,
  • removed,
  • resolve,
  • scan,
  • stored

Popular in Java

  • Updating database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • InputStreamReader (java.io)
    An InputStreamReader is a bridge from byte streams to character streams: It reads bytes and decodes
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • Option (scala)
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