|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.hedenus.rdf.SPIndex
public class SPIndex
A special (fast) index for accessing statements by their subject and predicate.
Constructor Summary | |
---|---|
SPIndex()
Creates a table with inital capacity of 128. |
|
SPIndex(int initialLength)
Creates a table with an inital capacity which must be a power of two. |
Method Summary | |
---|---|
void |
add(Statement statement)
Adds a statement to the index. |
Statement[] |
get(java.lang.String subject,
java.lang.String predicate)
Returns an array of Statements for the given subject and predicate or null
if there is no statement. |
float |
getLoadFactor()
|
int |
getSize()
Returns the number of indexed statements. |
boolean |
isEmpty()
|
void |
setLoadFactor(float loadFactor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPIndex()
public SPIndex(int initialLength)
Method Detail |
---|
public int getSize()
public boolean isEmpty()
public float getLoadFactor()
public void setLoadFactor(float loadFactor)
public Statement[] get(java.lang.String subject, java.lang.String predicate)
null
if there is no statement.
public void add(Statement statement)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |