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())
.ReadBytesMarshallable
.WriteBytesMarshallable
.ChronicleHashBuilder
s
with ChronicleHashBuilder.checksumEntries(boolean)
configured to true
.ChronicleMap
and ChronicleSet
, related to off-heap
memory management and file-mapping.ChronicleMapBuilder
and
ChronicleSetBuilder
, i.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.ConcurrentMap
interface, stores the data off-heap.ChronicleMapBuilder
manages ChronicleMap
configurations; could be used as a
classic builder and/or factory.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.possiblyStatefulCopyable
implements StatefulCopyable
, then returns
StatefulCopyable.copy()
of it, otherwise returns the possiblyStatefulCopyable
itself.Data
implementations should override Object.equals(Object)
with delegation to
this method.Data
implementations should override Object.hashCode()
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 the entries' value and inserting the new entry.Data
s' bytes representations.Data
to the given bytes source
, starting from the
given offset.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
.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
.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
.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>
.InterProcessReadWriteUpdateLock
) is already held by the current thread, this call returns
immediately.ChronicleMap
.ChronicleMap
.MapEntries
are accessed.ChronicleHash
.ChronicleMap
entries.Map<K, V>
.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).ChronicleMaps
(net.openhft.chronicle.map
package) and
ChronicleSets
(net.openhft.chronicle.set
package).Bytes
or BytesStore
.ChronicleSet
interface and
ChronicleSetBuilder
class.UnsupportedOperationException
.ChronicleHashBuilder.entries(long)
, assuming hash code distribution of the keys, inserted
into configured Chronicle Hash, is good.ChronicleMapBuilder.of(Class, Class)
for convenience.ChronicleMapBuilder
instance which is able to create maps with the specified key and value classes.Data
's bytes sequence, within the Data.bytes()
object.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
.ChronicleHash.queryContext(Object)
, but accepts Data
instead of key as
an object.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.InterProcessReadWriteUpdateLock
of a segment in ChronicleHash
.ChronicleHash
.ChronicleSet
.ChronicleSet
.SetEntries
are accessed.ChronicleSet
.Set<T>
.ChronicleSet
operations with individual keys
(most: contains()
, add()
, etc., opposed to bulk operations).ChronicleSet
's segment.Data
's bytes sequence.SizedWriter
, i.ChronicleHash
into SizedReader.read(net.openhft.chronicle.bytes.Bytes, long, T)
deserialization method.SizedReader
, SizedWriter
,
BytesReader
, BytesWriter
, DataAccess
), configured for ChronicleMap
or ChronicleSet
in builder, should implement the StatefulCopyable
interface.size
with this SizeMarshaller
.Data
's object toString()
.true
.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 © 2016. All rights reserved.