Record Class GeneratorSourceConfig
java.lang.Object
java.lang.Record
com.darkcollective.relix.lang.ast.source.GeneratorSourceConfig
- Record Components:
generatorName- the registered generator name (e.g."Range"); must not be blankargs- the raw, generator-specific arguments; must not be null
- All Implemented Interfaces:
SourceConfig
public record GeneratorSourceConfig(String generatorName, Map<String,String> args)
extends Record
implements SourceConfig
Configuration for a generator source — a leaf relation whose rows are
produced by engine code rather than read from a file or database.
Introduced by a source R from generator { name: "Range", … }
declaration. The generator owns its schema (it is resolved from the
generator registry by generatorName, not declared in the script), so
unlike the other source kinds this config carries no column list — only the
generator name and its raw string arguments (e.g. lo/hi/
step for Range). Each generator interprets the args it understands.
-
Constructor Summary
ConstructorsConstructorDescriptionGeneratorSourceConfig(String generatorName, Map<String, String> args) Creates an instance of aGeneratorSourceConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargs()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GeneratorSourceConfig
Creates an instance of aGeneratorSourceConfigrecord class.- Parameters:
generatorName- the value for thegeneratorNamerecord componentargs- the value for theargsrecord 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). -
generatorName
Returns the value of thegeneratorNamerecord component.- Returns:
- the value of the
generatorNamerecord component
-
args
Returns the value of theargsrecord component.- Returns:
- the value of the
argsrecord component
-