Package org.partiql.ast

Types

Link copied to clipboard
abstract class AstNode
Link copied to clipboard
enum DatetimeField : Enum<DatetimeField>
Link copied to clipboard
data class Exclude(items: List<Exclude.Item>) : AstNode
Link copied to clipboard
sealed class Expr : AstNode
Link copied to clipboard
sealed class From : AstNode
Link copied to clipboard
data class GraphMatch(patterns: List<GraphMatch.Pattern>, selector: GraphMatch.Selector?) : AstNode
Link copied to clipboard
data class GroupBy(strategy: GroupBy.Strategy, keys: List<GroupBy.Key>, asAlias: Identifier.Symbol?) : AstNode
Link copied to clipboard
sealed class Identifier : AstNode
Link copied to clipboard
data class Let(bindings: List<Let.Binding>) : AstNode
Link copied to clipboard
data class OnConflict(target: OnConflict.Target?, action: OnConflict.Action) : AstNode
Link copied to clipboard
data class OrderBy(sorts: List<Sort>) : AstNode
Link copied to clipboard
data class Path(root: Identifier.Symbol, steps: List<Path.Step>) : AstNode
Link copied to clipboard
data class Returning(columns: List<Returning.Column>) : AstNode
Link copied to clipboard
sealed class Select : AstNode
Link copied to clipboard
data class SetOp(type: SetOp.Type, setq: SetQuantifier?) : AstNode
Link copied to clipboard
enum SetQuantifier : Enum<SetQuantifier>
Link copied to clipboard
data class Sort(expr: Expr, dir: Sort.Dir?, nulls: Sort.Nulls?) : AstNode
Link copied to clipboard
sealed class Statement : AstNode
Link copied to clipboard
data class TableDefinition(columns: List<TableDefinition.Column>) : AstNode
Link copied to clipboard
sealed class Type : AstNode

Functions

