trait PartitionReaderFactory extends Serializable
A factory used to create PartitionReader instances.
If Spark fails to execute any methods in the implementations of this interface or in the returned
PartitionReader (by throwing an exception), corresponding Spark task would fail and
get retried until hitting the maximum retry times.
- Since
3.0.0
- Alphabetic
- By Inheritance
- PartitionReaderFactory
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
createReader(partition: InputPartition): PartitionReader[InternalRow]
Returns a row-based partition reader to read data from the given
InputPartition.Returns a row-based partition reader to read data from the given
InputPartition.Implementations probably need to cast the input partition to the concrete
InputPartitionclass defined for the data source.
Concrete 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
createColumnarReader(partition: InputPartition): PartitionReader[ColumnarBatch]
Returns a columnar partition reader to read data from the given
InputPartition.Returns a columnar partition reader to read data from the given
InputPartition.Implementations probably need to cast the input partition to the concrete
InputPartitionclass defined for the data source. -
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()
-
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()
-
def
supportColumnarReads(partition: InputPartition): Boolean
Returns true if the given
InputPartitionshould be read by Spark in a columnar way.Returns true if the given
InputPartitionshould be read by Spark in a columnar way. This means, implementations must also implement#createColumnarReader(InputPartition)for the input partitions that this method returns true.As of Spark 2.4, Spark can only read all input partition in a columnar way, or none of them. Data source can't mix columnar and row-based partitions. This may be relaxed in future versions.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()