|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.store.IndexedObjectStore<T>
T - The object type to be stored.public class IndexedObjectStore<T extends Storeable>
Provides a store for objects that can be located by a long identifier.
| Constructor Summary | |
|---|---|
IndexedObjectStore(ObjectSerializationFactory serializationFactory,
java.io.File objectStorageFile,
java.io.File indexStorageFile)
Creates a new instance. |
|
IndexedObjectStore(ObjectSerializationFactory serializationFactory,
java.lang.String tmpFilePrefix)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(long id,
T data)
Adds the specified object to the store. |
void |
complete()
Ensures that all information is fully persisted. |
IndexedObjectStoreReader<T> |
createReader()
Creates a new reader capable of accessing the contents of this store. |
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IndexedObjectStore(ObjectSerializationFactory serializationFactory,
java.lang.String tmpFilePrefix)
serializationFactory - The factory defining the object serialisation implementation.tmpFilePrefix - The prefix of the storage file.
public IndexedObjectStore(ObjectSerializationFactory serializationFactory,
java.io.File objectStorageFile,
java.io.File indexStorageFile)
serializationFactory - The factory defining the object serialisation implementation.objectStorageFile - The storage file to use for objects.indexStorageFile - The storage file to use for the index.| Method Detail |
|---|
public void add(long id,
T data)
id - The identifier allowing the object to be retrieved.data - The object to be added.public IndexedObjectStoreReader<T> createReader()
public void complete()
complete in interface Completablepublic void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||