Package org.apache.druid.data.input.impl
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
Like the Apache Commons LineIterator, but faster.
Use
FastLineIterator.Strings or FastLineIterator.Bytes as appropriate. Bytes is faster.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFastLineIterator(InputStream source) Constructor; a local buffer will be createdprotectedFastLineIterator(InputStream source, byte[] buffer) Constructor; BYO buffer. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.java.util.common.parsers.CloseableIterator
flatMap, mapMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
FastLineIterator
Constructor; a local buffer will be created- Parameters:
source-
-
FastLineIterator
Constructor; BYO buffer. Existing contents of the buffer will be destroyed.- Parameters:
source-buffer- a buffer used for between-read calls
-
-
Method Details