Record Class StorageResult.PartialFailureResult<T>
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.common.model.data.StorageResult.PartialFailureResult<T>
- Type Parameters:
T- the data type.- Record Components:
qualityCode- the quality of the operation.successfulData- the data that was stored.failedData- the data that failed to store.error- the exception that occurred, if any.unchangedData- the subset ofsuccessfulDatathe engine already held and did not write.
- All Implemented Interfaces:
StorageResult<T>
- Enclosing interface:
StorageResult<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface StorageResult
StorageResult.ExceptionResult<T>, StorageResult.FailureResult<T>, StorageResult.NoneResult<T>, StorageResult.PartialFailureResult<T>, StorageResult.SuccessResult<T>, StorageResult.Type -
Constructor Summary
ConstructorsConstructorDescriptionPartialFailureResult(QualityCode qualityCode, List<T> successfulData, List<T> failedData, @Nullable Exception error) PartialFailureResult(QualityCode qualityCode, List<T> successfulData, List<T> failedData, Optional<Exception> error, List<T> unchangedData) Creates an instance of aPartialFailureResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.Returns the value of thefailedDatarecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thequalityCoderecord component.Returns the value of thesuccessfulDatarecord component.final StringtoString()Returns a string representation of this record class.type()Returns the kind of result.Returns the value of theunchangedDatarecord component.
-
Constructor Details
-
PartialFailureResult
public PartialFailureResult(QualityCode qualityCode, List<T> successfulData, List<T> failedData, Optional<Exception> error, List<T> unchangedData) Creates an instance of aPartialFailureResultrecord class.- Parameters:
qualityCode- the value for thequalityCoderecord componentsuccessfulData- the value for thesuccessfulDatarecord componentfailedData- the value for thefailedDatarecord componenterror- the value for theerrorrecord componentunchangedData- the value for theunchangedDatarecord component
-
PartialFailureResult
-
-
Method Details
-
type
Description copied from interface:StorageResultReturns the kind of result.- Specified by:
typein interfaceStorageResult<T>- Returns:
- the result type.
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
qualityCode
Returns the value of thequalityCoderecord component.- Specified by:
qualityCodein interfaceStorageResult<T>- Returns:
- the value of the
qualityCoderecord component
-
successfulData
Returns the value of thesuccessfulDatarecord component.- Specified by:
successfulDatain interfaceStorageResult<T>- Returns:
- the value of the
successfulDatarecord component
-
failedData
Returns the value of thefailedDatarecord component.- Specified by:
failedDatain interfaceStorageResult<T>- Returns:
- the value of the
failedDatarecord component
-
error
-
unchangedData
Returns the value of theunchangedDatarecord component.- Specified by:
unchangedDatain interfaceStorageResult<T>- Returns:
- the value of the
unchangedDatarecord component
-