Top Description Inners Fields Constructors Methods
org.eclipse.jgit.internal.storage.file

pack-priv Class UnpackedObjectCache

extends Object
Class Inheritance
Imports
java.util.concurrent.atomic.AtomicReferenceArray, org.eclipse.jgit.lib.AnyObjectId, .ObjectId

Remembers objects that are currently unpacked.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final int
private static final int
private volatile UnpackedObjectCache.Table

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
add(AnyObjectId objectId)

pack-priv void
pack-priv boolean
pack-priv void
remove(AnyObjectId objectId)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INITIAL_BITSback to summary
private static final int INITIAL_BITS
MAX_BITSback to summary
private static final int MAX_BITS
tableback to summary
private volatile UnpackedObjectCache.Table table

Constructor Detail

UnpackedObjectCacheback to summary
pack-priv UnpackedObjectCache()

Method Detail

addback to summary
pack-priv void add(AnyObjectId objectId)
clearback to summary
pack-priv void clear()
isUnpackedback to summary
pack-priv boolean isUnpacked(AnyObjectId objectId)
removeback to summary
pack-priv void remove(AnyObjectId objectId)
org.eclipse.jgit.internal.storage.file back to summary

private Class UnpackedObjectCache.Table

extends Object
Class Inheritance
  • java.lang.Object
  • org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.Table

Field Summary

Modifier and TypeField and Description
pack-priv final int
private final AtomicReferenceArray<ObjectId>
private static final int
private final int

Constructor Summary

AccessConstructor and Description
pack-priv
Table(int bits)

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
pack-priv boolean
private int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bitsback to summary
pack-priv final int bits
idsback to summary
private final AtomicReferenceArray<ObjectId> ids
MAX_CHAINback to summary
private static final int MAX_CHAIN
shiftback to summary
private final int shift

Constructor Detail

Tableback to summary
pack-priv Table(int bits)

Method Detail

addback to summary
pack-priv boolean add(AnyObjectId toAdd)
containsback to summary
pack-priv boolean contains(AnyObjectId toFind)
indexback to summary
private int index(AnyObjectId id)