Class FastLineIterator<T>

java.lang.Object
org.apache.druid.data.input.impl.FastLineIterator<T>
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<T>, CloseableIterator<T>
Direct Known Subclasses:
FastLineIterator.Bytes, FastLineIterator.Strings

public abstract class FastLineIterator<T> extends Object implements CloseableIterator<T>
Like the Apache Commons LineIterator, but faster. Use FastLineIterator.Strings or FastLineIterator.Bytes as appropriate. Bytes is faster.
  • Constructor Details

    • FastLineIterator

      protected FastLineIterator(InputStream source)
      Constructor; a local buffer will be created
      Parameters:
      source -
    • FastLineIterator

      protected FastLineIterator(InputStream source, byte[] buffer)
      Constructor; BYO buffer. Existing contents of the buffer will be destroyed.
      Parameters:
      source -
      buffer - a buffer used for between-read calls
  • Method Details