Class SparkPartitionWriterFactory
- java.lang.Object
-
- com.linkedin.venice.spark.datawriter.writer.SparkPartitionWriterFactory
-
- All Implemented Interfaces:
java.io.Serializable
,org.apache.spark.api.java.function.MapPartitionsFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>
public class SparkPartitionWriterFactory extends java.lang.Object implements org.apache.spark.api.java.function.MapPartitionsFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SparkPartitionWriterFactory(org.apache.spark.broadcast.Broadcast<java.util.Properties> jobProps, DataWriterAccumulators accumulators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<org.apache.spark.sql.Row>
call(java.util.Iterator<org.apache.spark.sql.Row> rows)
-
-
-
Constructor Detail
-
SparkPartitionWriterFactory
public SparkPartitionWriterFactory(org.apache.spark.broadcast.Broadcast<java.util.Properties> jobProps, DataWriterAccumulators accumulators)
-
-
Method Detail
-
call
public java.util.Iterator<org.apache.spark.sql.Row> call(java.util.Iterator<org.apache.spark.sql.Row> rows) throws java.lang.Exception
- Specified by:
call
in interfaceorg.apache.spark.api.java.function.MapPartitionsFunction<org.apache.spark.sql.Row,org.apache.spark.sql.Row>
- Throws:
java.lang.Exception
-
-