public final class ProducerOptions extends Object
Every field of Option has one class:
ProducerOptions.Kind.FIXED: the producer sets it. Anything that hides an input, picks a candidate or changes what
the runtime graph contains is fixed, because a digest only records a suppression, it does not repair it.ProducerOptions.Kind.CALLER: the caller decides it (ProducerConfig); it enters
effectiveOptionsDigest.ProducerOptions.Kind.IRRELEVANT: it changes only legacy output, progress reporting or delegation, which the producer
never uses.ProducerOptionsTest fails when Option gains a field this table does not classify.
| Modifier and Type | Class and Description |
|---|---|
static class |
ProducerOptions.Kind
The class of an
Option field. |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
effectiveOptions(ProducerConfig config)
The effective analysis options as a JSON object: every
ProducerOptions.Kind.FIXED and ProducerOptions.Kind.CALLER field of the
option a run uses, plus the producer's own settings that change what a document asserts. |
static String |
effectiveOptionsDigest(ProducerConfig config)
effectiveOptionsDigest: SHA-256 of the JCS form of effectiveOptions(gudusoft.gsqlparser.lineage.v2.producer.ProducerConfig). |
static Map<String,ProducerOptions.Kind> |
kinds()
The class of every
Option field this table knows. |
static Option |
option(ProducerConfig config)
The
Option a production run analyses with. |
public static Map<String,ProducerOptions.Kind> kinds()
Option field this table knows.public static Option option(ProducerConfig config)
Option a production run analyses with.public static Map<String,Object> effectiveOptions(ProducerConfig config)
ProducerOptions.Kind.FIXED and ProducerOptions.Kind.CALLER field of the
option a run uses, plus the producer's own settings that change what a document asserts. Field names carry
the gsp. prefix; values are JSON scalars or sorted lists.public static String effectiveOptionsDigest(ProducerConfig config)
effectiveOptionsDigest: SHA-256 of the JCS form of effectiveOptions(gudusoft.gsqlparser.lineage.v2.producer.ProducerConfig).