Record Class SampleDataDescriptor
java.lang.Object
java.lang.Record
ai.pipestream.module.pipelineprobe.sampledata.SampleDataDescriptor
- Record Components:
artifactId- Maven artifactId / repo name, e.g.chunker-input-courtstage- pipeline step this dataset is the INPUT to, e.g.chunkerproducedByModule- module that produced these docs (the previous step), e.g.echoconsumedByModule- module that consumes these docs (what this dataset stresses)captureNode- engine graph_address_id the docs were captured atcrawlId- crawl run id the dataset was harvested fromsourceDocCount- number of source docs in the dataset (the expected per-step count)format- human note on the on-disk formatpath- classpath path template, e.g.fixtures/court/chunker/doc_NNNN.pb.gzpairing- note on cross-step doc_NNNN pairing
public record SampleDataDescriptor(String artifactId, String stage, String producedByModule, String consumedByModule, String captureNode, String crawlId, int sourceDocCount, String format, String path, String pairing)
extends Record
One sample-data fixture jar's self-description, read from its
META-INF/pipestream-sample-data.json resource.
Each <step>-input-court jar (and any future fixture jar following
the same convention) ships exactly one of these — a passive, dependency-free
descriptor. The SampleDataRegistry discovers them on the classpath at
startup so the harness knows, per dataset: which step it feeds, how many docs
to expect, which crawl produced it, and where the .pb.gz files live.
Unknown fields are ignored so new descriptor keys don't break older consumers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactIdrecord component.Returns the value of thecaptureNoderecord component.Returns the value of theconsumedByModulerecord component.crawlId()Returns the value of thecrawlIdrecord component.final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.pairing()Returns the value of thepairingrecord component.path()Returns the value of thepathrecord component.Returns the value of theproducedByModulerecord component.Classpath directory holding the per-doc files (derived frompath).intReturns the value of thesourceDocCountrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SampleDataDescriptor
public SampleDataDescriptor(String artifactId, String stage, String producedByModule, String consumedByModule, String captureNode, String crawlId, int sourceDocCount, String format, String path, String pairing) Creates an instance of aSampleDataDescriptorrecord class.- Parameters:
artifactId- the value for theartifactIdrecord componentstage- the value for thestagerecord componentproducedByModule- the value for theproducedByModulerecord componentconsumedByModule- the value for theconsumedByModulerecord componentcaptureNode- the value for thecaptureNoderecord componentcrawlId- the value for thecrawlIdrecord componentsourceDocCount- the value for thesourceDocCountrecord componentformat- the value for theformatrecord componentpath- the value for thepathrecord componentpairing- the value for thepairingrecord component
-
-
Method Details
-
resourceDir
Classpath directory holding the per-doc files (derived frompath).- Returns:
- the directory portion of
path(everything before the last'/'), or the empty string ifpathisnullor contains no slash
-
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. -
artifactId
Returns the value of theartifactIdrecord component.- Returns:
- the value of the
artifactIdrecord component
-
stage
-
producedByModule
Returns the value of theproducedByModulerecord component.- Returns:
- the value of the
producedByModulerecord component
-
consumedByModule
Returns the value of theconsumedByModulerecord component.- Returns:
- the value of the
consumedByModulerecord component
-
captureNode
Returns the value of thecaptureNoderecord component.- Returns:
- the value of the
captureNoderecord component
-
crawlId
-
sourceDocCount
public int sourceDocCount()Returns the value of thesourceDocCountrecord component.- Returns:
- the value of the
sourceDocCountrecord component
-
format
-
path
-
pairing
-