|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.hp.hpl.mesa.rdf.jena.rdb.DBIDHash
Interface for database identifiers. Most RDF entities (resources, literals, statements) have an associated database index. These are cached using RDB-specific variants of the jena "impl" classes. This can avoid some redundant database lookup.
This variant uses 8 character strings to stort 64bit hash values. Uses this representation instead of longs because some of our databases don't directly support longs but everyone supports char arrays (?)
Constructor Summary | |
DBIDHash(byte[] id)
constructor |
|
DBIDHash(char[] id)
constructor |
|
DBIDHash(java.lang.String id)
constructor |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Equality is based on the underlying object |
java.lang.Object |
getID()
get the identifier as a String, fits calling signature of our generic sql interface. |
long |
getIDLong()
get first 64 bits of the hash id as a Long |
int |
hashCode()
Hash is based on the underlying object |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DBIDHash(char[] id)
public DBIDHash(byte[] id)
public DBIDHash(java.lang.String id)
Method Detail |
public java.lang.Object getID()
getID
in interface IDBID
public long getIDLong()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |