sijie commented on a change in pull request #9947:
URL: https://github.com/apache/pulsar/pull/9947#discussion_r596538029
##########
File path:
pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Record.java
##########
@@ -77,6 +77,15 @@
return Optional.empty();
}
+ /**
+ * Retrieves the partition number if any of the record.
+ *
+ * @return The partition number
+ */
+ default Optional<Integer> getPartitionNumber() {
Review comment:
```suggestion
default Optional<Integer> getPartitionId() {
```
##########
File path:
pulsar-functions/api-java/src/main/java/org/apache/pulsar/functions/api/Record.java
##########
@@ -77,6 +77,15 @@
return Optional.empty();
}
+ /**
+ * Retrieves the partition number if any of the record.
+ *
+ * @return The partition number
+ */
+ default Optional<Integer> getPartitionNumber() {
Review comment:
I think parittion id it better than partition number
----------------------------------------------------------------
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]