Package com.pain001.sdk
Record Class LossReport
java.lang.Object
java.lang.Record
com.pain001.sdk.LossReport
- Record Components:
face- the face nametotalSourceElements- leaves in the source documentmappedCount- leaves the projection carriedunmappedCount- leaves it did not carryisLossless- whether every leaf was carriedlossRatio- the share of source leaves not carriedmappedPaths- the carried pathsunmappedPaths- the paths not carried
public record LossReport(String face, int totalSourceElements, int mappedCount, int unmappedCount, boolean isLossless, double lossRatio, List<String> mappedPaths, List<String> unmappedPaths)
extends Record
What a face projection carried and what it did not, by indexed path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.face()Returns the value of thefacerecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisLosslessrecord component.doubleReturns the value of thelossRatiorecord component.intReturns the value of themappedCountrecord component.Returns the value of themappedPathsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalSourceElementsrecord component.intReturns the value of theunmappedCountrecord component.Returns the value of theunmappedPathsrecord component.
-
Constructor Details
-
Method Details
-
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 '=='. -
face
Returns the value of thefacerecord component.- Returns:
- the value of the
facerecord component
-
totalSourceElements
public int totalSourceElements()Returns the value of thetotalSourceElementsrecord component.- Returns:
- the value of the
totalSourceElementsrecord component
-
mappedCount
public int mappedCount()Returns the value of themappedCountrecord component.- Returns:
- the value of the
mappedCountrecord component
-
unmappedCount
public int unmappedCount()Returns the value of theunmappedCountrecord component.- Returns:
- the value of the
unmappedCountrecord component
-
isLossless
public boolean isLossless()Returns the value of theisLosslessrecord component.- Returns:
- the value of the
isLosslessrecord component
-
lossRatio
public double lossRatio()Returns the value of thelossRatiorecord component.- Returns:
- the value of the
lossRatiorecord component
-
mappedPaths
Returns the value of themappedPathsrecord component.- Returns:
- the value of the
mappedPathsrecord component
-
unmappedPaths
Returns the value of theunmappedPathsrecord component.- Returns:
- the value of the
unmappedPathsrecord component
-