public static enum KNNModel.Backend extends Enum<KNNModel.Backend>
Enum Constant and Description |
---|
INNERTHREADPOOL
Uses a thread pool at the inner level (i.e., the whole thread pool works on each prediction).
|
STREAMS
Uses the streams API for parallelism when scoring a batch of predictions.
|
THREADPOOL
Uses a thread pool at the outer level (i.e., one thread per prediction).
|
Modifier and Type | Method and Description |
---|---|
static KNNModel.Backend |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KNNModel.Backend[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KNNModel.Backend STREAMS
public static final KNNModel.Backend THREADPOOL
public static final KNNModel.Backend INNERTHREADPOOL
public static KNNModel.Backend[] values()
for (KNNModel.Backend c : KNNModel.Backend.values()) System.out.println(c);
public static KNNModel.Backend valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.