-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Point In Time support with APIs to list active point-in-time …
…searches Signed-off-by: Andriy Redko <[email protected]>
- Loading branch information
Showing
4 changed files
with
61 additions
and
10 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
25 changes: 25 additions & 0 deletions
25
spring-data-opensearch/src/main/java/org/opensearch/data/core/OpenSearchOperations.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,25 @@ | ||
package org.opensearch.data.core; | ||
|
||
import java.time.Duration; | ||
import java.util.List; | ||
import org.springframework.data.elasticsearch.core.ElasticsearchOperations; | ||
|
||
/** | ||
* The extension over {@link ElasticsearchOperations} with OpenSearch specific operations. | ||
*/ | ||
public interface OpenSearchOperations extends ElasticsearchOperations { | ||
/** | ||
* Return all active point in time searches | ||
* @return all active point in time searches | ||
*/ | ||
List<PitInfo> listPointInTime(); | ||
|
||
/** | ||
* Describes the point in time entry | ||
* | ||
* @param id the point in time id | ||
* @param keepAlive the new keep alive value to be sent with the query | ||
*/ | ||
record PitInfo(String id, long creationTime, Duration keepAlive) { | ||
} | ||
} |
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