Record Class StreamSource
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase7.generator.StreamSource
- Record Components:
iteratorSetup- the iterator being consumed, with its collection metadataelementType- the type of element flowing out of itsourceUnbounded- true when the source may never terminate, so it cannot be fully drained
record StreamSource(IteratorSetup iteratorSetup, ISymbol elementType, boolean sourceUnbounded)
extends Record
What a pipeline is reading from: the iterator, the type of element it yields, and whether that
source can go on forever.
These three are asked for together by every buffering stage, because the decision each makes turns on all three at once - an unbounded source cannot be drained into a buffer, so group/split/sort must either window it or reject it.
-
Constructor Summary
ConstructorsConstructorDescriptionStreamSource(IteratorSetup iteratorSetup, ISymbol elementType, boolean sourceUnbounded) Creates an instance of aStreamSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theelementTyperecord 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 theiteratorSetuprecord component.booleanReturns the value of thesourceUnboundedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StreamSource
StreamSource(IteratorSetup iteratorSetup, ISymbol elementType, boolean sourceUnbounded) Creates an instance of aStreamSourcerecord class.- Parameters:
iteratorSetup- the value for theiteratorSetuprecord componentelementType- the value for theelementTyperecord componentsourceUnbounded- the value for thesourceUnboundedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
iteratorSetup
Returns the value of theiteratorSetuprecord component.- Returns:
- the value of the
iteratorSetuprecord component
-
elementType
Returns the value of theelementTyperecord component.- Returns:
- the value of the
elementTyperecord component
-
sourceUnbounded
public boolean sourceUnbounded()Returns the value of thesourceUnboundedrecord component.- Returns:
- the value of the
sourceUnboundedrecord component
-