|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.utils.StoreDefinitionUtils
public class StoreDefinitionUtils
Constructor Summary | |
---|---|
StoreDefinitionUtils()
|
Method Summary | |
---|---|
static java.util.List<StoreDefinition> |
filterStores(java.util.List<StoreDefinition> storeDefs,
boolean isReadOnly)
Given a list of store definitions, filters the list depending on the boolean |
static StoreDefinitionBuilder |
getBuilderForStoreDef(StoreDefinition storeDef)
|
static StoreDefinition |
getStoreDefinitionWithName(java.util.List<StoreDefinition> storeDefs,
java.lang.String storeName)
Given a store name and a list of store definitions, returns the appropriate store definition ( if it exists ) |
static java.util.List<java.lang.String> |
getStoreNames(java.util.List<StoreDefinition> storeDefList)
Given a list of store definitions return a list of store names |
static java.util.Set<java.lang.String> |
getStoreNamesSet(java.util.List<StoreDefinition> storeDefList)
Given a list of store definitions return a set of store names |
static java.util.HashMap<StoreDefinition,java.lang.Integer> |
getUniqueStoreDefinitionsWithCounts(java.util.List<StoreDefinition> storeDefs)
Given a list of store definitions, find out and return a map of similar store definitions + count of them |
static boolean |
isAvroSchema(java.lang.String serializerName)
Determine whether or not a given serializedr is "AVRO" based |
static void |
validateSchemaAsNeeded(StoreDefinition storeDefinition)
Validate store schema -- backward compatibility if it is AVRO generic versioned -- sanity checks for avro in general |
static void |
validateSchemasAsNeeded(java.util.Collection<StoreDefinition> storeDefinitions)
Validate store schema for things like backwards compatibility, parseability |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StoreDefinitionUtils()
Method Detail |
---|
public static java.util.List<StoreDefinition> filterStores(java.util.List<StoreDefinition> storeDefs, boolean isReadOnly)
storeDefs
- Complete list of store definitionsisReadOnly
- Boolean indicating whether filter on read-only or not?
public static java.util.List<java.lang.String> getStoreNames(java.util.List<StoreDefinition> storeDefList)
storeDefList
- The list of store definitions
public static java.util.Set<java.lang.String> getStoreNamesSet(java.util.List<StoreDefinition> storeDefList)
storeDefList
- The list of store definitions
public static StoreDefinition getStoreDefinitionWithName(java.util.List<StoreDefinition> storeDefs, java.lang.String storeName)
storeDefs
- List of store definitionsstoreName
- The store name whose store definition is required
public static java.util.HashMap<StoreDefinition,java.lang.Integer> getUniqueStoreDefinitionsWithCounts(java.util.List<StoreDefinition> storeDefs)
storeDefs
- All store definitions
public static boolean isAvroSchema(java.lang.String serializerName)
serializerName
-
public static void validateSchemaAsNeeded(StoreDefinition storeDefinition)
storeDefinition
- the store definition to check onpublic static void validateSchemasAsNeeded(java.util.Collection<StoreDefinition> storeDefinitions)
storeDefinitions
- the list of store definition to check onpublic static StoreDefinitionBuilder getBuilderForStoreDef(StoreDefinition storeDef)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |