Package org.opensearch.ml.common.dataset
Class SearchQueryInputDataset
java.lang.Object
org.opensearch.ml.common.dataset.MLInputDataset
org.opensearch.ml.common.dataset.SearchQueryInputDataset
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
Search query based input data. The client just need give the search query, and ML plugin will read the data based on it,
and build the data frame for algorithm execution.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionSearchQueryInputDataset(@NonNull List<String> indices, @NonNull org.opensearch.search.builder.SearchSourceBuilder searchSourceBuilder) SearchQueryInputDataset(org.opensearch.core.common.io.stream.StreamInput streaminput) -
Method Summary
Methods inherited from class org.opensearch.ml.common.dataset.MLInputDataset
fromStream, getInputDataType
-
Constructor Details
-
SearchQueryInputDataset
-
SearchQueryInputDataset
public SearchQueryInputDataset(org.opensearch.core.common.io.stream.StreamInput streaminput) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
public void writeTo(org.opensearch.core.common.io.stream.StreamOutput streamOutput) throws IOException - Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Overrides:
writeToin classMLInputDataset- Throws:
IOException
-
builder
-
getSearchSourceBuilder
public org.opensearch.search.builder.SearchSourceBuilder getSearchSourceBuilder() -
getIndices
-