public class DataDictionaryByType extends Object implements DataProviderDictionary
DataProviderDictionary implementation that splits entries by DataProviderInfo.Type, and stores each in its own dictionary.
The underlying DataProviderDictionary implementation is determined by the return type of the method
provided to the constructor. Instances of this class are immutable.| Constructor and Description |
|---|
DataDictionaryByType(DataProviderDictionary other,
Function<List<DataProviderInfo>,DataProviderDictionary> maker)
Constructs an instance with the same set of entries as contained in the provided dictionary.
|
DataDictionaryByType(List<DataProviderInfo> allData,
Function<List<DataProviderInfo>,DataProviderDictionary> maker)
Constructs an instance, given a list of entries.
|
| Modifier and Type | Method and Description |
|---|---|
org.lsst.ccs.utilities.taitime.CCSTimeStamp |
getCCSTimeStamp()
Deprecated.
|
List<DataProviderInfo> |
getDataProviderDescriptionsForGroup(String group)
Deprecated.
|
DataProviderInfo |
getDataProviderInfoForPath(String path)
Get the DataProviderInfo definition for the provided path.
|
List<DataProviderInfo> |
getDataProviderInfos() |
Set<String> |
getGroups()
Deprecated.
|
int |
size()
Returns the size of this dictionary.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic DataDictionaryByType(DataProviderDictionary other, Function<List<DataProviderInfo>,DataProviderDictionary> maker)
other - Source dictionary.maker - Method to be used for creating dictionaries for each entry type.public DataDictionaryByType(List<DataProviderInfo> allData, Function<List<DataProviderInfo>,DataProviderDictionary> maker)
allData - List of entries.maker - Method to be used for creating dictionaries for each entry type.public List<DataProviderInfo> getDataProviderInfos()
getDataProviderInfos in interface DataProviderDictionarypublic DataProviderInfo getDataProviderInfoForPath(String path)
DataProviderDictionarygetDataProviderInfoForPath in interface DataProviderDictionarypath - The path for the desired DataProviderInfo@Deprecated public Set<String> getGroups()
getGroups in interface DataProviderDictionary@Deprecated public List<DataProviderInfo> getDataProviderDescriptionsForGroup(String group)
getDataProviderDescriptionsForGroup in interface DataProviderDictionary@Deprecated public org.lsst.ccs.utilities.taitime.CCSTimeStamp getCCSTimeStamp()
DataProviderDictionarygetCCSTimeStamp in interface DataProviderDictionarypublic int size()
DataProviderDictionarysize in interface DataProviderDictionaryCopyright © 2024 LSST. All rights reserved.