object FileSourceGeneratedMetadataAttribute
The internal representation of the FileSourceGeneratedMetadataAttribute. It sets metadata_col to
and file_source_generated_metadata_coltrue in AttributeReference's metadata. In
contrast to FileSourceConstantMetadataAttribute it represents metadata columns that are not
constant per file and are generated as part of the scan.
- apply() will create a file source generated metadata attribute reference - unapply() will check if an attribute reference is the file source generated metadata attribute reference
- Alphabetic
- By Inheritance
- FileSourceGeneratedMetadataAttribute
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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, dataType: DataType, nullable: Boolean = false): AttributeReference
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 change the nullability back to not-nullable; 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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
isGeneratedMetadataColumn(structField: StructField): Boolean
True if
structFieldrepresents a file source generated metadata column. -
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
- @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(attr: AttributeReference): Option[AttributeReference]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()