You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ka...@apache.org on 2009/03/12 20:58:45 UTC
svn commit: r752989 - in /labs/bananadb/trunk: FILES.txt
src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java
Author: kalle
Date: Thu Mar 12 19:58:45 2009
New Revision: 752989
URL: http://svn.apache.org/viewvc?rev=752989&view=rev
Log:
BananDB
fixed typos
Modified:
labs/bananadb/trunk/FILES.txt
labs/bananadb/trunk/src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java
Modified: labs/bananadb/trunk/FILES.txt
URL: http://svn.apache.org/viewvc/labs/bananadb/trunk/FILES.txt?rev=752989&r1=752988&r2=752989&view=diff
==============================================================================
--- labs/bananadb/trunk/FILES.txt (original)
+++ labs/bananadb/trunk/FILES.txt Thu Mar 12 19:58:45 2009
@@ -43,7 +43,7 @@
== hashtable ==
-The actual key entity hashtable, points at the first and last position in entities-file for the given hash.
+The actual key entity hashtable, points at the first position in entities-file for the given hash.
The position for any given key is calculated with: hash & (capacity - 1);
Posting data:
@@ -52,8 +52,5 @@
byte 0 = no posting. Any other value means there is a posting.
int offset position to first entity with this hash
-TODO: data below this line is not yet implemented
-int offset position to last entry with this hash, speeds up adding when there are many items sharing the same hash position
-
}}}
Modified: labs/bananadb/trunk/src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java
URL: http://svn.apache.org/viewvc/labs/bananadb/trunk/src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java?rev=752989&r1=752988&r2=752989&view=diff
==============================================================================
--- labs/bananadb/trunk/src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java (original)
+++ labs/bananadb/trunk/src/main/java/org/apache/labs/bananadb/hashtable/Hashtable.java Thu Mar 12 19:58:45 2009
@@ -228,7 +228,7 @@
DataInput in = new DataInputStream(new ByteArrayInputStream(hashtableRecordBuf));
if (in.readByte() == 0) {
- // create posting for hash
+ // create inital posting for hash
int entityOffset = getNextEntityOffset();
setNextEntityOffset(getNextEntityOffset() + entityByteSize);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org