Package org.apache.drill.exec.store.sys
Class PersistentStoreConfig<V>
java.lang.Object
org.apache.drill.exec.store.sys.PersistentStoreConfig<V>
- Type Parameters:
V
- value type of whichPersistentStore
uses to store & retrieve instances
An abstraction for configurations that are used to create a
store
.-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
PersistentStoreConfig
(String name, InstanceSerializer<V> valueSerializer, PersistentStoreMode mode, int capacity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getMode()
getName()
int
hashCode()
static <V> PersistentStoreConfig.StoreConfigBuilder<V>
newJacksonBuilder
(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<V> clazz) static <V> PersistentStoreConfig.StoreConfigBuilder<V>
newJacksonBuilder
(Class<V> clazz) static <V extends com.google.protobuf.Message,
X extends com.google.protobuf.Message.Builder>
PersistentStoreConfig.StoreConfigBuilder<V>newProtoBuilder
(io.protostuff.Schema<V> writeSchema, io.protostuff.Schema<X> readSchema)
-
Constructor Details
-
PersistentStoreConfig
protected PersistentStoreConfig(String name, InstanceSerializer<V> valueSerializer, PersistentStoreMode mode, int capacity)
-
-
Method Details
-
getCapacity
public int getCapacity() -
getMode
-
getName
-
getSerializer
-
hashCode
public int hashCode() -
equals
-
newProtoBuilder
public static <V extends com.google.protobuf.Message,X extends com.google.protobuf.Message.Builder> PersistentStoreConfig.StoreConfigBuilder<V> newProtoBuilder(io.protostuff.Schema<V> writeSchema, io.protostuff.Schema<X> readSchema) -
newJacksonBuilder
-
newJacksonBuilder
public static <V> PersistentStoreConfig.StoreConfigBuilder<V> newJacksonBuilder(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<V> clazz)
-