Link copied to clipboard
fun exclude(items: List<Exclude.Item>): Exclude
Link copied to clipboard
fun excludeItem(root: Expr.Var, steps: List<Exclude.Step>): Exclude.Item
Link copied to clipboard
fun excludeStepCollIndex(index: Int): Exclude.Step.CollIndex
Link copied to clipboard
fun excludeStepCollWildcard(): Exclude.Step.CollWildcard
Link copied to clipboard
fun excludeStepStructField(symbol: Identifier.Symbol): Exclude.Step.StructField
Link copied to clipboard
fun excludeStepStructWildcard(): Exclude.Step.StructWildcard
Link copied to clipboard
fun exprAgg(function: Identifier, args: List<Expr>, setq: SetQuantifier?): Expr.Agg
Link copied to clipboard
fun exprBagOp(type: SetOp, lhs: Expr, rhs: Expr, outer: Boolean?): Expr.BagOp
Link copied to clipboard
fun exprBetween(value: Expr, from: Expr, to: Expr, not: Boolean?): Expr.Between
Link copied to clipboard
fun exprBinary(op: Expr.Binary.Op, lhs: Expr, rhs: Expr): Expr.Binary
Link copied to clipboard
fun exprCall(function: Identifier, args: List<Expr>): Expr.Call
Link copied to clipboard
fun exprCanCast(value: Expr, asType: Type): Expr.CanCast
Link copied to clipboard
fun exprCanLosslessCast(value: Expr, asType: Type): Expr.CanLosslessCast
Link copied to clipboard
fun exprCase(expr: Expr?, branches: List<Expr.Case.Branch>, default: Expr?): Expr.Case
Link copied to clipboard
fun exprCaseBranch(condition: Expr, expr: Expr): Expr.Case.Branch
Link copied to clipboard
fun exprCast(value: Expr, asType: Type): Expr.Cast
Link copied to clipboard
fun exprCoalesce(args: List<Expr>): Expr.Coalesce
Link copied to clipboard
fun exprCollection(type: Expr.Collection.Type, values: List<Expr>): Expr.Collection
Link copied to clipboard
fun exprDateAdd(field: DatetimeField, lhs: Expr, rhs: Expr): Expr.DateAdd
Link copied to clipboard
fun exprDateDiff(field: DatetimeField, lhs: Expr, rhs: Expr): Expr.DateDiff
Link copied to clipboard
fun exprExtract(field: DatetimeField, source: Expr): Expr.Extract
Link copied to clipboard
fun exprInCollection(lhs: Expr, rhs: Expr, not: Boolean?): Expr.InCollection
Link copied to clipboard
fun exprIon(value: IonElement): Expr.Ion
Link copied to clipboard
fun exprIsType(value: Expr, type: Type, not: Boolean?): Expr.IsType
Link copied to clipboard
fun exprLike(value: Expr, pattern: Expr, escape: Expr?, not: Boolean?): Expr.Like
Link copied to clipboard
fun exprLit(value: PartiQLValue): Expr.Lit
Link copied to clipboard
fun exprMatch(expr: Expr, pattern: GraphMatch): Expr.Match
Link copied to clipboard
fun exprNullIf(value: Expr, nullifier: Expr): Expr.NullIf
Link copied to clipboard
fun exprOverlay(value: Expr, overlay: Expr, start: Expr, length: Expr?): Expr.Overlay
Link copied to clipboard
fun exprParameter(index: Int): Expr.Parameter
Link copied to clipboard
fun exprPath(root: Expr, steps: List<Expr.Path.Step>): Expr.Path
Link copied to clipboard
fun exprPathStepIndex(key: Expr): Expr.Path.Step.Index
Link copied to clipboard
fun exprPathStepSymbol(symbol: Identifier.Symbol): Expr.Path.Step.Symbol
Link copied to clipboard
fun exprPathStepUnpivot(): Expr.Path.Step.Unpivot
Link copied to clipboard
fun exprPathStepWildcard(): Expr.Path.Step.Wildcard
Link copied to clipboard
fun exprPosition(lhs: Expr, rhs: Expr): Expr.Position
Link copied to clipboard
Link copied to clipboard
fun exprSFW(select: Select, exclude: Exclude?, from: From, let: Let?, where: Expr?, groupBy: GroupBy?, having: Expr?, setOp: Expr.SFW.SetOp?, orderBy: OrderBy?, limit: Expr?, offset: Expr?): Expr.SFW
Link copied to clipboard
fun exprSFWSetOp(type: SetOp, operand: Expr.SFW): Expr.SFW.SetOp
Link copied to clipboard
fun exprStruct(fields: List<Expr.Struct.Field>): Expr.Struct
Link copied to clipboard
fun exprStructField(name: Expr, value: Expr): Expr.Struct.Field
Link copied to clipboard
fun exprSubstring(value: Expr, start: Expr?, length: Expr?): Expr.Substring
Link copied to clipboard
fun exprTrim(value: Expr, chars: Expr?, spec: Expr.Trim.Spec?): Expr.Trim
Link copied to clipboard
fun exprUnary(op: Expr.Unary.Op, expr: Expr): Expr.Unary
Link copied to clipboard
fun exprValues(rows: List<Expr.Values.Row>): Expr.Values
Link copied to clipboard
fun exprValuesRow(items: List<Expr>): Expr.Values.Row
Link copied to clipboard
fun exprVar(identifier: Identifier, scope: Expr.Var.Scope): Expr.Var
Link copied to clipboard
fun exprWindow(function: Expr.Window.Function, expression: Expr, offset: Expr?, default: Expr?, over: Expr.Window.Over): Expr.Window
Link copied to clipboard
fun exprWindowOver(partitions: List<Expr>?, sorts: List<Sort>?): Expr.Window.Over
Link copied to clipboard
fun fromJoin(lhs: From, rhs: From, type: From.Join.Type?, condition: Expr?): From.Join
Link copied to clipboard
fun fromValue(expr: Expr, type: From.Value.Type, asAlias: Identifier.Symbol?, atAlias: Identifier.Symbol?, byAlias: Identifier.Symbol?): From.Value
Link copied to clipboard
fun graphMatch(patterns: List<GraphMatch.Pattern>, selector: GraphMatch.Selector?): GraphMatch
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun graphMatchLabelName(name: String): GraphMatch.Label.Name
Link copied to clipboard
Link copied to clipboard
fun graphMatchLabelWildcard(): GraphMatch.Label.Wildcard
Link copied to clipboard
fun graphMatchPattern(restrictor: GraphMatch.Restrictor?, prefilter: Expr?, variable: String?, quantifier: GraphMatch.Quantifier?, parts: List<GraphMatch.Pattern.Part>): GraphMatch.Pattern
Link copied to clipboard
fun graphMatchPatternPartEdge(direction: GraphMatch.Direction, quantifier: GraphMatch.Quantifier?, prefilter: Expr?, variable: String?, label: GraphMatch.Label?): GraphMatch.Pattern.Part.Edge
Link copied to clipboard
fun graphMatchPatternPartNode(prefilter: Expr?, variable: String?, label: GraphMatch.Label?): GraphMatch.Pattern.Part.Node
Link copied to clipboard
Link copied to clipboard
fun graphMatchQuantifier(lower: Long, upper: Long?): GraphMatch.Quantifier
Link copied to clipboard
Link copied to clipboard
fun graphMatchSelectorAny(): GraphMatch.Selector.Any
Link copied to clipboard
fun graphMatchSelectorAnyK(k: Long): GraphMatch.Selector.AnyK
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun groupBy(strategy: GroupBy.Strategy, keys: List<GroupBy.Key>, asAlias: Identifier.Symbol?): GroupBy
Link copied to clipboard
fun groupByKey(expr: Expr, asAlias: Identifier.Symbol?): GroupBy.Key
Link copied to clipboard
fun identifierQualified(root: Identifier.Symbol, steps: List<Identifier.Symbol>): Identifier.Qualified
Link copied to clipboard
fun identifierSymbol(symbol: String, caseSensitivity: Identifier.CaseSensitivity): Identifier.Symbol
Link copied to clipboard
fun let(bindings: List<Let.Binding>): Let
Link copied to clipboard
fun letBinding(expr: Expr, asAlias: Identifier.Symbol): Let.Binding
Link copied to clipboard
fun onConflict(target: OnConflict.Target?, action: OnConflict.Action): OnConflict
Link copied to clipboard
fun onConflictActionDoNothing(): OnConflict.Action.DoNothing
Link copied to clipboard
fun onConflictActionDoReplace(condition: Expr?): OnConflict.Action.DoReplace
Link copied to clipboard
fun onConflictActionDoUpdate(condition: Expr?): OnConflict.Action.DoUpdate
Link copied to clipboard
fun onConflictTargetConstraint(constraint: Identifier): OnConflict.Target.Constraint
Link copied to clipboard
fun onConflictTargetSymbols(symbols: List<Identifier>): OnConflict.Target.Symbols
Link copied to clipboard
fun orderBy(sorts: List<Sort>): OrderBy
Link copied to clipboard
fun path(root: Identifier.Symbol, steps: List<Path.Step>): Path
Link copied to clipboard
fun pathStepIndex(index: Int): Path.Step.Index
Link copied to clipboard
fun pathStepSymbol(symbol: Identifier.Symbol): Path.Step.Symbol
Link copied to clipboard
fun returning(columns: List<Returning.Column>): Returning
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun selectPivot(key: Expr, value: Expr): Select.Pivot
Link copied to clipboard
fun selectProject(items: List<Select.Project.Item>, setq: SetQuantifier?): Select.Project
Link copied to clipboard
fun selectProjectItemAll(expr: Expr): Select.Project.Item.All
Link copied to clipboard
fun selectProjectItemExpression(expr: Expr, asAlias: Identifier.Symbol?): Select.Project.Item.Expression
Link copied to clipboard
fun selectStar(setq: SetQuantifier?): Select.Star
Link copied to clipboard
fun selectValue(constructor: Expr, setq: SetQuantifier?): Select.Value
Link copied to clipboard
fun setOp(type: SetOp.Type, setq: SetQuantifier?): SetOp
Link copied to clipboard
fun sort(expr: Expr, dir: Sort.Dir?, nulls: Sort.Nulls?): Sort
Link copied to clipboard
fun statementDDLCreateIndex(index: Identifier?, table: Identifier, fields: List<Path>): Statement.DDL.CreateIndex
Link copied to clipboard
fun statementDDLCreateTable(name: Identifier, definition: TableDefinition?): Statement.DDL.CreateTable
Link copied to clipboard
fun statementDDLDropIndex(index: Identifier, table: Identifier): Statement.DDL.DropIndex
Link copied to clipboard
fun statementDDLDropTable(table: Identifier): Statement.DDL.DropTable
Link copied to clipboard
fun statementDMLBatchLegacy(ops: List<Statement.DML.BatchLegacy.Op>, target: From?, where: Expr?, returning: Returning?): Statement.DML.BatchLegacy
Link copied to clipboard
fun statementDMLBatchLegacyOpInsert(target: Identifier, values: Expr, asAlias: Identifier.Symbol?, onConflict: OnConflict?): Statement.DML.BatchLegacy.Op.Insert
Link copied to clipboard
fun statementDMLBatchLegacyOpInsertLegacy(target: Path, value: Expr, index: Expr?, conflictCondition: Expr?): Statement.DML.BatchLegacy.Op.InsertLegacy
Link copied to clipboard
Link copied to clipboard
fun statementDMLDelete(target: Statement.DML.Delete.Target, where: Expr?, returning: Returning?): Statement.DML.Delete
Link copied to clipboard
fun statementDMLDeleteTarget(path: Path, asAlias: Identifier.Symbol?, atAlias: Identifier.Symbol?, byAlias: Identifier.Symbol?): Statement.DML.Delete.Target
Link copied to clipboard
fun statementDMLInsert(target: Identifier, values: Expr, asAlias: Identifier.Symbol?, onConflict: OnConflict?): Statement.DML.Insert
Link copied to clipboard
fun statementDMLInsertLegacy(target: Path, value: Expr, index: Expr?, conflictCondition: Expr?): Statement.DML.InsertLegacy
Link copied to clipboard
fun statementDMLRemove(target: Path): Statement.DML.Remove
Link copied to clipboard
fun statementDMLReplace(target: Identifier, values: Expr, asAlias: Identifier.Symbol?): Statement.DML.Replace
Link copied to clipboard
fun statementDMLUpdate(target: Path, assignments: List<Statement.DML.Update.Assignment>): Statement.DML.Update
Link copied to clipboard
fun statementDMLUpdateAssignment(target: Path, value: Expr): Statement.DML.Update.Assignment
Link copied to clipboard
fun statementDMLUpsert(target: Identifier, values: Expr, asAlias: Identifier.Symbol?): Statement.DML.Upsert
Link copied to clipboard
fun statementExec(procedure: String, args: List<Expr>): Statement.Exec
Link copied to clipboard
fun statementExplain(target: Statement.Explain.Target): Statement.Explain
Link copied to clipboard
fun statementExplainTargetDomain(statement: Statement, type: String?, format: String?): Statement.Explain.Target.Domain
Link copied to clipboard
fun statementQuery(expr: Expr): Statement.Query
Link copied to clipboard
fun tableDefinition(columns: List<TableDefinition.Column>): TableDefinition
Link copied to clipboard
fun tableDefinitionColumn(name: String, type: Type, constraints: List<TableDefinition.Column.Constraint>): TableDefinition.Column
Link copied to clipboard
fun typeAny(): Type.Any
Link copied to clipboard
fun typeBag(): Type.Bag
Link copied to clipboard
fun typeBigint(): Type.Bigint
Link copied to clipboard
fun typeBit(length: Int?): Type.Bit
Link copied to clipboard
fun typeBitVarying(length: Int?): Type.BitVarying
Link copied to clipboard
fun typeBlob(length: Int?): Type.Blob
Link copied to clipboard
fun typeBool(): Type.Bool
Link copied to clipboard
fun typeByteString(length: Int?): Type.ByteString
Link copied to clipboard
fun typeChar(length: Int?): Type.Char
Link copied to clipboard
fun typeClob(length: Int?): Type.Clob
Link copied to clipboard
fun typeCustom(name: String): Type.Custom
Link copied to clipboard
fun typeDate(): Type.Date
Link copied to clipboard
fun typeDecimal(precision: Int?, scale: Int?): Type.Decimal
Link copied to clipboard
fun typeFloat32(): Type.Float32
Link copied to clipboard
fun typeFloat64(): Type.Float64
Link copied to clipboard
fun typeInt(): Type.Int
Link copied to clipboard
fun typeInt2(): Type.Int2
Link copied to clipboard
fun typeInt4(): Type.Int4
Link copied to clipboard
fun typeInt8(): Type.Int8
Link copied to clipboard
fun typeInterval(precision: Int?): Type.Interval
Link copied to clipboard
fun typeList(): Type.List
Link copied to clipboard
fun typeMissing(): Type.Missing
Link copied to clipboard
fun typeNullType(): Type.NullType
Link copied to clipboard
fun typeNumeric(precision: Int?, scale: Int?): Type.Numeric
Link copied to clipboard
fun typeReal(): Type.Real
Link copied to clipboard
fun typeSexp(): Type.Sexp
Link copied to clipboard
fun typeSmallint(): Type.Smallint
Link copied to clipboard
fun typeString(length: Int?): Type.String
Link copied to clipboard
fun typeStruct(): Type.Struct
Link copied to clipboard
fun typeSymbol(): Type.Symbol
Link copied to clipboard
fun typeTime(precision: Int?): Type.Time
Link copied to clipboard
fun typeTimestamp(precision: Int?): Type.Timestamp
Link copied to clipboard
fun typeTimestampWithTz(precision: Int?): Type.TimestampWithTz
Link copied to clipboard
fun typeTimeWithTz(precision: Int?): Type.TimeWithTz
Link copied to clipboard
fun typeTinyint(): Type.Tinyint
Link copied to clipboard
fun typeTuple(): Type.Tuple
Link copied to clipboard
fun typeVarchar(length: Int?): Type.Varchar