Package | Description |
---|---|
net.openhft.chronicle.map |
Modifier and Type | Method and Description |
---|---|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.actualChunkSize(int actualChunkSize)
Configures the size in bytes of allocation unit of hash container instances, created by this
builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.actualChunksPerSegment(long actualChunksPerSegment) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.actualSegments(int actualSegments) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.averageKeySize(double averageKeySize)
Configures the average number of bytes, taken by serialized form of keys, put into hash
containers, created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.averageValueSize(double averageValueSize)
Configures the average number of bytes, taken by serialized form of values, put into maps,
created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.bytesEventListener(BytesMapEventListener eventListener) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.bytesMarshallerFactory(BytesMarshallerFactory bytesMarshallerFactory) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.clone() |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.constantKeySizeBySample(K sampleKey)
Configures the constant number of bytes, taken by serialized form of keys, put into hash
containers, created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.constantValueSizeBySample(V sampleValue)
Configures the constant number of bytes, taken by serialized form of values, put into maps,
created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.defaultValue(V defaultValue)
Specifies the value to be put for each key queried in
acquireUsing() method, if the key is absent in the map, created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.defaultValueProvider(DefaultValueProvider<K,V> defaultValueProvider)
Specifies the function to obtain a value for the key during
acquireUsing() calls, if the key is absent in the map, created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.entries(long entries) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.entriesPerSegment(long entriesPerSegment) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.entryAndValueAlignment(Alignment alignment)
Configures alignment strategy of address in memory of entries and independently of address in
memory of values within entries in ChronicleMaps, created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.errorListener(ChronicleHashErrorListener errorListener) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.eventListener(MapEventListener<K,V> eventListener) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.immutableKeys() |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.keyDeserializationFactory(ObjectFactory<K> keyDeserializationFactory) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.keyMarshaller(BytesMarshaller<? super K> keyMarshaller) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.keyMarshallers(BytesWriter<K> keyWriter,
BytesReader<K> keyReader) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.keySizeMarshaller(SizeMarshaller keySizeMarshaller) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.lockTimeOut(long lockTimeOut,
TimeUnit unit) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.maxChunksPerEntry(int maxChunksPerEntry) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.metaDataBytes(int metaDataBytes) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.minSegments(int minSegments) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.objectSerializer(ObjectSerializer objectSerializer)
Configures the serializer used to serialize/deserialize data to/from off-heap memory, when
specified class doesn't implement a specific serialization interface like
Externalizable or BytesMarshallable (for example, if data is loosely typed and just
Object is specified as the data class), or nullable data, and if custom marshaller is
not configured, in hash containers, created by
this builder. |
static <K,V> ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.of(Class<K> keyClass,
Class<V> valueClass)
Returns a new
ChronicleMapBuilder instance which is able to create maps with the specified key and value classes. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.prepareDefaultValueBytes(PrepareValueBytes<K,V> prepareValueBytes)
Configures the procedure which is called on the bytes, which later the returned value is
pointing to or deserialized from, if the key is absent, on
acquireUsing() call on maps, created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.pushTo(InetSocketAddress... addresses) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.putReturnsNull(boolean putReturnsNull) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.removeReturnsNull(boolean removeReturnsNull) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.replication(byte identifier) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.replication(byte identifier,
TcpTransportAndNetworkConfig tcpTransportAndNetwork) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.replication(SingleChronicleHashReplication replication) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.timeProvider(TimeProvider timeProvider) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueDeserializationFactory(ObjectFactory<V> valueDeserializationFactory)
Configures factory which is used to create a new value instance, if value class is either
Byteable , BytesMarshallable or Externalizable subclass, or value type
is eligible for data value generation, or configured custom value reader is an instance of
DeserializationFactoryConfigurableBytesReader , in maps, created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueMarshaller(BytesMarshaller<? super V> valueMarshaller)
Configures the
BytesMarshaller used to serialize/deserialize values to/from off-heap
memory in maps, created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueMarshallers(BytesWriter<V> valueWriter,
BytesReader<V> valueReader)
Configures the marshallers, used to serialize/deserialize values to/from off-heap memory in
maps, created by this builder.
|
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueSizeMarshaller(SizeMarshaller valueSizeMarshaller)
Configures the marshaller used to serialize actual value sizes to off-heap memory in maps,
created by this builder.
|
Copyright © 2015. All rights reserved.