case class QueryTabularType(columns: Vector[QueryColumn]) extends Product with Serializable
Resulting type of a query. Similar to ai.mantik.ds.TabularData but with support for alias and duplicates
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- QueryTabularType
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new QueryTabularType(columns: Vector[QueryColumn])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++(queryTabularType: QueryTabularType): QueryTabularType
Append new columns
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val columns: Vector[QueryColumn]
- def dropByIds(ids: Int*): QueryTabularType
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def forceToTabularType: TabularData
Force conversion to tabular type, columns may be renamed.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lookupColumn(name: String, caseSensitive: Boolean = false, fromLeft: Boolean = true): Either[String, (Int, QueryColumn)]
Lookup a column.
Lookup a column.
- name
name may use column alias with dot.
- returns
index and column instance.
- def makeNullable: QueryTabularType
Make all columns nullable, if they aren't yet
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def shadow(fromLeft: Boolean = true, ignoreAlias: Boolean = false): QueryTabularType
Shadow name/alias duplicates
Shadow name/alias duplicates
- Annotations
- @throws("If it can't find a new shadowed name")
- def size: Int
Returns the number of columns.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toTabularType: Either[String, TabularData]
Convert to a tabular data.
Convert to a tabular data. This can fail on column duplicates
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withAlias(alias: String): QueryTabularType
Returns a copy with a new alias set.