-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: apply latest reducer proto to the reducer SDK (#90)
Signed-off-by: Keran Yang <[email protected]>
- Loading branch information
Showing
13 changed files
with
279 additions
and
116 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/main/java/io/numaproj/numaflow/reducer/ActorRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.numaproj.numaflow.reducer; | ||
|
||
import io.numaproj.numaflow.reduce.v1.ReduceOuterClass; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
/** | ||
* ActorRequest is to store the request sent to ReduceActors. | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
class ActorRequest { | ||
ReduceOuterClass.ReduceRequest request; | ||
|
||
// TODO - do we need to include window information in the id? | ||
// for aligned reducer, there is always single window. | ||
// but at the same time, would like to be consistent with GO SDK implementation. | ||
// we will revisit this one later. | ||
public String getUniqueIdentifier() { | ||
return String.join( | ||
Constants.DELIMITER, | ||
this.getRequest().getPayload().getKeysList().toArray(new String[0])); | ||
} | ||
|
||
public String[] getKeySet() { | ||
return this.getRequest().getPayload().getKeysList().toArray(new String[0]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.