Record Class HistorianQueryRunner.Result
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.binding.HistorianQueryRunner.Result
- Enclosing interface:
HistorianQueryRunner
public static record HistorianQueryRunner.Result(QualifiedValue envelope, Map<String,Instant> perKeyTerminalTs, @Nullable AutoCloseable streamCloser)
extends Record
The outcome of a fetch: the envelope, the per-key terminal timestamps for cursor advancement,
and a closer for STREAMING resources.
perKeyTerminalTs is copied immutably.
streamCloser is null except for STREAMING, where it holds the live
RowToPublisherAdapter so the binding can cancel the pipeline on the next tick or on shutdown.-
Constructor Summary
ConstructorsConstructorDescriptionResult(QualifiedValue envelope, Map<String, Instant> perKeyTerminalTs) Creates a result with no stream closer, for non-STREAMING formats.Result(QualifiedValue envelope, Map<String, Instant> perKeyTerminalTs, @Nullable AutoCloseable streamCloser) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenvelope()Returns the value of theenveloperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theperKeyTerminalTsrecord component.@Nullable AutoCloseableReturns the value of thestreamCloserrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates a result with no stream closer, for non-STREAMING formats. -
Result
public Result(QualifiedValue envelope, Map<String, Instant> perKeyTerminalTs, @Nullable AutoCloseable streamCloser) Creates an instance of aResultrecord class.- Parameters:
envelope- the value for theenveloperecord componentperKeyTerminalTs- the value for theperKeyTerminalTsrecord componentstreamCloser- the value for thestreamCloserrecord component
-
-
Method Details
-
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). -
envelope
Returns the value of theenveloperecord component.- Returns:
- the value of the
enveloperecord component
-
perKeyTerminalTs
-
streamCloser
Returns the value of thestreamCloserrecord component.- Returns:
- the value of the
streamCloserrecord component
-