public class DdllKey extends Object implements Comparable<DdllKey>, Serializable, Cloneable
An instance of DdllKey contains a primaryKey, uniqId and id. A UniqId is used for making the DdllKey unique.
IDs are used for identifying linked-lists. Different linked-lists should have different IDs. When repairing a linked-list, keys that have the same ID is used as a hint for finding a live left node.
appData is an application-specific data, which is not used by the
DDLL package. The skip graph implementation org.piax.gtrans.ov.sg uses
this field for passing a MembershipVector.
| コンストラクタと説明 |
|---|
DdllKey(Comparable<?> key,
UniqId uniqId) |
DdllKey(Comparable<?> key,
UniqId uniqId,
String id,
Object appData) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Object |
clone() |
int |
compareTo(DdllKey o) |
boolean |
equals(Object obj) |
boolean |
equals2(DdllKey o)
compare without id
|
String |
getId() |
DdllKey |
getIdChangedKey(String id)
get a DdllKey instance with the specified ID
|
Comparable<?> |
getPrimaryKey()
get primaryKey portion of the key
|
UniqId |
getUniqId()
get PeerID portion of the key
|
int |
hashCode() |
int |
hashCode2()
hashcode without id
|
String |
toString() |
public final Object appData
public DdllKey(Comparable<?> key, UniqId uniqId, String id, Object appData)
public DdllKey(Comparable<?> key, UniqId uniqId)
public Comparable<?> getPrimaryKey()
public UniqId getUniqId()
public String getId()
public int compareTo(DdllKey o)
compareTo インタフェース内 Comparable<DdllKey>public boolean equals2(DdllKey o)
o - the key object.public int hashCode2()
Copyright © 2017. All rights reserved.