-
Notifications
You must be signed in to change notification settings - Fork 139
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
* Add `TIMESTAMPADD` Function To OpenSearch SQL Plugin Added Testing And Implementation for TIMESTAMPADD Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com> * Fixed Formatting Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com> --------- Signed-off-by: GabeFernandez310 <Gabriel.Fernandez@improving.com> (cherry picked from commit 7b83e50) Co-authored-by: GabeFernandez310 <Gabriel.Fernandez@improving.com>
- Loading branch information
1 parent
3ea6c5c
commit 305ba24
Showing
17 changed files
with
719 additions
and
2 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
31 changes: 31 additions & 0 deletions
31
core/src/main/java/org/opensearch/sql/expression/function/SerializableQuadFunction.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,31 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
package org.opensearch.sql.expression.function; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Serializable Triple Function. | ||
* | ||
* @param <T> the type of the first argument to the function | ||
* @param <U> the type of the second argument to the function | ||
* @param <V> the type of the third argument to the function | ||
* @param <W> the type of the fourth argument to the function | ||
* @param <R> the type of the result of the function | ||
*/ | ||
public interface SerializableQuadFunction<T, U, V, W, R> extends Serializable { | ||
/** | ||
* Applies this function to the given arguments. | ||
* | ||
* @param t the first function argument | ||
* @param u the second function argument | ||
* @param v the third function argument | ||
* @param w the fourth function argument | ||
* @return the function result | ||
*/ | ||
R apply(T t, U u, V v, W w); | ||
} |
Oops, something went wrong.