swaroopak commented on a change in pull request #3: PHOENIX-5232:
PhoenixDataWriter in Phoenix-Spark connector does not commit when mutation
batch size is reached
URL: https://github.com/apache/phoenix-connectors/pull/3#discussion_r274200084
##########
File path:
phoenix-spark/src/main/java/org/apache/phoenix/spark/datasource/v2/reader/PhoenixInputPartitionReader.java
##########
@@ -62,25 +62,30 @@
public class PhoenixInputPartitionReader implements
InputPartitionReader<InternalRow> {
- private SerializableWritable<PhoenixInputSplit> phoenixInputSplit;
- private StructType schema;
+ private final SerializableWritable<PhoenixInputSplit> phoenixInputSplit;
+ private final StructType schema;
+ private final PhoenixDataSourceReadOptions options;
private Iterator<InternalRow> iterator;
private PhoenixResultSet resultSet;
private InternalRow currentRow;
- private PhoenixDataSourceReadOptions options;
- public PhoenixInputPartitionReader(PhoenixDataSourceReadOptions options,
StructType schema, SerializableWritable<PhoenixInputSplit> phoenixInputSplit) {
+ PhoenixInputPartitionReader(PhoenixDataSourceReadOptions options,
StructType schema,
Review comment:
Making it accessible only within the package, is that the intent?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services