@Beta public interface DatasetDefinitionRegistry
Modifier and Type | Method and Description |
---|---|
void |
add(DatasetDefinition def)
Adds
DatasetDefinition to the registry. |
<T extends DatasetDefinition> |
get(String datasetTypeName)
Gets
DatasetDefinition previously added to the registry. |
boolean |
hasType(String datasetTypeName) |
void add(DatasetDefinition def)
DatasetDefinition
to the registry.
After it was added it is available thru get(String)
method.def
- definition to addIllegalArgumentException
- if registry already contains dataset type of the same name as given definition<T extends DatasetDefinition> T get(String datasetTypeName)
DatasetDefinition
previously added to the registry.T
- type of the returned DatasetDefinition
datasetTypeName
- dataset type name, should be same as
DatasetDefinition.getName()
DatasetDefinition
IllegalArgumentException
- if registry does not contain dataset type of a given nameboolean hasType(String datasetTypeName)
datasetTypeName
- name of the dataset typeCopyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.