Record Class PropertyStats
java.lang.Object
java.lang.Record
com.evolveum.midpoint.ninja.action.stats.PropertyStats
- All Implemented Interfaces:
PrismTransformableRecord
public record PropertyStats(String path, float multiValuedRatio, float missingValuesRatio, @Nullable Float cardinality, @Nullable CategoriesDistribution distribution)
extends Record
implements PrismTransformableRecord
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyStats(String path, float multiValuedRatio, float missingValuesRatio, @Nullable Float cardinality, @Nullable CategoriesDistribution distribution) Creates an instance of aPropertyStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionasPrismContainerValue(ItemFactory itemFactory) @Nullable FloatReturns the value of thecardinalityrecord component.@Nullable CategoriesDistributionReturns the value of thedistributionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatReturns the value of themissingValuesRatiorecord component.floatReturns the value of themultiValuedRatiorecord component.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PropertyStats
public PropertyStats(String path, float multiValuedRatio, float missingValuesRatio, @Nullable @Nullable Float cardinality, @Nullable @Nullable CategoriesDistribution distribution) Creates an instance of aPropertyStatsrecord class.- Parameters:
path- the value for thepathrecord componentmultiValuedRatio- the value for themultiValuedRatiorecord componentmissingValuesRatio- the value for themissingValuesRatiorecord componentcardinality- the value for thecardinalityrecord componentdistribution- the value for thedistributionrecord component
-
-
Method Details
-
asPrismContainerValue
public PrismContainerValue<Containerable> asPrismContainerValue(ItemFactory itemFactory) throws SchemaException - Specified by:
asPrismContainerValuein interfacePrismTransformableRecord- Throws:
SchemaException
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
multiValuedRatio
public float multiValuedRatio()Returns the value of themultiValuedRatiorecord component.- Returns:
- the value of the
multiValuedRatiorecord component
-
missingValuesRatio
public float missingValuesRatio()Returns the value of themissingValuesRatiorecord component.- Returns:
- the value of the
missingValuesRatiorecord component
-
cardinality
Returns the value of thecardinalityrecord component.- Returns:
- the value of the
cardinalityrecord component
-
distribution
Returns the value of thedistributionrecord component.- Returns:
- the value of the
distributionrecord component
-