object FileSourceGeneratedMetadataStructField
A StructField that describes a file source generated metadata struct field -- a member of the
metadata struct that maps to some internal column the scanner returns.
- apply() wil create a file source generated metadata struct field - unapply() matches a file source generated metadata struct field, and returns its internal name
- Alphabetic
- By Inheritance
- FileSourceGeneratedMetadataStructField
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val FILE_SOURCE_GENERATED_METADATA_COL_ATTR_KEY: String
- def apply(name: String, internalName: String, dataType: DataType, nullable: Boolean = true): StructField
We keep generated metadata attributes nullability configurable here: 1.
We keep generated metadata attributes nullability configurable here: 1. Before passing to readers, we create generated metadata attributes as nullable; Because, for row_index, the readers do not consider the column required. row_index can be generated with null in the process by readers. 2. When applying the projection, we restore the nullability specified here; For row_index, it is generated with nulls which are then replaced, so it will not be null in the returned output. See
FileSourceStrategyfor more information - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getInternalNameIfValid(dataType: DataType, metadata: Metadata): Option[String]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValid(dataType: DataType, metadata: Metadata): Boolean
- def metadata(name: String, internalName: String): Metadata
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unapply(field: StructField): Option[(StructField, String)]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()