-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ISPN-15856 Updates to Infinispan 15.0 Final
- Loading branch information
Showing
28 changed files
with
122 additions
and
332 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
53 changes: 3 additions & 50 deletions
53
...continuous-query/src/main/java/org/infinispan/tutorial/simple/remote/query/InstaPost.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,59 +1,12 @@ | ||
package org.infinispan.tutorial.simple.remote.query; | ||
|
||
import java.util.Objects; | ||
|
||
import org.infinispan.protostream.annotations.ProtoFactory; | ||
import org.infinispan.protostream.annotations.ProtoField; | ||
import org.infinispan.protostream.annotations.Proto; | ||
|
||
/** | ||
* This class is annotated with the infinispan Protostream support annotations. With this method, you don't need to | ||
* define a protobuf file and a marshaller for the object. See this tutorial for additional explanations: | ||
* <p> | ||
* https://blog.infinispan.org/2018/06/making-java-objects-queryable-by.html | ||
*/ | ||
public final class InstaPost { | ||
|
||
@ProtoField(number = 1) | ||
String id; | ||
|
||
@ProtoField(number = 2) | ||
String user; | ||
|
||
@ProtoField(number = 3) | ||
String hashtag; | ||
|
||
public InstaPost() { | ||
// An accessible no-arg constructor is required for Protostream to be able to instantiate this | ||
} | ||
|
||
@ProtoFactory | ||
public InstaPost(String id, String user, String hashtag) { | ||
this.id = id; | ||
this.user = user; | ||
this.hashtag = hashtag; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "InstaPost{" + | ||
"id='" + id + '\'' + | ||
", user='" + user + '\'' + | ||
", hashtag='" + hashtag + '\'' + | ||
'}'; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
InstaPost instaPost = (InstaPost) o; | ||
return Objects.equals(id, instaPost.id) && | ||
Objects.equals(user, instaPost.user) && | ||
Objects.equals(hashtag, instaPost.hashtag); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, user, hashtag); | ||
} | ||
} | ||
@Proto | ||
public record InstaPost(String id, String user, String hashtag){} |
4 changes: 2 additions & 2 deletions
4
...ntinuous-query/src/main/java/org/infinispan/tutorial/simple/remote/query/InstaSchema.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
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.