Package be.bagofwords.db
Class CoreDataInterface<T>
- java.lang.Object
-
- be.bagofwords.db.impl.BaseDataInterface<T>
-
- be.bagofwords.db.CoreDataInterface<T>
-
- All Implemented Interfaces:
DataInterface<T>,be.bagofwords.iterator.DataIterable<be.bagofwords.util.KeyValue<T>>,Iterable<be.bagofwords.util.KeyValue<T>>
- Direct Known Subclasses:
FileDataInterface,InMemoryDataInterface
public abstract class CoreDataInterface<T> extends BaseDataInterface<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected UpdateListenerCollection<T>updateListenerCollection-
Fields inherited from class be.bagofwords.db.impl.BaseDataInterface
combinator, isTemporaryDataInterface, name, objectClass, objectSerializer
-
-
Constructor Summary
Constructors Constructor Description CoreDataInterface(String name, Class<T> objectClass, Combinator<T> combinator, ObjectSerializer<T> objectSerializer, boolean isTemporary)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidflush()protected abstract voidflushImpl()DataInterface<T>getCoreDataInterface()voidregisterUpdateListener(UpdateListener<T> updateListener)-
Methods inherited from class be.bagofwords.db.impl.BaseDataInterface
apprDataChecksum, close, doClose, exactSize, finalize, getCombinator, getName, getObjectClass, getObjectSerializer, ifNotClosed, isTemporaryDataInterface, wasClosed
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface be.bagofwords.db.DataInterface
apprSize, cachedValueIterator, dropAllData, increaseCount, increaseCount, increaseCount, increaseCount, iterator, iterator, iterator, iterator, iterator, keyIterator, mightContain, mightContain, optimizeForReading, read, read, read, readCount, readCount, readCount, remove, remove, stream, stream, stream, stream, streamKeys, streamValues, streamValues, streamValues, streamValues, streamValues, valueIterator, valueIterator, valueIterator, valueIterator, valueIterator, write, write, write, write, write
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
updateListenerCollection
protected final UpdateListenerCollection<T> updateListenerCollection
-
-
Constructor Detail
-
CoreDataInterface
public CoreDataInterface(String name, Class<T> objectClass, Combinator<T> combinator, ObjectSerializer<T> objectSerializer, boolean isTemporary)
-
-
Method Detail
-
getCoreDataInterface
public DataInterface<T> getCoreDataInterface()
- Specified by:
getCoreDataInterfacein interfaceDataInterface<T>- Specified by:
getCoreDataInterfacein classBaseDataInterface<T>
-
registerUpdateListener
public void registerUpdateListener(UpdateListener<T> updateListener)
-
flush
public void flush()
-
flushImpl
protected abstract void flushImpl()
-
-