org.apache.camel.component.krati
Class KratiHelper

java.lang.Object
  extended by org.apache.camel.component.krati.KratiHelper

public final class KratiHelper
extends Object


Method Summary
static krati.store.DataSet<byte[]> createDataSet(String path, int initialCapacity, krati.core.segment.SegmentFactory segmentFactory)
          Creates a DynamicDataSet with the given parameters.
static
<K,V> krati.store.DataStore<K,V>
createDataStore(String path, int initialCapacity, int segmentFileSize, krati.core.segment.SegmentFactory segmentFactory, krati.util.HashFunction<byte[]> hashFunction, krati.io.Serializer<K> keySerializer, krati.io.Serializer<V> valueSerializer)
          Creates a SerializableObjectStore with the given parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createDataStore

public static <K,V> krati.store.DataStore<K,V> createDataStore(String path,
                                                               int initialCapacity,
                                                               int segmentFileSize,
                                                               krati.core.segment.SegmentFactory segmentFactory,
                                                               krati.util.HashFunction<byte[]> hashFunction,
                                                               krati.io.Serializer<K> keySerializer,
                                                               krati.io.Serializer<V> valueSerializer)
Creates a SerializableObjectStore with the given parameters.

Parameters:
path - The directory which the store will use.
initialCapacity -
segmentFileSize -
segmentFactory - The segment factory, defaults to ChannelSegmentFactory.
hashFunction - The hash function, defaults to FnvHashFunction.
keySerializer - The serializer used for keys, defaults to KratiDefaultSerializer.
valueSerializer - The serializer used for values,defaults to KratiDefaultSerializer.
Returns:

createDataSet

public static krati.store.DataSet<byte[]> createDataSet(String path,
                                                        int initialCapacity,
                                                        krati.core.segment.SegmentFactory segmentFactory)
Creates a DynamicDataSet with the given parameters.

Parameters:
path - The directory which the set will use.
initialCapacity -
segmentFactory - The segment factory, defaults to ChannelSegmentFactory.
Returns:


Apache Camel