public abstract class InstancePropertyValueMapping extends AbstractMapping
cruxConnector, mapper| Modifier | Constructor and Description |
|---|---|
protected |
InstancePropertyValueMapping()
Necessary default constructor to ensure we can use the static objectMapper of the base class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addInstancePropertyValueToDoc(CruxOMRSRepositoryConnector cruxConnector,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType instanceType,
crux.api.CruxDocument.Builder builder,
String propertyName,
String namespace,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
Add a single property value to the provided Crux representation.
|
static String |
getEndsWithPropertyNameForMatching(String propertyName)
Retrieve a partially-qualified property name that can be used to compare a Lucene match using ends-with.
|
static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue |
getInstancePropertyValueFromDoc(crux.api.CruxDocument cruxDoc,
String namespace,
String propertyName)
Retrieve a single property value from the provided Crux representation.
|
static Set<clojure.lang.Keyword> |
getKeywordsForProperty(String repositoryName,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper,
String propertyName,
String namespace,
Set<String> limitToTypes,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
Retrieve the fully-qualified names for the provided property, everywhere it could appear within a given type.
|
static Set<String> |
getNamesForProperty(String repositoryName,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper,
String propertyName,
String namespace,
Set<String> limitToTypes,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
Retrieve the fully-qualified names for the provided property, everywhere it could appear within a given type.
|
protected static String |
getPropertyValueKeyword(CruxOMRSRepositoryConnector cruxConnector,
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType instanceType,
String propertyName,
String namespace)
Retrieve the qualified Crux name for the value of the property.
|
protected static String |
getSerializedPropertyKeyword(String namespace,
String propertyName)
Retrieve the keyword to use to store the serialized value of the property.
|
static Object |
getValueForComparison(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue ipv)
Convert the provided Egeria value into a Crux comparable form.
|
getDeserializedValue, getEmbeddedSerializedForm, getKeyword, getKeywordprotected InstancePropertyValueMapping()
public static Object getValueForComparison(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue ipv)
ipv - Egeria value to translate to Crux-comparable valuepublic static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue getInstancePropertyValueFromDoc(crux.api.CruxDocument cruxDoc,
String namespace,
String propertyName)
cruxDoc - from which to retrieve the valuenamespace - by which the property is qualifiedpropertyName - of the propertypublic static void addInstancePropertyValueToDoc(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType instanceType, crux.api.CruxDocument.Builder builder, String propertyName, String namespace, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
cruxConnector - connectivity to the repositoryinstanceType - describing the instance to which this property appliesbuilder - through which to add the propertypropertyName - of the property to add / replacenamespace - by which the property should be qualifiedvalue - of the propertyprotected static String getSerializedPropertyKeyword(String namespace, String propertyName)
namespace - by which to qualify the propertypropertyName - of the propertyprotected static String getPropertyValueKeyword(CruxOMRSRepositoryConnector cruxConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType instanceType, String propertyName, String namespace)
cruxConnector - connectivity to the repositoryinstanceType - of the instance for which this property appliespropertyName - of the propertynamespace - by which to qualify the propertypublic static Set<String> getNamesForProperty(String repositoryName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String propertyName, String namespace, Set<String> limitToTypes, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
repositoryName - of the repository (for logging)repositoryHelper - utilities for introspecting type definitions and their propertiespropertyName - of the property for which to qualify type-specific referencesnamespace - under which to qualify the propertieslimitToTypes - limit the type-specific qualifications to only properties that are applicable to these typesvalue - that will be used for comparison, to limit the properties to include based on their typeSet<String> of the property referencespublic static Set<clojure.lang.Keyword> getKeywordsForProperty(String repositoryName, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.repositoryconnector.OMRSRepositoryHelper repositoryHelper, String propertyName, String namespace, Set<String> limitToTypes, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstancePropertyValue value)
repositoryName - of the repository (for logging)repositoryHelper - utilities for introspecting type definitions and their propertiespropertyName - of the property for which to qualify type-specific referencesnamespace - under which to qualify the propertieslimitToTypes - limit the type-specific qualifications to only properties that are applicable to these typesvalue - that will be used for comparison, to limit the properties to include based on their typeSet<Keyword> of the property referencespublic static String getEndsWithPropertyNameForMatching(String propertyName)
propertyName - of the property to referenceCopyright © 2021 ODPi. All rights reserved.