Class DataProfileAnnotation
- java.lang.Object
-
- org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
-
- org.odpi.openmetadata.frameworks.discovery.properties.Annotation
-
- org.odpi.openmetadata.frameworks.discovery.properties.DataFieldAnnotation
-
- org.odpi.openmetadata.frameworks.discovery.properties.DataProfileAnnotation
-
- All Implemented Interfaces:
Serializable
public class DataProfileAnnotation extends DataFieldAnnotation
DataProfileAnnotation holds properties that describe the characteristics of a specific field within a data source.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description DataProfileAnnotation()Default constructorDataProfileAnnotation(DataProfileAnnotation template)Copy clone constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetAverageValue()Return the average (mean) value of the values stored in the data field.StringgetInferredDataType()Return the name of the data type that the discovery service believes the field is.StringgetInferredFormat()Return the name of the data format that the discovery service believes the field is.intgetInferredLength()Return the length of the data field that has been deduced from the data stored.intgetInferredPrecision()Return the precision of the data field that has been deduced from the data stored.intgetInferredScale()Return the inferred scale used in other properties.intgetLength()Return the length of the data field.Map<String,Long>getProfileCounts()Return the map of different profiling counts that have been calculated.Map<String,Boolean>getProfileFlags()Return a set of boolean flags describing different aspects of the data.Map<String,String>getProfileProperties()Return the map of properties that make up the profile.Map<String,Integer>getValueCount()Return a map of values to value count for the data field.List<String>getValueList()Return the list of values found in the data field.StringgetValueRangeFrom()Return the lowest value of the data stored in this data field.StringgetValueRangeTo()Return the upper value of the data stored in this data field.inthashCode()Create a hash code for this element type.voidsetAverageValue(String averageValue)Set up the average (mean) value of the values stored in the data field.voidsetInferredDataType(String inferredDataType)Set up the name of the data type that the discovery service believes the field is.voidsetInferredFormat(String inferredFormat)Set up the name of the data format that the discovery service believes the field is.voidsetInferredLength(int inferredLength)Set up the length of the data field that has been deduced from the data stored.voidsetInferredPrecision(int inferredPrecision)Set up the precision of the data field that has been deduced from the data stored.voidsetInferredScale(int inferredScale)Set up the inferred scale used in other properties.voidsetLength(int length)Set up the length of the data field.voidsetProfileCounts(Map<String,Long> profileCounts)Set up the map of different profiling counts that have been calculated.voidsetProfileFlags(Map<String,Boolean> profileFlags)Set up a set of boolean flags describing different aspects of the data.voidsetProfileProperties(Map<String,String> profileProperties)Set up the map of properties that make up the profile.voidsetValueCount(Map<String,Integer> valueCount)Set up a map of values to value count for the data field.voidsetValueList(List<String> valueList)Set up the list of values found in the data field.voidsetValueRangeFrom(String valueRangeFrom)Set up the lowest value of the data stored in this data field.voidsetValueRangeTo(String valueRangeTo)Set up the upper value of the data stored in this data field.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.Annotation
getAdditionalProperties, getAnalysisStep, getAnnotationStatus, getAnnotationType, getConfidenceLevel, getExplanation, getExpression, getJsonProperties, getNumAttachedAnnotations, getReviewComment, getReviewDate, getSteward, getSummary, setAdditionalProperties, setAnalysisStep, setAnnotationStatus, setAnnotationType, setConfidenceLevel, setExplanation, setExpression, setJsonProperties, setNumAttachedAnnotations, setReviewComment, setReviewDate, setSteward, setSummary
-
Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setTypeName
-
-
-
-
Constructor Detail
-
DataProfileAnnotation
public DataProfileAnnotation()
Default constructor
-
DataProfileAnnotation
public DataProfileAnnotation(DataProfileAnnotation template)
Copy clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getLength
public int getLength()
Return the length of the data field. Assumes static predefined lengths.- Returns:
- integer
-
setLength
public void setLength(int length)
Set up the length of the data field. Assumes static predefined lengths.- Parameters:
length- integer
-
getInferredDataType
public String getInferredDataType()
Return the name of the data type that the discovery service believes the field is.- Returns:
- string name
-
setInferredDataType
public void setInferredDataType(String inferredDataType)
Set up the name of the data type that the discovery service believes the field is.- Parameters:
inferredDataType- string name
-
getInferredFormat
public String getInferredFormat()
Return the name of the data format that the discovery service believes the field is.- Returns:
- string name
-
setInferredFormat
public void setInferredFormat(String inferredFormat)
Set up the name of the data format that the discovery service believes the field is.- Parameters:
inferredFormat- string name
-
getInferredLength
public int getInferredLength()
Return the length of the data field that has been deduced from the data stored.- Returns:
- integer
-
setInferredLength
public void setInferredLength(int inferredLength)
Set up the length of the data field that has been deduced from the data stored.- Parameters:
inferredLength- integer
-
getInferredPrecision
public int getInferredPrecision()
Return the precision of the data field that has been deduced from the data stored.- Returns:
- integer
-
setInferredPrecision
public void setInferredPrecision(int inferredPrecision)
Set up the precision of the data field that has been deduced from the data stored.- Parameters:
inferredPrecision- integer
-
getInferredScale
public int getInferredScale()
Return the inferred scale used in other properties.- Returns:
- integer
-
setInferredScale
public void setInferredScale(int inferredScale)
Set up the inferred scale used in other properties.- Parameters:
inferredScale- integer
-
getProfileProperties
public Map<String,String> getProfileProperties()
Return the map of properties that make up the profile.- Returns:
- property map
-
setProfileProperties
public void setProfileProperties(Map<String,String> profileProperties)
Set up the map of properties that make up the profile.- Parameters:
profileProperties- property map
-
getProfileFlags
public Map<String,Boolean> getProfileFlags()
Return a set of boolean flags describing different aspects of the data.- Returns:
- map of flag names to flag values
-
setProfileFlags
public void setProfileFlags(Map<String,Boolean> profileFlags)
Set up a set of boolean flags describing different aspects of the data.- Parameters:
profileFlags- map of flag names to flag values
-
getProfileCounts
public Map<String,Long> getProfileCounts()
Return the map of different profiling counts that have been calculated.- Returns:
- map of count name to count value
-
setProfileCounts
public void setProfileCounts(Map<String,Long> profileCounts)
Set up the map of different profiling counts that have been calculated.- Parameters:
profileCounts- map of count name to count value
-
getValueList
public List<String> getValueList()
Return the list of values found in the data field.- Returns:
- list of values
-
setValueList
public void setValueList(List<String> valueList)
Set up the list of values found in the data field.- Parameters:
valueList- list of values
-
getValueCount
public Map<String,Integer> getValueCount()
Return a map of values to value count for the data field.- Returns:
- map of values to value count
-
setValueCount
public void setValueCount(Map<String,Integer> valueCount)
Set up a map of values to value count for the data field.- Parameters:
valueCount- map of values to value count
-
getValueRangeFrom
public String getValueRangeFrom()
Return the lowest value of the data stored in this data field.- Returns:
- string version of the value.
-
setValueRangeFrom
public void setValueRangeFrom(String valueRangeFrom)
Set up the lowest value of the data stored in this data field.- Parameters:
valueRangeFrom- string version of the value.
-
getValueRangeTo
public String getValueRangeTo()
Return the upper value of the data stored in this data field.- Returns:
- string version of the value.
-
setValueRangeTo
public void setValueRangeTo(String valueRangeTo)
Set up the upper value of the data stored in this data field.- Parameters:
valueRangeTo- string version of the value.
-
getAverageValue
public String getAverageValue()
Return the average (mean) value of the values stored in the data field.- Returns:
- string version of the value.
-
setAverageValue
public void setAverageValue(String averageValue)
Set up the average (mean) value of the values stored in the data field.- Parameters:
averageValue- string version of the value.
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classDataFieldAnnotation- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAnnotation- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Create a hash code for this element type.- Overrides:
hashCodein classAnnotation- Returns:
- int hash code
-
-