Package org.mapdb
-
Interface Summary Interface Description Bind.MapListener<K,V> Listener called whenMapis modified.Bind.MapWithModificationListener<K,V> Primary Maps must provide notifications when it is modified.BTreeKeySerializer.StringArrayKeys DataIO.DataInputInternal Give access to internal byte[] or ByteBuffer in DataInput2..Engine Centerpiece for record management,Engineis simple key value store.Fun.Function0<R> function which takes no argument and returns one valueFun.Function1<R,A> function which takes one argument and returns one valueFun.Function1Int<R> function which takes one int argument and returns one valueFun.Function2<R,A,B> function which takes two argument and returns one valueFun.RecordCondition<A> decides if some action should be executed on an recordTxBlock Wraps single transaction in a block -
Class Summary Class Description Atomic A small toolkit of classes that support lock-free thread-safe programming on single records.Atomic.Boolean Abooleanrecord that may be updated atomically.Atomic.Integer Anintrecord that may be updated atomically.Atomic.Long Alongrecord that may be updated atomically.Atomic.String AStringrecord that may be updated atomically.Atomic.Var<E> Atomically updated variable which may contain any type of record.Bind Binding is simple yet powerful way to keep secondary collection synchronized with primary collection.BTreeKeySerializer<KEY,KEYS> Custom serializer for BTreeMap keys which enables [Delta encoding](https://en.wikipedia.org/wiki/Delta_encoding).BTreeKeySerializer.ArrayKeySerializer BTreeKeySerializer.BasicKeySerializer Basic Key Serializer which just writes data without applying any compression.BTreeKeySerializer.ByteArrayKeys BTreeKeySerializer.CharArrayKeys BTreeKeySerializer.Compress BTreeMap<K,V> A scalable concurrentConcurrentNavigableMapimplementation.BTreeMap.BNode common interface for BTree nodeBTreeMap.DirNode BTreeMap.KeySet<E> BTreeMap.LeafNode CompressLZF This class implements the LZF lossless data compression algorithm.DataIO Various IO classes and utilities..DataIO.DataInputByteArray DataInput on top ofbyte[]DataIO.DataInputByteBuffer WrapsByteBufferand providesDataInputDataIO.DataInputToStream WrapsDataInputintoInputStreamDataIO.DataOutputByteArray ProvidesDataOutputimplementation on top of growablebyte[]ByteArrayOutputStreamis not used as it requiresbyte[]copyingDataIO.HeartbeatFileLock File locking mechanism.DB A database with easy access to named maps and other collections.DB.BTreeMapMaker DB.HTreeMapMaker DBMaker A builder class to creare and open new database and individual collections.DBMaker.Maker EncryptionXTEA An implementation of the EncryptionXTEA block cipher algorithm.Engine.CloseOnJVMShutdown Closes Engine on JVM shutdown using shutdown hook:Runtime.addShutdownHook(Thread)If engine was closed by user before JVM shutdown, hook is removed to save memory.Engine.ReadOnly Engine.ReadOnlyWrapper Wraps anEngineand throwsUnsupportedOperationException("Read-only")on any modification attempt.Fun Functional stuff.Fun.ArrayComparator compares two arrays using given comparatorsFun.Pair<A,B> HTreeMap<K,V> Thread safe concurrent HashMapPump Data Pump moves data from one source to other.Queues Various queue algorithmsQueues.CircularQueue<E> Queues.Queue<E> First in first out lock-free queueQueues.SimpleQueue<E> Queues.Stack<E> Last in first out lock-free queueSerializer<A> Provides serialization and deserializationSerializer.Array<T> Serializer.CompressionDeflateWrapper<E> wraps another serializer and (de)compresses its output/input using DeflateSerializer.CompressionWrapper<E> wraps another serializer and (de)compresses its output/inputSerializerBase Serializer which uses 'header byte' to serialize/deserialize most of classes from 'java.lang' and 'java.util' packages.SerializerPojo Serializer which handles POJO, object graphs etc.Store Store.Cache Cache implementation, part ofStoreclass.Store.Cache.HardRef Cache created objects using hard reference.Store.Cache.HashTable Fixed size cache which uses hash table.Store.Cache.LRU Store.Cache.WeakSoftRef Instance cache which usesSoftReferenceorWeakReferenceItems can be removed from cache by Garbage Collector ifStore.LongLongMap Open Hash Map which uses primitive long as values and keys.Store.LongObjectMap<V> Open Hash Map which uses primitive long as keys.Store.LongObjectObjectMap<V1,V2> Open Hash Map which uses primitive long as keys.Store.LongQueue Queue of primitive long.Store.MemoryBarrierLessLock Lock which blocks parallel execution, but does not use MemoryBarrier (and does not flush CPU cache)Store.ReadWriteSingleLock fake read/write lock which in fact locks on single write lockStoreAppend append only storeStoreArchive Store without index table.StoreCached ExtendsStoreDirectwith Write CacheStoreDirect StoreDirect.Snapshot StoreHeap Store which keeps all instances on heap.StoreHeap.Snapshot StoreWAL Write-Ahead-LogTxEngine Naive implementation of Snapshots on top of StorageEngine.TxMaker Transaction factoryVolume MapDB abstraction over raw storage (file, disk partition, memory etc...).Volume.ByteArrayVol Volume.ByteBufferVol Abstract Volume over bunch of ByteBuffers It leaves ByteBufferVol details (allocation, disposal) on subclasses.Volume.ByteBufferVolSingle Abstract Volume over single ByteBuffer, maximal size is 2GB (32bit limit).Volume.FileChannelVol Volume which uses FileChannel.Volume.MappedFileVol Volume.MappedFileVolSingle Volume.MemoryVol Volume.MemoryVolSingle Volume.RandomAccessFileVol Volume.ReadOnly Volume.SingleByteArrayVol Volume backed by on-heap byte[] with maximal fixed size 2GB.Volume.VolumeFactory -
Exception Summary Exception Description DBException General exception returned by MapDB if something goes wrong.DBException.ChecksumBroken DBException.ClassNotFound DBException.DataCorruption DBException.EngineCompactUncommited DBException.EngineGetVoid DBException.FileDeleteFailed DBException.FileLocked Some other process (possibly DB) holds exclusive lock over this file, so it can not be openedDBException.HeadChecksumBroken DBException.Interrupted DBException.OutOfMemory DBException.PointerChecksumBroken DBException.PumpSourceDuplicate DBException.PumpSourceNotSorted DBException.UnknownSerializer DBException.VolumeClosed DBException.VolumeClosedByInterrupt DBException.VolumeEOF DBException.VolumeIOError DBException.VolumeMaxSizeExceeded DBException.WrongConfig TxRollbackException Exception thrown when transaction is rolled back.
DataMelt 3.0 © DataMelt by jWork.ORG