-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Signed-off-by: jzonthemtn <[email protected]>
- Loading branch information
1 parent
dab5944
commit b20f08a
Showing
4 changed files
with
115 additions
and
29 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
39 changes: 39 additions & 0 deletions
39
...icit-judgments/src/main/java/org/opensearch/searchevaluationframework/model/Judgment.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,39 @@ | ||
package org.opensearch.searchevaluationframework.model; | ||
|
||
public class Judgment { | ||
|
||
private final long timestamp; | ||
private final String queryId; | ||
private final String query; | ||
private final String document; | ||
private final double judgment; | ||
|
||
public Judgment(final long timestamp, final String queryId, final String query, final String document, final double judgment) { | ||
this.timestamp = timestamp; | ||
this.queryId = queryId; | ||
this.query = query; | ||
this.document = document; | ||
this.judgment = judgment; | ||
} | ||
|
||
public long getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public String getQueryId() { | ||
return queryId; | ||
} | ||
|
||
public String getQuery() { | ||
return query; | ||
} | ||
|
||
public String getDocument() { | ||
return document; | ||
} | ||
|
||
public double getJudgment() { | ||
return judgment; | ||
} | ||
|
||
} |