-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
Signed-off-by: Derek Ho <[email protected]>
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,28 @@ | ||
package org.opensearch.sql.datasources.model.transport; | ||
|
||
import lombok.Getter; | ||
import java.io.IOException; | ||
import org.opensearch.action.ActionRequest; | ||
import org.opensearch.action.ActionRequestValidationException; | ||
import org.opensearch.core.common.io.stream.StreamInput; | ||
import org.opensearch.sql.datasource.model.DataSourceMetadata; | ||
|
||
import java.io.IOException; | ||
import java.util.Map; | ||
|
||
import static org.opensearch.sql.analysis.DataSourceSchemaIdentifierNameResolver.DEFAULT_DATASOURCE_NAME; | ||
import static org.opensearch.sql.datasources.utils.XContentParserUtils.CONNECTOR_FIELD; | ||
import static org.opensearch.sql.datasources.utils.XContentParserUtils.NAME_FIELD; | ||
|
||
public class DataSourceActionRequest extends ActionRequest { | ||
|
||
public DataSourceActionRequest(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
public DataSourceActionRequest(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
Check warning on line 12 in datasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionRequest.java Codecov / codecov/patchdatasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionRequest.java#L11-L12
|
||
|
||
@Override | ||
public ActionRequestValidationException validate() { | ||
return null; | ||
} | ||
@Override | ||
public ActionRequestValidationException validate() { | ||
return null; | ||
Check warning on line 16 in datasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionRequest.java Codecov / codecov/patchdatasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionRequest.java#L16
|
||
} | ||
|
||
public DataSourceActionRequest() { | ||
} | ||
public DataSourceActionRequest() {} | ||
|
||
// public DataSourceMetadata getSourceMetadata() { | ||
// return null; | ||
// } | ||
// | ||
// public Map<String, Object> getDataSourceData() { | ||
// return Map.of(); | ||
// } | ||
// public DataSourceMetadata getSourceMetadata() { | ||
// return null; | ||
// } | ||
// | ||
// public Map<String, Object> getDataSourceData() { | ||
// return Map.of(); | ||
// } | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,20 @@ | ||
package org.opensearch.sql.datasources.model.transport; | ||
|
||
import java.io.IOException; | ||
import lombok.Getter; | ||
import org.opensearch.core.action.ActionResponse; | ||
import org.opensearch.core.common.io.stream.StreamInput; | ||
import org.opensearch.core.common.io.stream.StreamOutput; | ||
|
||
import java.io.IOException; | ||
|
||
public class DataSourceActionResponse extends ActionResponse { | ||
@Getter | ||
String result; | ||
|
||
public DataSourceActionResponse() { | ||
} | ||
public class DataSourceActionResponse extends ActionResponse { | ||
@Getter String result; | ||
|
||
public DataSourceActionResponse(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
public DataSourceActionResponse() {} | ||
|
||
@Override | ||
public void writeTo(StreamOutput streamOutput) throws IOException { | ||
public DataSourceActionResponse(StreamInput in) throws IOException { | ||
super(in); | ||
} | ||
Check warning on line 16 in datasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionResponse.java Codecov / codecov/patchdatasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionResponse.java#L15-L16
|
||
|
||
} | ||
} | ||
@Override | ||
public void writeTo(StreamOutput streamOutput) throws IOException {} | ||
Check warning on line 19 in datasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionResponse.java Codecov / codecov/patchdatasources/src/main/java/org/opensearch/sql/datasources/model/transport/DataSourceActionResponse.java#L19
|
||
} |