com.ecwid.clickhouse.raw.RawIterator.kt Maven / Gradle / Ivy
package com.ecwid.clickhouse.raw
import com.google.gson.stream.JsonReader
internal class RawIterator(
private val jsonReader: JsonReader,
private val rawResponse: RawResponse
) : AbstractIterator() {
override fun computeNext() {
if (jsonReader.hasNext()) {
val next = readRawRow(jsonReader, rawResponse.getMeta())
setNext(next)
} else {
done()
rawResponse.completeIteration()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy