use of io.georocket.storage.JsonChunkMeta in project georocket by georocket.
the class JsonSplitter method makeResult.
/**
* Make chunk and meta data
* @param pos the position of the end of the chunk to create
* @return the chunk and meta data
*/
protected Result<JsonChunkMeta> makeResult(int pos) {
resultsCreated = true;
String chunk = window.getChars(mark, pos);
window.advanceTo(pos);
JsonChunkMeta meta = new JsonChunkMeta(lastFieldName, 0, chunk.length());
return new Result<>(chunk, meta);
}
Aggregations