Package com.linkedin.venice.views
Class MaterializedView
java.lang.Object
com.linkedin.venice.views.VeniceView
com.linkedin.venice.views.MaterializedView
-
Field Summary
FieldsFields inherited from class com.linkedin.venice.views.VeniceView
props, storeName, VIEW_NAME_SEPARATOR, VIEW_STORE_PREFIX, viewParameters -
Constructor Summary
ConstructorsConstructorDescriptionMaterializedView(Properties props, String storeName, Map<String, String> viewParameters) -
Method Summary
Modifier and TypeMethodDescriptioncomposeTopicName(int version) 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.intImplementations should return the fully specified class name for the component VeniceViewWriter implementation.getWriterOptionsBuilder(String viewTopicName, Version version) voidvalidateConfigs(Store store) MaterializedViewParameters.MATERIALIZED_VIEW_PARTITION_COUNTis required to configure a new re-partition view.Methods inherited from class com.linkedin.venice.views.VeniceView
close, getStoreName, getStoreNameFromViewStoreName, getViewNameFromViewStoreName, getViewStoreName, isViewStore, isViewTopic, parseStoreAndViewFromViewTopic, parseStoreFromViewTopic, parseVersionFromViewTopic
-
Field Details
-
MATERIALIZED_VIEW_TOPIC_SUFFIX
- See Also:
-
MATERIALIZED_VIEW_WRITER_CLASS_NAME
- See Also:
-
-
Constructor Details
-
MaterializedView
-
-
Method Details
-
getWriterOptionsBuilder
- Overrides:
getWriterOptionsBuilderin classVeniceView
-
getTopicNamesAndConfigsForVersion
Description copied from class:VeniceViewImplementations 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:
getTopicNamesAndConfigsForVersionin classVeniceView- Returns:
- a map keyed by the name of the topic to be created and the configs which should be applied for that creation
-
composeTopicName
- Overrides:
composeTopicNamein classVeniceView
-
validateConfigs
MaterializedViewParameters.MATERIALIZED_VIEW_PARTITION_COUNTis required to configure a new re-partition view.MaterializedViewParameters.MATERIALIZED_VIEW_PARTITIONERis optional. The re-partition view will use the store level partitioner config if it's not specified in the view parameters.MaterializedViewParameters.MATERIALIZED_VIEW_PARTITIONER_PARAMSis optional.- Overrides:
validateConfigsin classVeniceView
-
getWriterClassName
Description copied from class:VeniceViewImplementations should return the fully specified class name for the component VeniceViewWriter implementation.- Overrides:
getWriterClassNamein classVeniceView- Returns:
- returns the className of the writer which should be instantiated.
-
getViewPartitionCount
public int getViewPartitionCount() -
getViewPartitioner
-
getViewName
-
getPartitionerConfig
-