|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RowKey
Key for any row that the DHT will be asked to store.
Implementations of this interface know how to encode and decode themselves from a byte array format, expecting the DHT to use the byte array as the row key within the database.
It is strongly encouraged to use only row keys that are valid UTF-8 strings, as most DHT systems have client tools that can interact with rows using the UTF-8 encoding.
Method Summary | |
---|---|
byte[] |
asBytes()
|
java.lang.String |
asString()
|
boolean |
equals(java.lang.Object other)
Compare this key to another key for equality. |
int |
hashCode()
|
java.lang.String |
toString()
|
Method Detail |
---|
byte[] asBytes()
java.lang.String asString()
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- the other key instance, may be null.
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 |