net.obsearch.index.aesa
Class AbstractAESA<O extends OB>

java.lang.Object
  extended by net.obsearch.index.aesa.AbstractAESA<O>
Type Parameters:
O -
Direct Known Subclasses:
AesaFloat

public abstract class AbstractAESA<O extends OB>
extends Object

In-memory AESA class

Author:
amuller

Field Summary
protected  List<O> objects
           
protected  Statistics stats
           
 
Constructor Summary
AbstractAESA(Class<O> type, int expectedSize)
           
 
Method Summary
 long databaseSize()
           
 void freeze()
           
protected  O get(int i)
           
 Statistics getStatistics()
           
 Class<O> getType()
           
 OperationStatus insert(O object)
           
 void loadObject(long i, O object)
           
protected abstract  void prepare()
          compute all the distances
 void resetStats()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

objects

protected List<O extends OB> objects

stats

protected Statistics stats
Constructor Detail

AbstractAESA

public AbstractAESA(Class<O> type,
                    int expectedSize)
Method Detail

resetStats

public void resetStats()

get

protected O get(int i)

insert

public OperationStatus insert(O object)

size

public int size()

freeze

public void freeze()
            throws OBException
Throws:
OBException

loadObject

public void loadObject(long i,
                       O object)
                throws OBException
Throws:
OBException

databaseSize

public long databaseSize()
                  throws OBStorageException
Throws:
OBStorageException

getType

public Class<O> getType()

getStatistics

public Statistics getStatistics()

prepare

protected abstract void prepare()
                         throws OBException
compute all the distances

Throws:
OBException


Copyright © 2007-2011 Arnoldo Jose Muller Molina. All Rights Reserved.