Class NamedEntityRedactionResults
- java.lang.Object
-
- com.nuix.superutilities.namedentities.NamedEntityRedactionResults
-
public class NamedEntityRedactionResults extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NamedEntityRedactionResults()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContentTextUpdatedCount()
Gets a count of items which had a redacted custom metadata field recorded for the item's content text.int
getUpdatedItemCount()
Gets the number of items which had at least one redaction recorded to a custom metadata field.java.util.Map<java.lang.String,java.lang.Integer>
getUpdatedProperties()
Gets a map of properties by name and how many times each property had a redacted custom metadata field recorded for it.java.util.Set<java.lang.String>
getUpdatedPropertyNames()
Gets a listing of metadata properties that had a redacted custom metadat field recorded for them at least once.void
mergeOther(NamedEntityRedactionResults other)
Combines counts from another instance into this instance.void
tallyContentTextUdpated()
Adds 1 to count of items which had their content text redacted, as obtained by callinggetContentTextUpdatedCount()
.void
tallyUpdatedItem()
Adds 1 to updated item count, as obtained by callinggetUpdatedItemCount()
.void
tallyUpdatedProperty(java.lang.String propertyName)
Records that a particular property was recorded and adds 1 to count of times that property was updated.java.lang.String
toString()
Generates a string with a handy summary of the results represented by this instance.
-
-
-
Method Detail
-
tallyUpdatedItem
public void tallyUpdatedItem()
Adds 1 to updated item count, as obtained by callinggetUpdatedItemCount()
.
-
tallyContentTextUdpated
public void tallyContentTextUdpated()
Adds 1 to count of items which had their content text redacted, as obtained by callinggetContentTextUpdatedCount()
.
-
tallyUpdatedProperty
public void tallyUpdatedProperty(java.lang.String propertyName)
Records that a particular property was recorded and adds 1 to count of times that property was updated. Count of updated properties can later be obtained by callinggetUpdatedProperties()
. If you are just looking for list of poperty names which were updated you can callgetUpdatedPropertyNames()
.- Parameters:
propertyName
- The property name to increment the tally for
-
getUpdatedItemCount
public int getUpdatedItemCount()
Gets the number of items which had at least one redaction recorded to a custom metadata field.- Returns:
- The number of items which had at least one redaction recorded to a custom metadata field.
-
getUpdatedProperties
public java.util.Map<java.lang.String,java.lang.Integer> getUpdatedProperties()
Gets a map of properties by name and how many times each property had a redacted custom metadata field recorded for it.- Returns:
- A map of properties by name and how many times each property had a redacted custom metadata field recorded for it.
-
getUpdatedPropertyNames
public java.util.Set<java.lang.String> getUpdatedPropertyNames()
Gets a listing of metadata properties that had a redacted custom metadat field recorded for them at least once.- Returns:
- A listing of metadata properties that had a redacted custom metadat field recorded for them at least once.
-
getContentTextUpdatedCount
public int getContentTextUpdatedCount()
Gets a count of items which had a redacted custom metadata field recorded for the item's content text.- Returns:
- A count of items which had a redacted custom metadata field recorded for the item's content text.
-
mergeOther
public void mergeOther(NamedEntityRedactionResults other)
Combines counts from another instance into this instance. Used byNamedEntityUtility.recordRedactedCopies(java.util.Collection, NamedEntityRedactionSettings)
to coalesce results generated from processing individual items into a final overall result.- Parameters:
other
- The other NamedEntityRedactionResults instance to merge into this instance
-
toString
public java.lang.String toString()
Generates a string with a handy summary of the results represented by this instance.- Overrides:
toString
in classjava.lang.Object
-
-