com.phasmidsoftware.lascala.parser
Members list
Packages
Type members
Classlikes
a predicate expression consisting of an operator and an operand.
a predicate expression consisting of an operator and an operand.
Value parameters
- operand
-
the operand, i.e. the RHS of the operator.
- operator
-
the operator. for example "=", etc.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PredicateExprclass Objecttrait Matchableclass AnyShow all
Case class which implements ProductStream where the header and tuples are specified indirectly, by providing a parser and Stream[String] such that the element types of the resulting tuples will be inferred from their representative Strings.
Case class which implements ProductStream where the header and tuples are specified indirectly, by providing a parser and Stream[String] such that the element types of the resulting tuples will be inferred from their representative Strings.
Type parameters
- X
-
a Tuple which should correspond with the number of (and types inferred from) the values.
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TupleStreamBase[X]class ProductStreamBase[X]trait ProductStream[X]class Objecttrait Matchableclass AnyShow all
Case class which implements ProductStream where the header and tuples are specified directly
Case class which implements ProductStream where the header and tuples are specified directly
Type parameters
- X
-
the tuple type
Value parameters
- header
-
the header (names of columns)
- tuples
-
the tuples, as a Stream
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass ProductStreamBase[X]trait ProductStream[X]class Objecttrait Matchableclass AnyShow all
Condition: defines a leaf RuleLike instance.
Condition: defines a leaf RuleLike instance.
Value parameters
- predicate
-
the predicate of this condition
- subject
-
the subject of this condition
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RuleLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RuleLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass CsvParserBasetrait JavaTokenParserstrait RegexParserstrait Parsersclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
trait JavaTokenParserstrait RegexParserstrait Parsersclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class CsvParser
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RuleLikeclass Objecttrait Matchableclass AnyShow all
Separated from RuleParser by scalaprof on 7/8/16 at which time evaluate and asQuotedString added.
Separated from RuleParser by scalaprof on 7/8/16 at which time evaluate and asQuotedString added.
TODO Trait Expression which needs a better description
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
Show all
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Iterable[String] => Iterator[Try[T]]class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RuleLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BooleanPredicateExprclass RangePredicateExpr
ProductStream is a monadic trait which provides a Stream of Tuples (tuples) and a Header (header). Thus it is well-suited for use as an ingest mechanism of CSV files.
ProductStream is a monadic trait which provides a Stream of Tuples (tuples) and a Header (header). Thus it is well-suited for use as an ingest mechanism of CSV files.
The polymorphic type X is a Tuple of some count. Please note that type inference is not able to infer this type from reading the file (which doesn't happen until runtime). Therefore, the caller must supply the type of X. Please see ProductStreamSpec for exemplars.
Please see inline method documentation for details of other methods.
Type parameters
- X
-
the underlying type of this product stream: must be a sub-type of Product, that's to say, a Tuple or something similar
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class ProductStreamBase[X]class ConcreteProductStream[X]class TupleStreamBase[X]class CSV[X]class TupleStream[X]
Attributes
- Companion
- trait
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProductStream.type
Base class for implementers of ProductStream
Base class for implementers of ProductStream
Attributes
- Supertypes
- Known subtypes
a predicate expression consisting of an two bounds
a predicate expression consisting of an two bounds
Value parameters
- operand1
-
the lower bound
- operand2
-
the upper bound
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait PredicateExprclass Objecttrait Matchableclass AnyShow all
Sealed trait RuleLike which describes the result of parsing a rule. In this context, a rule is defined by several different case classes, each defining a different method of combining rules together into a tree of rules. In general, a leaf rule is a Condition and is made up of two features: a subject and a predicate.
Sealed trait RuleLike which describes the result of parsing a rule. In this context, a rule is defined by several different case classes, each defining a different method of combining rules together into a tree of rules. In general, a leaf rule is a Condition and is made up of two features: a subject and a predicate.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
RuleParser is a parser-combinator which parses rules. [Wow, that's a surprise!] Of course, it can also parse any of the constituents of a rule (expression, number, predicate, etc.).
RuleParser is a parser-combinator which parses rules. [Wow, that's a surprise!] Of course, it can also parse any of the constituents of a rule (expression, number, predicate, etc.).
A RuleLike is defined as a sealed trait which is extended by several different case classes, each defining a different method of combining rules together into a tree of rules. In general, a leaf rule is a Condition and is made up of two features: a subject and a predicate.
It's important to note that all aspects of these rules are String-based. There is absolutely no conversion to numeric types anywhere in this class.
The trait RuleLike has only one method: asRule which returns a Rule[String]
Created by scalaprof on 5/30/16.
Attributes
- Companion
- object
- Supertypes
-
trait JavaTokenParserstrait RegexParserstrait Parsersclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
RuleParser.type
Truth value: always or never true
Truth value: always or never true
Value parameters
- b
-
the truth value
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait RuleLikeclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
TupleStream.type
Case class which implements ProductStream where the header and tuples are specified indirectly, by providing a parser and Stream[String] such that the element types of the resulting tuples will be Strings.
Case class which implements ProductStream where the header and tuples are specified indirectly, by providing a parser and Stream[String] such that the element types of the resulting tuples will be Strings.
Type parameters
- X
-
a Tuple which should correspond with the number of values (all types of the tuple should be String).
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass TupleStreamBase[X]class ProductStreamBase[X]trait ProductStream[X]class Objecttrait Matchableclass AnyShow all
Abstract class for ProductStream which additionally derives their header and tuples from parsing a Stream of Strings (one per row).
Abstract class for ProductStream which additionally derives their header and tuples from parsing a Stream of Strings (one per row).
Attributes
- Supertypes
- Known subtypes
-
class CSV[X]class TupleStream[X]
Type class Valuable. Perhaps the name "Arithmetical" would be better as this trait encompasses many arithmetic operators.
Type class Valuable. Perhaps the name "Arithmetical" would be better as this trait encompasses many arithmetic operators.
This combination of trait Valuable and implicit objects comprises the "type class" Valuable. It is loosely based on Numeric but has more method definitions and is therefore much more useful for parsing and evaluating expressions. In particular, it provides a fromString method which, to me, seems sorely lacking in Numeric. The reason that it does not extend Numeric is that most of the method result in a Try[X] rather than an X.
Created by scalaprof on 6/5/16.
CONSIDER move this into values package
Attributes
- Companion
- object
- Supertypes
-
trait Orderable[X]trait Ordering[X]trait PartialOrdering[X]trait Equiv[X]trait Serializabletrait Comparator[X]class Objecttrait Matchableclass AnyShow all
- Known subtypes
-
trait ValuableDoubleobject ValuableDoubletrait ValuableIntobject ValuableInttrait ValuableLongobject ValuableLongShow all