public class BucketIdObjectKey extends AbstractObjectKey implements java.io.Serializable
Constructor and Description |
---|
BucketIdObjectKey(java.lang.String locatorURI,
int id) |
Modifier and Type | Method and Description |
---|---|
int |
binarySerialize(BinaryOutput output,
BinarySerializator serializator)
Binary-serialize this object into the
output . |
BucketIdObjectKey |
clone(java.lang.String locatorURI)
Returns a copy of this key with the given locator URI.
|
int |
getBinarySize(BinarySerializator serializator)
Returns the exact size of the binary-serialized version of this object in bytes.
|
int |
getBucketId() |
int |
getUsefulness() |
void |
incUsefulness() |
java.lang.String |
toString()
Returns the URI string.
|
compareTo, create, equals, getKeyStringPart, getLocatorURI, hashCode, write, writeData
public int getBucketId()
public void incUsefulness()
public int getUsefulness()
public java.lang.String toString()
AbstractObjectKey
toString
in class AbstractObjectKey
public int getBinarySize(BinarySerializator serializator)
AbstractObjectKey
getBinarySize
in interface BinarySerializable
getBinarySize
in class AbstractObjectKey
serializator
- the serializator used to write objectspublic int binarySerialize(BinaryOutput output, BinarySerializator serializator) throws java.io.IOException
AbstractObjectKey
output
.binarySerialize
in interface BinarySerializable
binarySerialize
in class AbstractObjectKey
output
- the output that this object is binary-serialized intoserializator
- the serializator used to write objectsjava.io.IOException
- if there was an I/O error during serializationpublic BucketIdObjectKey clone(java.lang.String locatorURI) throws java.lang.CloneNotSupportedException
AbstractObjectKey
clone
in class AbstractObjectKey
locatorURI
- the new locator URI for the keyjava.lang.CloneNotSupportedException
- if there was an error cloning this object