Package | Description |
---|---|
net.openhft.chronicle.map |
Modifier and Type | Method and Description |
---|---|
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.keySize(int keySize)
Configures the optimal number of bytes, taken by serialized form of keys, put into hash
containers, created by this builder.
|
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.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 in maps,
created by this builder. |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueMarshaller(AgileBytesMarshaller<V> valueMarshaller) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueMarshaller(BytesMarshaller<V> valueMarshaller) |
ChronicleMapBuilder<K,V> |
ChronicleMapBuilder.valueSize(int valueSize)
Configures the optimal number of bytes, taken by serialized form of values, put into maps,
created by this builder.
|
Copyright © 2014. All rights reserved.