public static class KustoResultMapper.Builder<R> extends Object
| Modifier and Type | Method and Description |
|---|---|
<C> KustoResultMapper.Builder<R> |
addColumn(KustoType<C> type,
int ordinal,
boolean isNullable,
BiConsumer<R,C> setter)
Add a column by ordinal (column index).
|
<C> KustoResultMapper.Builder<R> |
addColumn(KustoType<C> type,
String name,
boolean isNullable,
BiConsumer<R,C> setter)
Add a column by name.
|
<C> KustoResultMapper.Builder<R> |
addColumn(KustoType<C> type,
String name,
int ordinal,
boolean isNullable,
BiConsumer<R,C> setter)
Add a column by name and ordinal (column index).
|
KustoResultMapper<R> |
build() |
public <C> KustoResultMapper.Builder<R> addColumn(KustoType<C> type, String name, boolean isNullable, BiConsumer<R,C> setter)
KustoResultMapper.extractList(KustoResultSetTable) or KustoResultMapper.extractSingle(KustoResultSetTable)C - Java type returned by the column (based on the KustoType parameter)type - KustoType returned by the columnname - column nameisNullable - whether the column may contains null valuessetter - function for setting a cell value into a pojo instanceKustoResultMapper.Builder of the provided type of the object being populated (determined by the object the setter belongs to)public <C> KustoResultMapper.Builder<R> addColumn(KustoType<C> type, String name, int ordinal, boolean isNullable, BiConsumer<R,C> setter)
KustoResultSetTable.C - Java type returned by the column (based on the KustoType parameter)type - KustoType returned by the columnname - column nameordinal - index of the column in theisNullable - whether the column may contains null valuessetter - function for setting a cell value into a pojo instanceKustoResultMapper.Builder of the provided type of the object being populated (determined by the object the setter belongs to)public <C> KustoResultMapper.Builder<R> addColumn(KustoType<C> type, int ordinal, boolean isNullable, BiConsumer<R,C> setter)
C - Java type returned by the column (based on the KustoType parameter)type - KustoType returned by the columnordinal - index of the column in theisNullable - whether the column may contains null valuessetter - function for setting a cell value into a pojo instanceKustoResultMapper.Builder of the provided type of the object being populated (determined by the object the setter belongs to)public KustoResultMapper<R> build()
Copyright © 2023. All rights reserved.