Class ResourceProfileAnnotation
java.lang.Object
org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation
org.odpi.openmetadata.frameworks.surveyaction.properties.DataFieldAnnotation
org.odpi.openmetadata.frameworks.surveyaction.properties.ResourceProfileAnnotation
DataProfileAnnotation holds properties that describe the characteristics of a specific field within a data source.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy clone constructor -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return the average (mean) value of the values stored in the data field.Return the name of the data type that the discovery service believes the field is.Return the name of the data format that the discovery service believes the field is.int
Return the length of the data field that has been deduced from the data stored.int
Return the precision of the data field that has been deduced from the data stored.int
Return the inferred scale used in other properties.int
Return the length of the data field.Return the map of different profiling counts that have been calculated.Return a set of relevant dates describing different aspects of the data.Return the map of different large profiling counts that have been calculated.Return the time that the profiler stopped gathering data.Return a set of boolean flags describing different aspects of the data.Return the map of properties that make up the profile.Return the list of property values filled out in this annotation.Return the time that the profiler started gathering data.Return a map of values to value count for the data field.Return the list of values found in the data field.Return the lowest value of the data stored in this data field.Return the upper value of the data stored in this data field.int
hashCode()
Create a hash code for this element type.void
setAverageValue
(String averageValue) Set up the average (mean) value of the values stored in the data field.void
setInferredDataType
(String inferredDataType) Set up the name of the data type that the discovery service believes the field is.void
setInferredFormat
(String inferredFormat) Set up the name of the data format that the discovery service believes the field is.void
setInferredLength
(int inferredLength) Set up the length of the data field that has been deduced from the data stored.void
setInferredPrecision
(int inferredPrecision) Set up the precision of the data field that has been deduced from the data stored.void
setInferredScale
(int inferredScale) Set up the inferred scale used in other properties.void
setLength
(int length) Set up the length of the data field.void
setProfileCounts
(Map<String, Long> profileCounts) Set up the map of different profiling counts that have been calculated.void
setProfileDates
(Map<String, Date> profileDates) Set up a set of relevant dates describing different aspects of the data.void
setProfileDoubles
(Map<String, Double> profileDoubles) Set up the map of different large profiling counts that have been calculated.void
setProfileEndDate
(Date profileEndDate) Set up the time that the profiler stopped gathering data.void
setProfileFlags
(Map<String, Boolean> profileFlags) Set up a set of boolean flags describing different aspects of the data.void
setProfileProperties
(Map<String, String> profileProperties) Set up the map of properties that make up the profile.void
setProfilePropertyNames
(List<String> profilePropertyNames) Set up the list of property values filled out in this annotation.void
setProfileStartDate
(Date profileStartDate) Set Up the time that the profiler started gathering data.void
setValueCount
(Map<String, Integer> valueCount) Set up a map of values to value count for the data field.void
setValueList
(List<String> valueList) Set up the list of values found in the data field.void
setValueRangeFrom
(String valueRangeFrom) Set up the lowest value of the data stored in this data field.void
setValueRangeTo
(String valueRangeTo) Set up the upper value of the data stored in this data field.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation
getAdditionalProperties, getAnalysisStep, getAnnotationStatus, getAnnotationSubjects, getAnnotationType, getConfidenceLevel, getExplanation, getExpression, getJsonProperties, getReviewComment, getReviewDate, getSteward, getSummary, setAdditionalProperties, setAnalysisStep, setAnnotationStatus, setAnnotationSubjects, setAnnotationType, setConfidenceLevel, setExplanation, setExpression, setJsonProperties, setReviewComment, setReviewDate, setSteward, setSummary
Methods inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getOpenMetadataTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setOpenMetadataTypeName
-
Constructor Details
-
ResourceProfileAnnotation
public ResourceProfileAnnotation()Default constructor -
ResourceProfileAnnotation
Copy clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getProfilePropertyNames
Return the list of property values filled out in this annotation.- Returns:
- list of property names
-
setProfilePropertyNames
Set up the list of property values filled out in this annotation.- Parameters:
profilePropertyNames
- list of property names
-
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
Return the name of the data type that the discovery service believes the field is.- Returns:
- string name
-
setInferredDataType
Set up the name of the data type that the discovery service believes the field is.- Parameters:
inferredDataType
- string name
-
getInferredFormat
Return the name of the data format that the discovery service believes the field is.- Returns:
- string name
-
setInferredFormat
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
-
getProfileStartDate
Return the time that the profiler started gathering data.- Returns:
- date
-
setProfileStartDate
Set Up the time that the profiler started gathering data.- Parameters:
profileStartDate
- date
-
getProfileEndDate
Return the time that the profiler stopped gathering data.- Returns:
- date
-
setProfileEndDate
Set up the time that the profiler stopped gathering data.- Parameters:
profileEndDate
- date
-
getProfileProperties
Return the map of properties that make up the profile.- Returns:
- property map
-
setProfileProperties
Set up the map of properties that make up the profile.- Parameters:
profileProperties
- property map
-
getProfileFlags
Return a set of boolean flags describing different aspects of the data.- Returns:
- map of flag names to flag values
-
setProfileFlags
Set up a set of boolean flags describing different aspects of the data.- Parameters:
profileFlags
- map of flag names to flag values
-
getProfileDates
Return a set of relevant dates describing different aspects of the data.- Returns:
- map of names to date values
-
setProfileDates
Set up a set of relevant dates describing different aspects of the data.- Parameters:
profileDates
- map of names to date values
-
getProfileCounts
Return the map of different profiling counts that have been calculated.- Returns:
- map of count name to count value
-
setProfileCounts
Set up the map of different profiling counts that have been calculated.- Parameters:
profileCounts
- map of count name to count value
-
getProfileDoubles
Return the map of different large profiling counts that have been calculated.- Returns:
- map of count name to count value
-
setProfileDoubles
Set up the map of different large profiling counts that have been calculated.- Parameters:
profileDoubles
- map of count name to count value
-
getValueList
Return the list of values found in the data field.- Returns:
- list of values
-
setValueList
Set up the list of values found in the data field.- Parameters:
valueList
- list of values
-
getValueCount
Return a map of values to value count for the data field.- Returns:
- map of values to value count
-
setValueCount
Set up a map of values to value count for the data field.- Parameters:
valueCount
- map of values to value count
-
getValueRangeFrom
Return the lowest value of the data stored in this data field.- Returns:
- string version of the value.
-
setValueRangeFrom
Set up the lowest value of the data stored in this data field.- Parameters:
valueRangeFrom
- string version of the value.
-
getValueRangeTo
Return the upper value of the data stored in this data field.- Returns:
- string version of the value.
-
setValueRangeTo
Set up the upper value of the data stored in this data field.- Parameters:
valueRangeTo
- string version of the value.
-
getAverageValue
Return the average (mean) value of the values stored in the data field.- Returns:
- string version of the value.
-
setAverageValue
Set up the average (mean) value of the values stored in the data field.- Parameters:
averageValue
- string version of the value.
-
toString
Standard toString method.- Overrides:
toString
in classDataFieldAnnotation
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classAnnotation
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classAnnotation
- Returns:
- int hash code
-