org.eclipse.jgit.storage.dht
Class ObjectIndexKey
java.lang.Object
org.eclipse.jgit.lib.AnyObjectId
org.eclipse.jgit.lib.ObjectId
org.eclipse.jgit.storage.dht.ObjectIndexKey
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, RowKey
public final class ObjectIndexKey
- extends ObjectId
- implements RowKey
Identifies an ObjectId in the DHT.
- See Also:
- Serialized Form
Methods inherited from class org.eclipse.jgit.lib.AnyObjectId |
abbreviate, compareTo, compareTo, compareTo, compareTo, copy, copyRawTo, copyRawTo, copyRawTo, copyRawTo, copyTo, copyTo, copyTo, copyTo, copyTo, copyTo, equals, equals, equals, getByte, getFirstByte, getName, hashCode, name, startsWith |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
create
public static ObjectIndexKey create(RepositoryKey repo,
AnyObjectId objId)
- Parameters:
repo
- objId
-
- Returns:
- the key
fromBytes
public static ObjectIndexKey fromBytes(byte[] key)
- Parameters:
key
-
- Returns:
- the key
fromString
public static ObjectIndexKey fromString(java.lang.String key)
- Parameters:
key
-
- Returns:
- the key
getRepositoryKey
public RepositoryKey getRepositoryKey()
- Returns:
- the repository that contains the object.
asBytes
public byte[] asBytes()
- Specified by:
asBytes
in interface RowKey
- Returns:
- key formatted as byte array for storage in the DHT.
asString
public java.lang.String asString()
- Specified by:
asString
in interface RowKey
- Returns:
- key formatted as a String for storage in the DHT.
toString
public java.lang.String toString()
- Specified by:
toString
in interface RowKey
- Overrides:
toString
in class AnyObjectId
- Returns:
- pretty printable string for debugging/reporting only.
Copyright © 2011. All Rights Reserved.