package utils
- Alphabetic
- Public
- All
Type Members
- trait ElemSetHelper [Elem] extends AnyRef
- abstract class Generator [Elem] extends AnyRef
- case class IndexedParserInput [Elem, Repr](data: Repr)(implicit repr: ReprOps[Elem, Repr]) extends ParserInput[Elem, Repr] with Product with Serializable
-
case class
IteratorParserInput
[Elem, Repr](data: Iterator[Repr])(implicit repr: ReprOps[Elem, Repr], converter: ReprOps[Elem, Repr], ct: ClassTag[Elem]) extends ParserInput[Elem, Repr] with Product with Serializable
Contains buffer - queue of elements that extends from given iterator when particular elements are requested; and shrinks by calling
dropBuffer
method.Contains buffer - queue of elements that extends from given iterator when particular elements are requested; and shrinks by calling
dropBuffer
method.Generally, at any specific time this buffer contains "suffix" of given iterator, e.g. some piece of data from past calls of
next
, which extends by requesting new batches from iterator. Therefore we can denote the same notation of indices as for regularArray
or more abstractIndexedSeq
. The only difference is when index doesn't fit into the bounds of current buffer either the new batches are requested to extend the buffer, either it's inaccessible at all, so calling ofdropBuffer
should guarantee that there won't be any attempts to access to the elements in dropped part of input. -
abstract
class
ParserInput
[Elem, Repr] extends IsReachable[Elem]
ParserInput class represents data that is needed to parse.
ParserInput class represents data that is needed to parse.
It can be regular
IndexedSeq
that behaves as simple array orIterator
ofIndexedSeq
batches which is optimized bydropBuffer
method. -
abstract
class
ReprOps
[Elem, Repr] extends AnyRef
Encapsulates all the common operations on each Elem and Repr that FastParse needs to perform it's core functionality.
Encapsulates all the common operations on each Elem and Repr that FastParse needs to perform it's core functionality. This is provided separately, in order to avoid converting every possible input into a lowest-common-denominator type (e.g.
IndexedSeq[Elem]
) to avoid unnecessarily paying conversion-costs and copying the input. -
class
UberBuffer
[T] extends AnyRef
A very fast circular, growable read-write byte buffer.