Package org.opensearch.ml.common.dataset
Class TextDocsInputDataSet
java.lang.Object
org.opensearch.ml.common.dataset.MLInputDataset
org.opensearch.ml.common.dataset.TextDocsInputDataSet
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesNested 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
ConstructorsConstructorDescriptionTextDocsInputDataSet(List<String> docs, ModelResultFilter resultFilter) TextDocsInputDataSet(org.opensearch.core.common.io.stream.StreamInput streamInput) -
Method Summary
Methods inherited from class org.opensearch.ml.common.dataset.MLInputDataset
fromStream, getInputDataType
-
Constructor Details
-
TextDocsInputDataSet
-
TextDocsInputDataSet
public TextDocsInputDataSet(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
-
toBuilder
-
getResultFilter
-
getDocs
-