Class TransientDataSetIndexRegistry
- java.lang.Object
-
- org.dashbuilder.dataset.engine.index.TransientDataSetIndexRegistry
-
- All Implemented Interfaces:
DataSetIndexRegistry
public class TransientDataSetIndexRegistry extends Object implements DataSetIndexRegistry
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,DataSetIndex>indexMapprotected org.dashbuilder.dataset.uuid.UUIDGeneratoruuidGenerator
-
Constructor Summary
Constructors Constructor Description TransientDataSetIndexRegistry(org.dashbuilder.dataset.uuid.UUIDGenerator uuidGenerator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSetIndexget(String uuid)Get the index for the specified data set.DataSetIndexput(org.dashbuilder.dataset.DataSet dataSet)Index the given data set.DataSetIndexremove(String uuid)Removes the index for the specified data set.
-
-
-
Field Detail
-
uuidGenerator
protected org.dashbuilder.dataset.uuid.UUIDGenerator uuidGenerator
-
indexMap
protected Map<String,DataSetIndex> indexMap
-
-
Method Detail
-
put
public DataSetIndex put(org.dashbuilder.dataset.DataSet dataSet)
Description copied from interface:DataSetIndexRegistryIndex the given data set.- Specified by:
putin interfaceDataSetIndexRegistry
-
get
public DataSetIndex get(String uuid)
Description copied from interface:DataSetIndexRegistryGet the index for the specified data set.- Specified by:
getin interfaceDataSetIndexRegistry- Parameters:
uuid- The data set unique identifier.
-
remove
public DataSetIndex remove(String uuid)
Description copied from interface:DataSetIndexRegistryRemoves the index for the specified data set.- Specified by:
removein interfaceDataSetIndexRegistry- Parameters:
uuid- The data set unique identifier.- Returns:
- The removed index or null if there was no mapping for uuid.
-
-