null
, if the entry is present.ChronicleHash
.Data
's equals()
, hashCode()
and
toString()
.ChronicleMap.acquireUsing(Object, Object)
method.maxBloatFactor(1.0)
, that does not
guarantee that segments won't tier (due to bad hash distribution or natural variance),
configuring allowSegmentTiering(false)
makes Chronicle Hashes, created by this
builder, to throw IllegalStateException
immediately when some segment overflows.averageKey
using
the configured keys marshallers
.averageKey
using
the configured keys marshallers
.averageValue
using the configured
value marshallers
.Data
's bytes.Data
instances represent equivalent bytes sequences:
by comparing their sizes, then calling d1.equivalent(d2.bytes(), d2.offset())
.BytesWriter
, without accepting additional
information about serialized objects.BytesReader
.ChronicleHashBuilder
s
with ChronicleHashBuilder.checksumEntries(boolean)
configured to true
.ChronicleMap
and ChronicleSet
.ChronicleMapBuilder
and ChronicleSetBuilder
, i.ChronicleHash
is accessed after ChronicleHash.close()
.ChronicleHashCorruption
events.ChronicleHashBuilder.recoverPersistedTo(File, boolean)
method is impossible, for example,
if the persistence file is corrupted too much.ChronicleHashRecoveryFailedException
with the specified cause.ChronicleHashRecoveryFailedException
with the specified detail
message.ChronicleMap
provides concurrent access to a Chronicle Map key-value store from a
JVM process.ChronicleMapBuilder
manages ChronicleMap
configurations; could be used as a
classic builder and/or factory.ChronicleSet
provides concurrent access to a Chronicle Map key-value store with
zero-sized values from a JVM process, wrapped as an extension of Set
interface.ChronicleSetBuilder
manages the whole set of ChronicleSet
configurations, could
be used as a classic builder and/or factory.ConcurrentMap.compute(Object, BiFunction)
method.ConcurrentMap.computeIfAbsent(Object, Function)
method.ConcurrentMap.computeIfPresent(Object, BiFunction)
method.SizeMarshaller
, that consumes 0 bytes and is above to "store" only a single
constant number, provided to this factory method.Map.containsKey(Object)
method.possiblyStatefulCopyable
implements StatefulCopyable
, then returns
StatefulCopyable.copy()
of it, otherwise returns the possiblyStatefulCopyable
itself.ChronicleMap
) and elements (for ChronicleSet
) throughout the Chronicle Map library.Data
object, cached
inside the DataAccess
instance.Data
implementations should override Object.equals(Object)
with delegation to
this method.Data
implementations should override Object.hashCode()
with delegation to
this method.Data
implementations should override Object.toString()
with delegation to
this method.absentEntry
context.acquireUsing()
calls, if the key is absent in the map, created by this builder.ChronicleMapBuilder.defaultValueProvider(DefaultValueProvider)
configuration.value
.the new key
into the set.ChronicleHash
.ChronicleSet
.newValue
.ChronicleHash
, returns null
is the entry is absent.ChronicleMap
's operations with entries:
removing entries, replacing entries' value and inserting new entries.ChronicleSet
's operations with entries:
removing entries and inserting new entries.Data
s' bytes representations.Data
to the given bytes source
, starting from the
given offset.null
if there is
no exception.ChronicleHash
until all entries have
been processed or the action throws an Exception
.ChronicleHash
until all entries
have been processed or the predicate returns false
for some entry, or throws
an Exception
.Exception
.false
for some entry, or throws
an Exception
.Data
.null
if this map contains
no mapping for the key.File
storing them in JSON format, an attempt is
made where possible to use standard java serialisation and keep the data human readable, data
serialized using the custom serialises are converted to a binary format which is not human
readable but this is only done if the Keys or Values are not Serializable
.Data
accessor to the bytes of the given object.Data
's bytes, trying to reuse the given
using
object (might be null
).value
object, if possible, or returns null
, if this map contains no mapping for the key.Data
, using the given hash
function.ChronicleHash
.ChronicleMap
.ChronicleSet
.ChronicleHash
.Data
's bytes
representation.HashEntries
could be accessed.ChronicleHash
.ChronicleHash
operations with individual keys.ChronicleHash
's segment.the key
from
the given insertion context (absentEntry
) and the given value
.the key
from
the given insertion context (absentEntry
).InterProcessLock.lock()
and InterProcessLock.lockInterruptibly()
when
if fails to acquire the lock for some implementation-defined period of time.InterProcessDeadLockException
with the specified detail message.InterProcessDeadLockException
with the specified detail message and
cause.ChronicleHash
instances.ChronicleHash
(on-heap instance) is open.keyMarshallers(marshaller, marshaller)
.keyMarshallers(sizedMarshaller, sizedMarshaller)
.DataAccess
and SizedReader
used to serialize and deserialize
keys to and from off-heap memory in hash containers, created by this builder.List<T>
.ListMarshaller
with the given list elements' serializers.ChronicleMap
.ChronicleMap
.MapEntries
are accessed.ChronicleMap
.ChronicleMap
entries.Map<K, V>
.MapMarshaller
with the given map keys' and values' serializers.ChronicleMap
's operations with individual keys:
from Map.containsKey(java.lang.Object)
to ChronicleMap.acquireUsing(K, V)
and
ConcurrentMap.merge(K, V, java.util.function.BiFunction<? super V, ? super V, ? extends V>)
.ChronicleMap
operations with individual keys
(like during get()
, put()
, etc., opposed to bulk operations).ChronicleMap
's segment.ChronicleHash
es, created
by this builder, could take.SizeMarshaller
is able to store.SizeMarshaller
produces for some value in the
given range (both bounds are inclusive).ConcurrentMap.merge(Object, Object, BiFunction)
method.SizeMarshaller
is able to store.SizeMarshaller
produces for some size in the
given range (both bounds are inclusive).ChronicleHash
, configured by ChronicleHashBuilder.name(String)
, or null
, if not configured.ChronicleMaps
(net.openhft.chronicle.map
package) and
ChronicleSets
(net.openhft.chronicle.set
package).Bytes
or BytesStore
, used by
Chronicle Map to store objects off-heap, and read them back from off-heap memory to on-heap
objects.ChronicleMap
interface, ChronicleMap
context
interfaces, ChronicleMapBuilder
class and related stuff.UnsupportedOperationException
.ChronicleHashBuilder.entries(long)
, assuming hash code distribution of the keys, inserted
into configured Chronicle Hash, is good.ListMarshaller
which uses the given list elements' serializers.ListMarshaller
which uses the given marshaller as both reader and writer of
list elements.SetMarshaller
which uses the given set elements' serializers.SetMarshaller
which uses the given marshaller as both reader and writer of
set elements.ChronicleMapBuilder.of(Class, Class)
for convenience.ChronicleMapBuilder
instance which is able to create maps with the specified key and value classes.ChronicleSetBuilder.of(Class)
for convenience.ChronicleSetBuilder
instance which is able to create sets with the specified key class.ChronicleHash
or
shared with with other ChronicleHashes, persisting to the same ChronicleHash.file()
.Data
's bytes sequence within the RandomDataInput
,
returned from Data.bytes()
method.Map.put(Object, Object)
method.File
, the fromFile
must be created
using or the same format as ChronicleMap.get(Object)
, this method behaves
similar to Map.put(Object, Object)
where existing
entries are overwritten.ConcurrentMap.putIfAbsent(Object, Object)
method.ChronicleMapBuilder
should return null
instead of previous mapped values on ChornicleMap.put(key, value)
calls.Data
.Data
form.RandomCommon.readPosition()
(i.RandomCommon.readPosition()
(i.Map.remove(Object)
method.ConcurrentMap.remove(Object, Object)
method.ChronicleMapBuilder
should return null
instead of the last mapped value on ChronicleMap.remove(key)
calls.ConcurrentMap.replace(Object, Object)
method.ConcurrentMap.replace(Object, Object, Object)
method.ChronicleMap
, used in MapMethods
.ReturnValue
object, provided as an argument in a method from
MapMethods
, designates that the ChronicleMap
's method (backed by this
MapMethods
's method) should return the given value
.InterProcessReadWriteUpdateLock
of a segment in ChronicleHash
.ChronicleHash
.ChronicleSet
.ChronicleSet
.SetEntries
are accessed.ChronicleSet
.ChronicleSet
entries.Set<T>
.SetMarshaller
with the given set elements' serializers.ChronicleSet
operations with individual keys
(most: contains()
, add()
, etc., opposed to bulk operations).ChronicleSet
's segment.Data
's bytes sequence.SizedWriter
, i.SizedReader
, which knows the length of serialized
form of any object before actual serialization 2) doesn't include that length in the serialized
form itself, assuming it will be passed by the ChronicleHash
into read(net.openhft.chronicle.bytes.Bytes, long, T)
deserialization method.Cloneable
-like interface used by Chronicle Map to populate stateful serializer
implementations for each isolated site (thread + Chronicle Map instance + objects domain).SizeMarshaller
which stores number using so-called stop bit encoding.size
with this SizeMarshaller
.String
, useful for identifying this ChronicleHash
in debugging,
logging, and error reporting.Data
's object toString()
.true
.DataAccess.getData(Object)
method) in
caching fields of this DataAccess
or the cached Data
object, returned from
DataAccess.getData(Object)
.InterProcessReadWriteUpdateLock
, if the lock is not held by the current thread, returns
immediately.valueMarshallers(sizedMarshaller, sizedMarshaller)
.valueMarshallers(marshaller, marshaller)
.DataAccess
and SizedReader
used to serialize and deserialize
values to and from off-heap memory in maps, created by this builder.Data
.Data
.out
.out
, without writing the length of the
serialized form itself.Data
to the given target
from the given targetOffset
.Copyright © 2018. All rights reserved.