object Annotation extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Annotation
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- case class AnnotationContainer(__annotation: Array[Annotation]) extends Product with Serializable
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(rawText: String): Annotation
- def apply(row: Row): Annotation
This method converts a org.apache.spark.sql.Row into an Annotation
This method converts a org.apache.spark.sql.Row into an Annotation
- row
spark row to be converted
- returns
annotation
- val arrayType: ArrayType
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def collect(dataset: Dataset[Row], column: String, columns: String*): Array[Array[Annotation]]
- def collect(dataset: Dataset[Row], column: String): Array[Array[Annotation]]
dataframe collect of a specific annotation column
- val dataType: StructType
This is spark type of an annotation representing its metadata shape
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def flatten(vSep: String, aSep: String, parseEmbeddings: Boolean): UserDefinedFunction
dataframe annotation flatmap of results into strings
- def flattenArray(parseEmbeddings: Boolean): UserDefinedFunction
dataframe annotation flatmap of result values as ArrayType
- def flattenArrayMetadata: UserDefinedFunction
dataframe annotation flatmap of metadata values as ArrayType
- def flattenDetail(vSep: String, aSep: String, parseEmbeddings: Boolean): UserDefinedFunction
dataframe annotation flatmap of results and metadata key values into strings
- def getAnnotations(row: Row, colName: String): Seq[Annotation]
- def getAnnotations(row: Row, colNum: Int): Seq[Annotation]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def getColumnByType(dataset: Dataset[_], inputCols: Array[String], annotatorType: String): StructField
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def searchCoverage(annotations: Array[Annotation], begin: Int, end: Int): Seq[Annotation]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(dataset: Dataset[Row], column: String, howMany: Int): Array[Array[Annotation]]
dataframe take of a specific annotation column
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
- object extractors
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)