Class InstancePropertiesMapping
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.crux.mapping.InstancePropertiesMapping
-
public class InstancePropertiesMapping extends Object
Maps the properties of InstanceProperties between persistence and objects. The values of the properties (InstancePropertyValue) will be both JSON-serialized and searchable.- See Also:
InstancePropertyValueMapping
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddToDoc(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument.Builder builder, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, String namespace)Add the provided instance property values to the Crux document.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertiesgetFromDoc(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, crux.api.CruxDocument cruxDoc, String namespace)Retrieve the instance property values from the provided Crux document.
-
-
-
Method Detail
-
getFromDoc
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties getFromDoc(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, crux.api.CruxDocument cruxDoc, String namespace)
Retrieve the instance property values from the provided Crux document. NOTE: whether empty or null, the instance properties will always be returned back from the Crux representation as an empty set of properties (not null).- Parameters:
cruxConnector- connectivity to the repositorytype- of the Egeria instance from which we are retrieving the valuescruxDoc- from which to retrieve the valuesnamespace- by which the properties to retrieve are qualified- Returns:
- InstanceProperties
-
addToDoc
public static void addToDoc(CruxOMRSRepositoryConnector cruxConnector, crux.api.CruxDocument.Builder builder, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceProperties properties, String namespace)
Add the provided instance property values to the Crux document.- Parameters:
cruxConnector- connectivity to the repositorybuilder- to which to add the propertiestype- of the Egeria instance to which the values are being addedproperties- to addnamespace- by which the properties should be qualified
-
-