Class DefaultIndex
- java.lang.Object
-
- gov.nist.secauto.metaschema.core.model.constraint.DefaultIndex
-
- All Implemented Interfaces:
IIndex
public class DefaultIndex extends Object implements IIndex
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultIndex(List<? extends IKeyField> keyFields)
Construct a new index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INodeItem
get(List<String> key)
Retrieve the item from the index that matches the provided key.List<IKeyField>
getKeyFields()
Retrieve the key field components used to generate a key for this index.INodeItem
put(INodeItem item, List<String> key)
Store the provided item using the provided key.
-
-
-
Constructor Detail
-
DefaultIndex
protected DefaultIndex(@NonNull List<? extends IKeyField> keyFields)
Construct a new index.- Parameters:
keyFields
- the key field components to use to generate keys by default
-
-
Method Detail
-
getKeyFields
public List<IKeyField> getKeyFields()
Description copied from interface:IIndex
Retrieve the key field components used to generate a key for this index.- Specified by:
getKeyFields
in interfaceIIndex
- Returns:
- the key field components
-
put
public INodeItem put(@NonNull INodeItem item, @NonNull List<String> key)
Description copied from interface:IIndex
Store the provided item using the provided key.
-
-