![]() |
All Packages This Package Class Hierarchy Class Search Index Class grendel.storage.MessageIDjava.lang.Object | +----grendel.storage.MessageID This class represents a Message-ID. It does not contain the ID itself: there is no way to reconstruct the original string from this object; however, it contains a hash of that string which should be sufficiently unique so that the odds of a collision are 1 in 2^32 (since it is a 64-bit hash.) We store the hash instead of the original string because it takes up significantly less memory, and in order to do threading, we tend to need a huge number of Message-IDs in memory at once.
See Also: MessageIDTable
class MessageID
extends java.lang.Object
{
// Fields 1
long hash;
// Constructors 4
MessageID();
MessageID(byte[], int, int);
MessageID(String);
MessageID(long);
// Methods 4
public boolean equals(Object);
protected long hashBytes(byte[], int, int);
public int hashCode();
public String toString();
}
Fields hashlong hash
Constructors MessageIDMessageID()
MessageIDMessageID(long hash)
MessageID
MessageID(byte[] bytes,
int start,
int length)
MessageIDMessageID(String chars) Methods toStringpublic String toString() hashCodepublic int hashCode() equalspublic boolean equals(Object x) hashBytes
protected long hashBytes(byte[] bytes,
int start,
int length)
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4 |
|
|
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998. |
|