org.eclipse.jgit.storage.dht
Class ObjectIndexKey

java.lang.Object
  extended by org.eclipse.jgit.lib.AnyObjectId
      extended by org.eclipse.jgit.lib.ObjectId
          extended by 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

Method Summary
 byte[] asBytes()
           
 java.lang.String asString()
           
static ObjectIndexKey create(RepositoryKey repo, AnyObjectId objId)
           
static ObjectIndexKey fromBytes(byte[] key)
           
static ObjectIndexKey fromString(java.lang.String key)
           
 RepositoryKey getRepositoryKey()
           
 java.lang.String toString()
           
 
Methods inherited from class org.eclipse.jgit.lib.ObjectId
equals, fromRaw, fromRaw, fromRaw, fromRaw, fromString, isId, toObjectId, toString, zeroId
 
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
 
Methods inherited from interface org.eclipse.jgit.storage.dht.RowKey
equals, hashCode
 

Method Detail

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.