|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.obsearch.index.bucket.BucketObject<O>
public abstract class BucketObject<O>
BucketObject holds a bucket number for an object. Subclasses hold also the SMAP vector with the distances of the object to the pivots of a certain level.
Constructor Summary | |
---|---|
BucketObject(long id)
Creates a new bucket with the given bucket number and the specified level. |
|
BucketObject(long id,
O object)
Creates a new bucket with the given bucket number and the specified level. |
Method Summary | |
---|---|
long |
getId()
|
O |
getObject()
|
abstract int |
getPivotSize()
Returns the # of pivots. |
abstract void |
read(ByteBuffer in,
int pivots)
Read the contents of the byte buffer into this bucket object. |
void |
setId(long id)
|
void |
setObject(O object)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BucketObject(long id)
bucket
- Bucket number.exclusionBucket
- If true, the corresponding object is in the exclusion zone.optional
- id of the object.public BucketObject(long id, O object)
bucket
- Bucket number.exclusionBucket
- If true, the corresponding object is in the exclusion zone.optional
- id of the object.Method Detail |
---|
public O getObject()
public long getId()
public void setObject(O object)
public void setId(long id)
id
- the id to setpublic abstract void read(ByteBuffer in, int pivots)
in
- The bytes to be read.pivots
- # of pivots of the index.public abstract int getPivotSize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |