Class JsonFileIterator

java.lang.Object
com.oracle.labs.mlrg.olcut.util.IOSpliterator<ColumnarIterator.Row>
org.tribuo.data.columnar.ColumnarIterator
org.tribuo.json.JsonFileIterator
All Implemented Interfaces:
AutoCloseable, Iterator<ColumnarIterator.Row>, Spliterator<ColumnarIterator.Row>

public class JsonFileIterator extends ColumnarIterator implements AutoCloseable
An iterator for JSON format files converting them into a format suitable for RowProcessor.
  • Constructor Details

    • JsonFileIterator

      public JsonFileIterator(Reader reader)
      Builds a JsonFileIterator for the supplied Reader.
      Parameters:
      reader - The source to read.
    • JsonFileIterator

      public JsonFileIterator(URI dataFile) throws IOException
      Builds a CSVIterator for the supplied URI.
      Parameters:
      dataFile - The source to read.
      Throws:
      IOException - thrown if the file is not readable in some way.
  • Method Details