|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.egothor.util.hash.Table
public final class Table
Constructor Summary | |
---|---|
Table(int bucket_size,
java.lang.String digestAlgorithm,
java.lang.String filename,
int nodes_cache,
int uris_cache,
int buckets_size)
|
Method Summary | |
---|---|
long |
append(java.net.URI uri)
Returns the new identifier related to the URI, -id iff the URI already exists under the id in the base. |
long |
buckets()
|
float |
bucketsCacheEff()
|
float |
cacheEff()
|
void |
close()
|
int |
dataSize()
Length of a hash value. |
long |
nodes()
|
float |
nodesCacheEff()
|
long |
size()
Returns number of URIs in the base, or -1 iff the value is unknown. |
boolean |
wasNew()
Returns true if and only if the last successful push(byte[]) inserted a new item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Table(int bucket_size, java.lang.String digestAlgorithm, java.lang.String filename, int nodes_cache, int uris_cache, int buckets_size) throws java.io.IOException, java.security.NoSuchAlgorithmException
java.io.IOException
java.security.NoSuchAlgorithmException
Method Detail |
---|
public long size()
URIRepositoryAppender
size
in interface URIRepositoryAppender
public long buckets()
public long nodes()
public float nodesCacheEff()
public float bucketsCacheEff()
public float cacheEff()
public boolean wasNew()
push(byte[])
inserted a new item.
public int dataSize()
public void close()
close
in interface URIRepositoryAppender
public long append(java.net.URI uri)
URIRepositoryAppender
append
in interface URIRepositoryAppender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |