net.obsearch.index.perm
Class AbstractDistancePermutations<O extends OB,B extends BucketObject<O>,Q,BC extends BucketContainer<O,B,Q>>
java.lang.Object
net.obsearch.index.AbstractOBIndex<O>
net.obsearch.index.pivot.AbstractPivotOBIndex<O>
net.obsearch.index.bucket.AbstractBucketIndex<O,B,Q,BC>
net.obsearch.index.perm.AbstractDistancePermutations<O,B,Q,BC>
- All Implemented Interfaces:
- Index<O>
public abstract class AbstractDistancePermutations<O extends OB,B extends BucketObject<O>,Q,BC extends BucketContainer<O,B,Q>>
- extends AbstractBucketIndex<O,B,Q,BC>
Methods inherited from class net.obsearch.index.bucket.AbstractBucketIndex |
bucketStats, close, debug, deleteAux, exists, freezeDefault, getAddress, getBucket, getBucketContainer, getBuckets, getObjectFreeze, idMap, init, initByteArrayBuckets, insertAux, insertAuxBulk, insertBucket, insertBucketBulk, instantiateBucketContainer, iterateBuckets, primitiveDataTypeSize |
Methods inherited from class net.obsearch.index.AbstractOBIndex |
assertFrozen, bytesToObject, bytesToObject, clearACache, databaseSize, delete, distance, emptyPivotsArray, findAux, getBox, getObject, getStats, getType, initCache, initStorageDevices, insert, insert, insertBulk, insertBulk, intrinsicDimensionality, isFrozen, isPreFreeze, isPreFreezeCheck, loadObject, loadPivots, objectToByteBuffer, objectToBytes, resetStats, serializePivots, setFixedRecord, setFixedRecord, setIdAutoGeneration, setPreFreeze, setPreFreezeCheck, totalBoxes |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractDistancePermutations
public AbstractDistancePermutations(Class<O> type,
IncrementalPivotSelector<O> pivotSelector,
int pivotCount)
throws OBStorageException,
OBException
- Throws:
OBStorageException
OBException
freeze
public void freeze()
throws AlreadyFrozenException,
IllegalIdException,
OBStorageException,
OutOfRangeException,
IllegalAccessException,
InstantiationException,
OBException,
PivotsUnavailableException,
IOException
- Description copied from interface:
Index
- Freezes the index. From this point data can be inserted, searched and
deleted. The index might deteriorate at some point so every once in a
while it is a good idea to rebuild the index. A PivotSelector must be
executed before calling this method.
- Specified by:
freeze
in interface Index<O extends OB>
- Overrides:
freeze
in class AbstractPivotOBIndex<O extends OB>
- Throws:
AlreadyFrozenException
- If the index was already frozen and the user attempted to
freeze it again
IllegalIdException
- This exception is left as a Debug flag. If you receive
this exception please report the problem to:
http://code.google.com/p/obsearch/issues/list
OBStorageException
- If something goes wrong with the DB
OutOfRangeException
- If the distance of any object to any other object exceeds
the range defined by the user.
IllegalAccessException
- If there is a problem when instantiating objects O
InstantiationException
- If there is a problem when instantiating objects O
OBException
- User generated exception
PivotsUnavailableException
IOException
- if the index serialization process fails- See Also:
Index.freeze()
loadPermutations
protected void loadPermutations()
throws OBStorageException,
OBException
- Throws:
OBStorageException
OBException
Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.