java.lang.Object
org.elasticsearch.xpack.core.ml.utils.MlParserUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic double[][][]parse3DArrayOfDoubles(String fieldName, org.elasticsearch.xcontent.XContentParser parser) Parses a 3 dimensional array of doubles.parseArrayOfArrays(String fieldName, org.elasticsearch.core.CheckedFunction<org.elasticsearch.xcontent.XContentParser, T, IOException> valueParser, org.elasticsearch.xcontent.XContentParser parser) Parses an array of arrays of the given type
-
Method Details
-
parseArrayOfArrays
public static <T> List<List<T>> parseArrayOfArrays(String fieldName, org.elasticsearch.core.CheckedFunction<org.elasticsearch.xcontent.XContentParser, T, throws IOExceptionIOException> valueParser, org.elasticsearch.xcontent.XContentParser parser) Parses an array of arrays of the given type- Type Parameters:
T- the type of the values of the inner array- Parameters:
fieldName- the field namevalueParser- the parser to use for the inner array valuesparser- the outer parser- Returns:
- a list of lists representing the array of arrays
- Throws:
IOException- an exception if parsing fails
-
parse3DArrayOfDoubles
public static double[][][] parse3DArrayOfDoubles(String fieldName, org.elasticsearch.xcontent.XContentParser parser) throws IOException Parses a 3 dimensional array of doubles.- Parameters:
fieldName- the field nameparser- the outer parser- Returns:
- The 3D array of doubles
- Throws:
IOException- If parsing fails
-