
io.numaproj.numaflow.batchmapper.BatchResponses Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of numaflow-java Show documentation
Show all versions of numaflow-java Show documentation
SDK to implement Numaflow Source or User Defined Functions or Sinks in Java.
The newest version!
package io.numaproj.numaflow.batchmapper;
import java.util.ArrayList;
import java.util.List;
/**
* BatchResponses is used to send a response from the batch map functions.
* It contains a list of BatchResponse objects.
*/
public class BatchResponses {
private final List batchResponses;
/**
* Constructs an empty BatchResponses object.
*/
public BatchResponses() {
this.batchResponses = new ArrayList<>();
}
/**
* Appends a BatchResponse to the list of batchResponses.
*
* @param batchResponse the BatchResponse to be added
*
* @return the current BatchResponses object
*/
public BatchResponses append(BatchResponse batchResponse) {
this.batchResponses.add(batchResponse);
return this;
}
/**
* Retrieves the list of BatchResponse objects.
*
* @return the list of BatchResponse objects
*/
public List getItems() {
return batchResponses;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy