All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.ydb.query.result.QueryResultPart Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package tech.ydb.query.result;

import tech.ydb.proto.ValueProtos;
import tech.ydb.table.result.ResultSetReader;
import tech.ydb.table.result.impl.ProtoValueReaders;

/**
 *
 * @author Aleksandr Gorshenin
 */
public class QueryResultPart {
    private final long index;
    private final ValueProtos.ResultSet resultSet;

    public QueryResultPart(long index, ValueProtos.ResultSet resultSet) {
        this.index = index;
        this.resultSet = resultSet;
    }

    public long getResultSetIndex() {
        return this.index;
    }

    public int getResultSetRowsCount() {
        return this.resultSet.getRowsCount();
    }

    public ResultSetReader getResultSetReader() {
        return ProtoValueReaders.forResultSet(resultSet);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy