use of org.apache.parquet.cli.util.RuntimeIOException in project parquet-mr by apache.
the class AvroJson method parser.
public static Iterator<JsonNode> parser(final InputStream stream) {
try {
JsonParser parser = FACTORY.createParser(stream);
parser.setCodec(new ObjectMapper());
return parser.readValuesAs(JsonNode.class);
} catch (IOException e) {
throw new RuntimeIOException("Cannot read from stream", e);
}
}
Aggregations