package parser
- Alphabetic
- Public
- All
Type Members
-
abstract
class
AbstractParser extends DataTypeParserInterface with Logging
Base SQL parsing infrastructure.
- class DataTypeAstBuilder extends SqlBaseParserBaseVisitor[AnyRef]
-
trait
DataTypeParserInterface extends AnyRef
Interface for DataType parsing functionality.
-
class
ParseException extends AnalysisException
A ParseException is an SparkException that is thrown during the parse process.
A ParseException is an SparkException that is thrown during the parse process. It contains fields and an extended error message that make reporting and diagnosing errors easier.
-
class
SparkParserBailErrorStrategy extends SparkParserErrorStrategy
Inspired by org.antlr.v4.runtime.BailErrorStrategy, which is used in two-stage parsing: This error strategy allows the first stage of two-stage parsing to immediately terminate if an error is encountered, and immediately fall back to the second stage.
Inspired by org.antlr.v4.runtime.BailErrorStrategy, which is used in two-stage parsing: This error strategy allows the first stage of two-stage parsing to immediately terminate if an error is encountered, and immediately fall back to the second stage. In addition to avoiding wasted work by attempting to recover from errors here, the empty implementation of sync improves the performance of the first stage.
-
class
SparkParserErrorStrategy extends DefaultErrorStrategy
A SparkParserErrorStrategy extends the DefaultErrorStrategy, that does special handling on errors.
A SparkParserErrorStrategy extends the DefaultErrorStrategy, that does special handling on errors.
The intention of this class is to provide more information of these errors encountered in ANTLR parser to the downstream consumers, to be able to apply the SparkThrowable error message framework to these exceptions.
-
class
SparkRecognitionException extends RecognitionException
A SparkRecognitionException extends the RecognitionException with more information including the error class and parameters for the error message, which align with the interface of SparkThrowableHelper.
-
class
SqlBaseLexer extends Lexer
- Annotations
- @SuppressWarnings()
-
class
SqlBaseParser extends Parser
- Annotations
- @SuppressWarnings()
-
class
SqlBaseParserBaseListener extends SqlBaseParserListener
This class provides an empty implementation of
SqlBaseParserListener
, which can be extended to create a listener which only needs to handle a subset of the available methods. -
class
SqlBaseParserBaseVisitor[T] extends AbstractParseTreeVisitor[T] with SqlBaseParserVisitor[T]
This class provides an empty implementation of
SqlBaseParserVisitor
, which can be extended to create a visitor which only needs to handle a subset of the available methods. -
trait
SqlBaseParserListener extends ParseTreeListener
This interface defines a complete listener for a parse tree produced by
SqlBaseParser
. -
trait
SqlBaseParserVisitor[T] extends ParseTreeVisitor[T]
This interface defines a complete generic visitor for a parse tree produced by
SqlBaseParser
. -
case class
UnclosedCommentProcessor(command: String, tokenStream: CommonTokenStream) extends SqlBaseParserBaseListener with Product with Serializable
The post-processor checks the unclosed bracketed comment.
Value Members
- object DataTypeParser extends AbstractParser
-
object
LegacyTypeStringParser extends RegexParsers
Parser that turns case class strings into datatypes.
Parser that turns case class strings into datatypes. This is only here to maintain compatibility with Parquet files written by Spark 1.1 and below.
-
object
ParseErrorListener extends BaseErrorListener with Product with Serializable
The ParseErrorListener converts parse errors into ParseExceptions.
- object ParseException extends Serializable
-
object
PostProcessor extends SqlBaseParserBaseListener with Product with Serializable
The post-processor validates & cleans-up the parse tree during the parse process.