private static List < String > getResultIds ( JsonNode result ) { JsonNode resultIds = result . path ( "data" ) . path ( "resultIds" ) ; if ( resultIds . isNull ( ) || resultIds . isMissingNode ( ) || resultIds . asText ( ) . isEmpty ( ) ) { return Collections . emptyList ( ) ; } return new ArrayList <> ( Arrays . asList ( resultIds . asText ( ) . split ( "," ) ) ) ; }
Return the list of result IDs provided in a result if available ; otherwise return an empty list .