Codota Logo
DhtRepository.getRefDatabase
Code IndexAdd Codota to your IDE (free)

How to use
getRefDatabase
method
in
org.eclipse.jgit.storage.dht.DhtRepository

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • 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.dhtDhtRepositorygetRefDatabase

Popular methods of DhtRepository

  • <init>
    Initialize an in-memory representation of a DHT backed repository.
  • getObjectDatabase
  • getRepositoryKey
  • updateRef

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getSharedPreferences (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
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