|
|||||||||
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.DBIDInt
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 just uses integers allocated by the database driver as indices. This would be sufficient for databases up to 4x10^9 statements.
Constructor Summary | |
DBIDInt(int id)
constructor |
|
DBIDInt(java.lang.Integer 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 an Integer, fits calling signature of our generic sql interface. |
int |
getIntID()
get the identifier as a plain int |
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 DBIDInt(int id)
public DBIDInt(java.lang.Integer id)
Method Detail |
public java.lang.Object getID()
getID
in interface IDBID
public int getIntID()
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 |