Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.08 KB

File metadata and controls

36 lines (28 loc) · 1.08 KB

KnnQuery

oneOf schemas

Example

// Import classes:
import com.manticoresearch.client.model.KnnQuery;
import com.manticoresearch.client.model.List<BigDecimal>;
import com.manticoresearch.client.model.String;

public class Example {
    public static void main(String[] args) {
        KnnQuery exampleKnnQuery = new KnnQuery();

        // create a new List<BigDecimal>
        List<BigDecimal> exampleList<BigDecimal> = new List<BigDecimal>();
        // set KnnQuery to List<BigDecimal>
        exampleKnnQuery.setActualInstance(exampleList<BigDecimal>);
        // to get back the List<BigDecimal> set earlier
        List<BigDecimal> testList<BigDecimal> = (List<BigDecimal>) exampleKnnQuery.getActualInstance();

        // create a new String
        String exampleString = new String();
        // set KnnQuery to String
        exampleKnnQuery.setActualInstance(exampleString);
        // to get back the String set earlier
        String testString = (String) exampleKnnQuery.getActualInstance();
    }
}