Codota Logo
DhtMissingChunkException.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.eclipse.jgit.storage.dht.DhtMissingChunkException
constructor

Best Java code snippets using org.eclipse.jgit.storage.dht.DhtMissingChunkException.<init> (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

PackChunk getChunk(ChunkKey key) throws DhtException {
  PackChunk chunk = recentChunks.get(key);
  if (chunk != null)
    return chunk;
  chunk = load(key);
  if (chunk != null)
    return chunk;
  throw new DhtMissingChunkException(key);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

PackChunk getChunk(ChunkKey key) throws DhtException {
  PackChunk chunk = recentChunks.get(key);
  if (chunk != null)
    return chunk;
  chunk = load(key);
  if (chunk != null)
    return chunk;
  throw new DhtMissingChunkException(key);
}
origin: com.madgag/org.eclipse.jgit.storage.dht

throw new DhtMissingChunkException(key);
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

throw new DhtMissingChunkException(key);
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

public ObjectLoader open() throws IOException {
  ChunkKey chunkKey = current.chunkKey;
  // Objects returned by the queue are clustered by chunk. This object
  // is either in the current chunk, or are the next chunk ready on the
  // prefetcher. Anything else is a programming error.
  //
  PackChunk chunk;
  if (currChunk != null && chunkKey.equals(currChunk.getChunkKey()))
    chunk = currChunk;
  else {
    chunk = prefetcher.get(chunkKey);
    if (chunk == null)
      throw new DhtMissingChunkException(chunkKey);
    currChunk = chunk;
    reader.recentChunk(chunk);
  }
  if (current.info != null) {
    int ptr = current.info.getOffset();
    int type = current.info.getType();
    return PackChunk.read(chunk, ptr, reader, type);
  } else {
    int ptr = chunk.findOffset(repo, current.object);
    if (ptr < 0)
      throw DhtReader.missing(current.object, ObjectReader.OBJ_ANY);
    return PackChunk.read(chunk, ptr, reader, ObjectReader.OBJ_ANY);
  }
}
origin: com.madgag/org.eclipse.jgit.storage.dht

public ObjectLoader open() throws IOException {
  ChunkKey chunkKey = current.chunkKey;
  // Objects returned by the queue are clustered by chunk. This object
  // is either in the current chunk, or are the next chunk ready on the
  // prefetcher. Anything else is a programming error.
  //
  PackChunk chunk;
  if (currChunk != null && chunkKey.equals(currChunk.getChunkKey()))
    chunk = currChunk;
  else {
    chunk = prefetcher.get(chunkKey);
    if (chunk == null)
      throw new DhtMissingChunkException(chunkKey);
    currChunk = chunk;
    reader.recentChunk(chunk);
  }
  if (current.info != null) {
    int ptr = current.info.getOffset();
    int type = current.info.getType();
    return PackChunk.read(chunk, ptr, reader, type);
  } else {
    int ptr = chunk.findOffset(repo, current.object);
    if (ptr < 0)
      throw DhtReader.missing(current.object, ObjectReader.OBJ_ANY);
    return PackChunk.read(chunk, ptr, reader, ObjectReader.OBJ_ANY);
  }
}
org.eclipse.jgit.storage.dhtDhtMissingChunkException<init>

Javadoc

Initialize a new missing chunk exception.

Popular methods of DhtMissingChunkException

  • getChunkKey
  • initCause

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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