Class/Object

net.tixxit.delimited.parser

DelimitedParserImpl

Related Docs: object DelimitedParserImpl | package parser

Permalink

final case class DelimitedParserImpl(strategy: DelimitedFormatStrategy, parserState: ParserState, fail: Option[Fail], row: Long, bufferSize: Int, maxCharsPerRow: Int) extends DelimitedParser with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, DelimitedParser, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DelimitedParserImpl
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DelimitedParser
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new DelimitedParserImpl(strategy: DelimitedFormatStrategy, parserState: ParserState, fail: Option[Fail], row: Long, bufferSize: Int, maxCharsPerRow: Int)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val bufferSize: Int

    Permalink
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. val fail: Option[Fail]

    Permalink
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def format: Option[DelimitedFormat]

    Permalink

    The DelimitedFormat being used to parse this delimited file, or None if a format has not yet been inferred (in which case, no rows have yet been returned by parseChunk).

    The DelimitedFormat being used to parse this delimited file, or None if a format has not yet been inferred (in which case, no rows have yet been returned by parseChunk).

    Definition Classes
    DelimitedParserImplDelimitedParser
  11. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. val maxCharsPerRow: Int

    Permalink
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. def parseAll(chunks: Iterator[String]): Iterator[Either[DelimitedError, Row]]

    Permalink

    Parse all chunks in the given iterator, consecutively, treating the last chunk in chunks as the final input.

    Parse all chunks in the given iterator, consecutively, treating the last chunk in chunks as the final input. This will return all rows from the input.

    Definition Classes
    DelimitedParser
  18. def parseChunk(chunk: Option[String]): (DelimitedParserImpl, Vector[Either[DelimitedError, Row]])

    Permalink

    Parse a chunk of the input if there is any left.

    Parse a chunk of the input if there is any left. If chunk is None, then that indicates to the parser that there will be no further input. In this case (chunk is None), all remaining input will be consumed and returned as rows (or errors).

    This returns a new DelimitedParser to use to parse the next chunk, as well as a Vector of all complete rows parsed from chunk.

    chunk

    the next chunk of data as a String, or None if eof

    Definition Classes
    DelimitedParserImplDelimitedParser
  19. def parseFile(file: File, charset: Charset = StandardCharsets.UTF_8): Vector[Either[DelimitedError, Row]]

    Permalink

    Completely parses file and returns all the rows in a Vector.

    Completely parses file and returns all the rows in a Vector.

    file

    the TSV file on disk

    charset

    the character set the TSV was encoded in

    Definition Classes
    DelimitedParser
  20. def parseInputStream(is: InputStream, charset: Charset = StandardCharsets.UTF_8): Iterator[Either[DelimitedError, Row]]

    Permalink

    Returns an iterator that parses rows from in as elements are consumed.

    Returns an iterator that parses rows from in as elements are consumed.

    charset

    the character set to decode the bytes as

    Definition Classes
    DelimitedParser
  21. def parseReader(reader: Reader): Iterator[Either[DelimitedError, Row]]

    Permalink

    Returns an iterator that parses rows from reader as elements are consumed.

    Returns an iterator that parses rows from reader as elements are consumed.

    Definition Classes
    DelimitedParser
  22. def parseString(input: String): Vector[Either[DelimitedError, Row]]

    Permalink

    Parses an entire delimited file as a string.

    Parses an entire delimited file as a string.

    Definition Classes
    DelimitedParser
  23. val parserState: ParserState

    Permalink
  24. def reset: (String, DelimitedParserImpl)

    Permalink

    Returns all unparsed data and a DelimitedParser whose state is completely reset.

    Returns all unparsed data and a DelimitedParser whose state is completely reset.

    Definition Classes
    DelimitedParserImplDelimitedParser
  25. val row: Long

    Permalink
  26. val strategy: DelimitedFormatStrategy

    Permalink
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DelimitedParser

Inherited from AnyRef

Inherited from Any

Ungrouped