Class KustoResultMapper.Builder<R>

    • Constructor Detail

      • Builder

        public Builder​(Supplier<R> objConstructor)
    • Method Detail

      • addColumn

        public <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). The ordinal value will be preferred for extracting values from the KustoResultSetTable.
        Type Parameters:
        C - Java type returned by the column (based on the KustoType parameter)
        Parameters:
        type - KustoType returned by the column
        name - column name
        ordinal - index of the column in the
        isNullable - whether the column may contains null values
        setter - function for setting a cell value into a pojo instance
        Returns:
        KustoResultMapper.Builder of the provided type of the object being populated (determined by the object the setter belongs to)
      • addColumn

        public <C> KustoResultMapper.Builder<R> addColumn​(KustoType<C> type,
                                                          int ordinal,
                                                          boolean isNullable,
                                                          BiConsumer<R,​C> setter)
        Add a column by ordinal (column index).
        Type Parameters:
        C - Java type returned by the column (based on the KustoType parameter)
        Parameters:
        type - KustoType returned by the column
        ordinal - index of the column in the
        isNullable - whether the column may contains null values
        setter - function for setting a cell value into a pojo instance
        Returns:
        KustoResultMapper.Builder of the provided type of the object being populated (determined by the object the setter belongs to)