Record Class StreamingParallelParsingCoordinator.WarningSinks
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.datasources.StreamingParallelParsingCoordinator.WarningSinks
- Record Components:
partialResultsWarningSink- receives a single client-visible message if a non-strictErrorPolicytruncates the read at amax_record_sizecap-hit — a genuine partial-results signal. Production passesAsyncExternalSourceBuffer.recordWarning(java.lang.String)so the operator can re-emit it on the driver thread (the segmentator runs on a forked worker whose response headers never reach the client — see #835).informationalWarningSink- the unrelated, generic per-format relay (seeFormatReadContext.informationalWarningSink()) for warnings a chunk's own reader raises while decoding (e.g. a malformed row skipped or a field null-filled) — these do not carry the same "fewer records than the source held" guarantee, so they must not be conflated withpartialResultsWarningSink. Production passesAsyncExternalSourceBuffer.recordInformationalWarning(java.lang.String).
- Enclosing class:
StreamingParallelParsingCoordinator
public static record StreamingParallelParsingCoordinator.WarningSinks(Consumer<String> partialResultsWarningSink, Consumer<String> informationalWarningSink)
extends Record
Bundles the two independent, easily-confused warning relays a streaming parallel read may need
to thread onto worker threads, as a single typed parameter — two bare adjacent
Consumer<String> parameters/fields invite silent transposition at a call site.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionWarningSinks(Consumer<String> partialResultsWarningSink, Consumer<String> informationalWarningSink) Creates an instance of aWarningSinksrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinformationalWarningSinkrecord component.Returns the value of thepartialResultsWarningSinkrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
-
Constructor Details
-
WarningSinks
public WarningSinks(@Nullable Consumer<String> partialResultsWarningSink, @Nullable Consumer<String> informationalWarningSink) Creates an instance of aWarningSinksrecord class.- Parameters:
partialResultsWarningSink- the value for thepartialResultsWarningSinkrecord componentinformationalWarningSink- the value for theinformationalWarningSinkrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
partialResultsWarningSink
Returns the value of thepartialResultsWarningSinkrecord component.- Returns:
- the value of the
partialResultsWarningSinkrecord component
-
informationalWarningSink
Returns the value of theinformationalWarningSinkrecord component.- Returns:
- the value of the
informationalWarningSinkrecord component
-