public class JsonFileIterator extends ColumnarIterator implements AutoCloseable
RowProcessor
.ColumnarIterator.Row
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,T_CONS,T_SPLITR extends Spliterator.OfPrimitive<T,T_CONS,T_SPLITR>>
currentRow, fields
DEFAULT_BATCH_SIZE, DEFAULT_CHARACTERISTICS
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
Constructor and Description |
---|
JsonFileIterator(Reader reader)
Builds a JsonFileIterator for the supplied Reader.
|
JsonFileIterator(URI dataFile)
Builds a CSVIterator for the supplied URI.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Optional<ColumnarIterator.Row> |
getRow()
Returns the next row of data based on internal state stored by the implementor, or
Optional.empty()
if there is no more data. |
forEachRemaining, getFields, hasNext, next, tryAdvance
characteristics, estimateSize, trySplit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComparator, getExactSizeIfKnown, hasCharacteristics
public JsonFileIterator(Reader reader)
reader
- The source to read.public JsonFileIterator(URI dataFile) throws IOException
dataFile
- The source to read.IOException
- thrown if the file is not readable in some way.protected Optional<ColumnarIterator.Row> getRow()
ColumnarIterator
Optional.empty()
if there is no more data.getRow
in class ColumnarIterator
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.