Package org.lsst.ccs.services
Class DataDictionaryOrdered
java.lang.Object
org.lsst.ccs.services.DataDictionaryOrdered
- All Implemented Interfaces:
Serializable,DataProviderDictionary
DataProviderDictionary implementation that minimizes memory footprint and serialized size at the expense of access speed.
Instances of this class are immutable. Order of DataProviderInfo instances is preserved.
Implementation notes
Currently, extra complexity is added by the fact that we associate key as well as path with every data channel. This is left over from supporting both full and short paths, and is expected to be removed in later versions. For now,int keyFlag is associated with every tree node to tell how to extract path and key from the full path:
- keyFlag = NO_PATH : not a terminal node
- keyFlag = NULL_PATH : path = null, key = fullPath
- keyFlag = EMPTY_PATH : path = "", key = fullPath
- keyFlag less than 0 : abs(keyFlag) is the number of segments in key, fullPath = path + key
- others : keyFlag is the number of segments in key, fullPath ends with key
- Author:
- onoprien
- See Also:
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.lsst.ccs.utilities.taitime.CCSTimeStampDeprecated.Deprecated.Get the DataProviderInfo definition for the provided path.Deprecated.intsize()Returns the size of this dictionary.
-
Constructor Details
-
DataDictionaryOrdered
-
DataDictionaryOrdered
-
-
Method Details
-
getDataProviderInfos
- Specified by:
getDataProviderInfosin interfaceDataProviderDictionary- Returns:
- the existing list of DataProviders
-
getDataProviderInfoForPath
Description copied from interface:DataProviderDictionaryGet the DataProviderInfo definition for the provided path.- Specified by:
getDataProviderInfoForPathin interfaceDataProviderDictionary- Parameters:
path- The path for the desired DataProviderInfo- Returns:
- The corresponding DataProviderInfo, or null otherwise.
-
getGroups
Deprecated.- Specified by:
getGroupsin interfaceDataProviderDictionary- Returns:
- the existing groups
-
getDataProviderDescriptionsForGroup
Deprecated.- Specified by:
getDataProviderDescriptionsForGroupin interfaceDataProviderDictionary- Returns:
-
getCCSTimeStamp
Deprecated.Description copied from interface:DataProviderDictionaryGet the CCSTimeStamp of when this dictionary was created.- Specified by:
getCCSTimeStampin interfaceDataProviderDictionary- Returns:
- The CCSTimeStamp when this dictionary was created.
-
size
public int size()Description copied from interface:DataProviderDictionaryReturns the size of this dictionary.- Specified by:
sizein interfaceDataProviderDictionary- Returns:
- Number of entries in this dictionary.
-