-
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: rename classes and use lombok when possible (#16)
Signed-off-by: Keran Yang <[email protected]> Co-authored-by: Vigith Maurice <[email protected]>
- Loading branch information
Showing
23 changed files
with
80 additions
and
97 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,6 @@ | |
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
</dependencyManagement> | ||
|
||
<build> | ||
|
7 changes: 2 additions & 5 deletions
7
src/main/java/io/numaproj/numaflow/common/GrpcServerConfig.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 |
---|---|---|
@@ -1,16 +1,13 @@ | ||
package io.numaproj.numaflow.common; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@AllArgsConstructor | ||
public class GrpcServerConfig { | ||
private String socketPath; | ||
private int maxMessageSize; | ||
|
||
public GrpcServerConfig(String socketPath, int maxMessageSize) { | ||
this.socketPath = socketPath; | ||
this.maxMessageSize = maxMessageSize; | ||
} | ||
} |
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
13 changes: 5 additions & 8 deletions
13
src/main/java/io/numaproj/numaflow/function/metadata/IntervalWindowImpl.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
7 changes: 3 additions & 4 deletions
7
src/main/java/io/numaproj/numaflow/function/metadata/MetadataImpl.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,12 @@ | ||
package io.numaproj.numaflow.sink; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Response { | ||
private final String id; | ||
private final Boolean success; | ||
private final String err; | ||
|
||
public Response(String id, Boolean success, String err) { | ||
this.id = id; | ||
this.success = success; | ||
this.err = err; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public Boolean getSuccess() { | ||
return success; | ||
} | ||
|
||
public String getErr() { | ||
return err; | ||
} | ||
} |
17 changes: 13 additions & 4 deletions
17
src/main/java/io/numaproj/numaflow/sink/SinkDatumStream.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 |
---|---|---|
@@ -1,14 +1,23 @@ | ||
package io.numaproj.numaflow.sink; | ||
|
||
/** | ||
* SinkDatumStream is an interface which will be passed to | ||
* sink handlers to read input messages. | ||
* SinkDatumStream is an interface which will be passed to sink handlers to read input messages. | ||
*/ | ||
public interface SinkDatumStream { | ||
// EOF indicates the end of input | ||
HandlerDatum EOF = HandlerDatum.EOF(); | ||
|
||
/* ReadMessage can be used to read message from the stream | ||
* returns null if there are no more messages to consume.*/ | ||
/** | ||
* Reads message from the stream. | ||
* | ||
* @return the message read from the stream. null if there are no more messages to consume. | ||
*/ | ||
HandlerDatum ReadMessage(); | ||
|
||
/** | ||
* Writes message to the stream. | ||
* | ||
* @throws InterruptedException if writing gets interrupted. | ||
*/ | ||
void WriteMessage(HandlerDatum datum) throws InterruptedException; | ||
} |
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.