Codota Logo
DhtReader.find
Code IndexAdd Codota to your IDE (free)

How to use
find
method
in
org.eclipse.jgit.storage.dht.DhtReader

Best Java code snippets using org.eclipse.jgit.storage.dht.DhtReader.find (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
public long getObjectSize(AnyObjectId objectId, int typeHint)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  for (ObjectInfo info : find(objectId))
    return info.getSize();
  throw missing(objectId, typeHint);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
public long getObjectSize(AnyObjectId objectId, int typeHint)
    throws MissingObjectException, IncorrectObjectTypeException,
    IOException {
  for (ObjectInfo info : find(objectId))
    return info.getSize();
  throw missing(objectId, typeHint);
}
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: org.eclipse.jgit/org.eclipse.jgit.storage.dht

for (ObjectInfo link : find(objId)) {
  PackChunk chunk;
origin: com.madgag/org.eclipse.jgit.storage.dht

for (ObjectInfo link : find(objId)) {
  PackChunk chunk;
org.eclipse.jgit.storage.dhtDhtReaderfind

Popular methods of DhtReader

  • <init>
  • endPrefetch
  • findChunk
  • getChunk
  • getChunkGently
  • getDatabase
  • getDeltaBaseCache
  • getInserterOptions
  • getOptions
  • getRecentChunks
  • getRecentInfoCache
  • getRepositoryKey
  • getRecentInfoCache,
  • getRepositoryKey,
  • getStatistics,
  • inflater,
  • load,
  • missing,
  • prefetch,
  • recentChunk

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
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