org.modeshape.jcr.index.local

## Interface MapDB.Serializers

- All Known Implementing Classes:
    BufferManager, MapDB.SerializerSupplier
  Enclosing class:
    MapDB

      public static interface MapDB.Serializers

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `org.mapdb.BTreeKeySerializer<?>` | `bTreeKeySerializerFor(Class<?> type, Comparator<?> comparator, boolean pack)` Obtain a serializer for the given key type.
    `org.mapdb.Serializer<?>` | `serializerFor(Class<?> type)` Obtain a serializer for the given value type.

- - ### Method Detail

    - #### serializerFor

          org.mapdb.Serializer<?> serializerFor(Class<?> type)

      Obtain a serializer for the given value type.
      Parameters:
        `type` - the type; may not be null
      Returns:
        the serializer

    - #### bTreeKeySerializerFor

          org.mapdb.BTreeKeySerializer<?> bTreeKeySerializerFor(Class<?> type,
                                                              Comparator<?> comparator,
                                                              boolean pack)

      Obtain a serializer for the given key type.
      Parameters:
        `type` - the type; may not be null
        `comparator` - the comparator; may not be null
        `pack` - true if the serializer can/should pack keys together when possible, or false otherwise
      Returns:
        the serializer

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.