org.eclipse.jgit.storage.dht
Class PackChunk

java.lang.Object
  extended by org.eclipse.jgit.storage.dht.PackChunk

public final class PackChunk
extends java.lang.Object

Chunk of object data, stored under a ChunkKey.

A chunk typically contains thousands of objects, compressed in the Git native pack file format. Its associated ChunkIndex provides offsets for each object's header and compressed data.

Chunks (and their indexes) are opaque binary blobs meant only to be read by the Git implementation.


Nested Class Summary
static class PackChunk.Members
          Constructs a PackChunk while reading from the DHT.
 
Method Summary
 ChunkKey getChunkKey()
           
 ChunkIndex getIndex()
           
 GitStore.ChunkMeta getMeta()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getChunkKey

public ChunkKey getChunkKey()
Returns:
unique name of this chunk in the database.

getIndex

public ChunkIndex getIndex()
Returns:
index describing the objects stored within this chunk.

getMeta

public GitStore.ChunkMeta getMeta()
Returns:
inline meta information, or null if no data was necessary.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.