|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jgit.storage.dht.spi.cache.Namespace
public class Namespace
Defines a space within the cache cluster.
Field Summary | |
---|---|
static Namespace |
CACHED_PACK
Namespace used by the cached pack information. |
static Namespace |
CHUNK
Namespace used by the ChunkTable . |
static Namespace |
CHUNK_META
Namespace used by the ChunkTable for meta field only. |
static Namespace |
OBJECT_INDEX
Namespace used by the ObjectIndexTable . |
static Namespace |
REPOSITORY_INDEX
Namespace used by the RepositoryIndexTable . |
Method Summary | |
---|---|
static Namespace |
create(byte[] name)
Create a namespace from a byte array. |
static Namespace |
create(java.lang.String name)
Create a namespace from a string name. |
boolean |
equals(java.lang.Object other)
|
byte[] |
getBytes()
|
int |
hashCode()
|
CacheKey |
key(byte[] key)
Construct a MemKey within this namespace. |
CacheKey |
key(RowKey key)
Construct a MemKey within this namespace. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final Namespace CHUNK
ChunkTable
.
public static final Namespace CHUNK_META
ChunkTable
for meta field only.
public static final Namespace OBJECT_INDEX
ObjectIndexTable
.
public static final Namespace REPOSITORY_INDEX
RepositoryIndexTable
.
public static final Namespace CACHED_PACK
Method Detail |
---|
public static Namespace create(java.lang.String name)
name
- the name to wrap.
public static Namespace create(byte[] name)
name
- the name to wrap.
public byte[] getBytes()
public CacheKey key(byte[] key)
key
- the key to include.
public CacheKey key(RowKey key)
key
- the key to include.
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |