Class SplitStats.Builder
java.lang.Object
org.elasticsearch.xpack.esql.datasources.SplitStats.Builder
- Enclosing class:
SplitStats
Builder for constructing
SplitStats instances. Columns are added via
addColumn(String) which returns an ordinal for subsequent stat calls.
Path segments are deduplicated automatically.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintAdds a column and returns its ordinal.intAdds a column with all stats in a single call and returns its ordinal.build()maxUnservable(int columnOrdinal) Marks the column's MAX as poisoned (unservable): a fold found it incompatible, so it must not be served.minUnservable(int columnOrdinal) Marks the column's MIN as poisoned (unservable): a fold found it incompatible, so it must not be served.nullCount(int columnOrdinal, long nullCount) rowCount(long rowCount) sizeBytes(int columnOrdinal, long sizeBytes) sizeInBytes(long sizeInBytes) valueCount(int columnOrdinal, long valueCount)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
rowCount
-
sizeInBytes
-
addColumn
Adds a column and returns its ordinal. The column name is split on '.' and each segment is deduplicated in the path-segment dictionary.- Throws:
IllegalArgumentException- if a column with the same name was already added
-
addColumn
public int addColumn(String name, long nullCount, @Nullable Object min, @Nullable Object max, long sizeBytes) Adds a column with all stats in a single call and returns its ordinal. Use-1for unknown longs andnullfor unknown objects.- Throws:
IllegalArgumentException- if a column with the same name was already added
-
nullCount
-
valueCount
-
min
-
max
-
sizeBytes
-
minUnservable
Marks the column's MIN as poisoned (unservable): a fold found it incompatible, so it must not be served. -
maxUnservable
Marks the column's MAX as poisoned (unservable): a fold found it incompatible, so it must not be served. -
build
-