-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.x] deprecated job-metadata-index (#2340)
* deprecated job-metadata-index (#2339) * deprecate job-metadata-index Signed-off-by: Peng Huo <[email protected]> * upgrade log4j2 Signed-off-by: Peng Huo <[email protected]> * update codestyle Signed-off-by: Peng Huo <[email protected]> * upgrade log4j Signed-off-by: Peng Huo <[email protected]> --------- Signed-off-by: Peng Huo <[email protected]> (cherry picked from commit b30d3c9) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * revert log4j upgrade Signed-off-by: Peng Huo <[email protected]> --------- Signed-off-by: Peng Huo <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Peng Huo <[email protected]> (cherry picked from commit f3fdead) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
58a5ae5
commit 0f09aec
Showing
25 changed files
with
536 additions
and
630 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
35 changes: 35 additions & 0 deletions
35
spark/src/main/java/org/opensearch/sql/spark/asyncquery/model/AsyncQueryId.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,35 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package org.opensearch.sql.spark.asyncquery.model; | ||
|
||
import static org.opensearch.sql.spark.utils.IDUtils.decode; | ||
import static org.opensearch.sql.spark.utils.IDUtils.encode; | ||
|
||
import lombok.Data; | ||
|
||
/** Async query id. */ | ||
@Data | ||
public class AsyncQueryId { | ||
private final String id; | ||
|
||
public static AsyncQueryId newAsyncQueryId(String datasourceName) { | ||
return new AsyncQueryId(encode(datasourceName)); | ||
} | ||
|
||
public String getDataSourceName() { | ||
return decode(id); | ||
} | ||
|
||
/** OpenSearch DocId. */ | ||
public String docId() { | ||
return "qid" + id; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "asyncQueryId=" + id; | ||
} | ||
} |
Oops, something went wrong.