Class FormatReadContext.Builder
java.lang.Object
org.elasticsearch.xpack.esql.datasources.spi.FormatReadContext.Builder
- Enclosing class:
FormatReadContext
-
Method Summary
Modifier and TypeMethodDescriptionbatchSize(int batchSize) build()errorPolicy(ErrorPolicy errorPolicy) firstSplit(boolean firstSplit) informationalWarningSink(Consumer<String> informationalWarningSink) SeeFormatReadContext.informationalWarningSink(); passnullfor direct-to-HeaderWarning emission.lastSplit(boolean lastSplit) maxRecordBytes(int maxRecordBytes) projectedColumns(List<String> projectedColumns) readSchema(List<Attribute> readSchema) SeeFormatReadContext.readSchema(); passnullto fall back to per-file inference.recordAligned(boolean recordAligned) Marks the split as starting at a record boundary so line-oriented readers can skip the "trim leading partial record" workaround used for byte-range macro-splits.rowLimit(int rowLimit) splitStartByte(long splitStartByte) SeeFormatReadContext.splitStartByte(); the file-global byte offset of this split's start.stats(long baseOffset, long stripeSize, boolean fileFinal) Canonical-stripe addressing for per-stripe stats capture:baseOffsetis this read's first byte in file/decompressed coordinates,stripeSizethe grid (<= 0disables),fileFinalwhether this read reaches the file's true end (only the final read may mark its last stripe complete + terminal).statsColumnScope(StripeColumnScope statsColumnScope) Sets how much per-stripe statistics the read harvests (seeFormatReadContext.statsColumnScope()).
-
Method Details
-
projectedColumns
-
batchSize
-
rowLimit
-
errorPolicy
-
firstSplit
-
lastSplit
-
recordAligned
Marks the split as starting at a record boundary so line-oriented readers can skip the "trim leading partial record" workaround used for byte-range macro-splits. -
readSchema
SeeFormatReadContext.readSchema(); passnullto fall back to per-file inference. -
splitStartByte
SeeFormatReadContext.splitStartByte(); the file-global byte offset of this split's start. -
maxRecordBytes
-
stats
Canonical-stripe addressing for per-stripe stats capture:baseOffsetis this read's first byte in file/decompressed coordinates,stripeSizethe grid (<= 0disables),fileFinalwhether this read reaches the file's true end (only the final read may mark its last stripe complete + terminal). A pure stats overlay; never affects chunking or splitting. -
statsColumnScope
Sets how much per-stripe statistics the read harvests (seeFormatReadContext.statsColumnScope()).nullrestores theStripeColumnScope.PROJECTEDdefault. Orthogonal tostats(long, long, boolean). -
informationalWarningSink
public FormatReadContext.Builder informationalWarningSink(@Nullable Consumer<String> informationalWarningSink) SeeFormatReadContext.informationalWarningSink(); passnullfor direct-to-HeaderWarning emission. -
build
-