Package com.linkedin.venice.views
Class MaterializedView
- java.lang.Object
-
- com.linkedin.venice.views.VeniceView
-
- com.linkedin.venice.views.MaterializedView
-
public class MaterializedView extends VeniceView
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
MATERIALIZED_VIEW_TOPIC_SUFFIX
-
Fields inherited from class com.linkedin.venice.views.VeniceView
props, store, VIEW_TOPIC_SEPARATOR, viewParameters
-
-
Constructor Summary
Constructors Constructor Description MaterializedView(java.util.Properties props, Store store, java.util.Map<java.lang.String,java.lang.String> viewParameters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,VeniceProperties>
getTopicNamesAndConfigsForVersion(int version)
Implementations should override to return a map of topicName:topic Configs relevant for topic materialization (things like partition count, RF, etc.) TODO: Come up with list of config names that should be parsed by VeniceAdmin to pass along to TopicManager.void
validateConfigs()
ViewParameterKeys.MATERIALIZED_VIEW_PARTITION_COUNT
is required to configure a new re-partition view.-
Methods inherited from class com.linkedin.venice.views.VeniceView
close, getWriterClassName, isViewTopic, parseStoreFromViewTopic, parseVersionFromViewTopic
-
-
-
-
Field Detail
-
MATERIALIZED_VIEW_TOPIC_SUFFIX
public static final java.lang.String MATERIALIZED_VIEW_TOPIC_SUFFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MaterializedView
public MaterializedView(java.util.Properties props, Store store, java.util.Map<java.lang.String,java.lang.String> viewParameters)
-
-
Method Detail
-
getTopicNamesAndConfigsForVersion
public java.util.Map<java.lang.String,VeniceProperties> getTopicNamesAndConfigsForVersion(int version)
Description copied from class:VeniceView
Implementations should override to return a map of topicName:topic Configs relevant for topic materialization (things like partition count, RF, etc.) TODO: Come up with list of config names that should be parsed by VeniceAdmin to pass along to TopicManager.- Overrides:
getTopicNamesAndConfigsForVersion
in classVeniceView
- Returns:
- a map keyed by the name of the topic to be created and the configs which should be applied for that creation
-
validateConfigs
public void validateConfigs()
ViewParameterKeys.MATERIALIZED_VIEW_PARTITION_COUNT
is required to configure a new re-partition view.ViewParameterKeys.MATERIALIZED_VIEW_PARTITIONER
is optional. The re-partition view will use the store level partitioner config if it's not specified in the view parameters.ViewParameterKeys.MATERIALIZED_VIEW_PARTITIONER_PARAMS
is optional.- Overrides:
validateConfigs
in classVeniceView
-
-