class PrevBlockInfoExtractor {

    public PrevBlockData extractPrevBlockData(int height, int limit) {
        return PrevBlockData.builder()
            .generatorIds(Convert.toObjectLongArray(extractObjects(height, limit, "generator_id")))
            .prevBlockTimeouts(Convert.toObjectIntArray(extractObjects(height, limit, "timeout")))
            .prevBlockTimestamps(Convert.toObjectIntArray(extractObjects(height, limit, "timestamp")))
            .build();
    }

    @Inject public  PrevBlockInfoExtractor(DatabaseManager databaseManager);

}