@Override public List<T> getResult() { ArrayList<byte[]> accResult = collectHelper.getAccumulator(env, COLLECT); if (accResult != null) { try { return SerializedListAccumulator.deserializeList(accResult, serializer); } catch (ClassNotFoundException e) { throw new RuntimeException("Cannot find type class of collected data type", e); } catch (IOException e) { throw new RuntimeException("Serialization error while deserializing collected data", e); } } else { throw new RuntimeException("Unable to retrieve the DataSet"); } }
@Override public List<T> getResult() { ArrayList<byte[]> accResult = collectHelper.getAccumulator(env, COLLECT); if (accResult != null) { try { return SerializedListAccumulator.deserializeList(accResult, serializer); } catch (ClassNotFoundException e) { throw new RuntimeException("Cannot find type class of collected data type", e); } catch (IOException e) { throw new RuntimeException("Serialization error while deserializing collected data", e); } } else { throw new RuntimeException("Unable to retrieve the DataSet"); } }
@Override public List<T> getResult() { ArrayList<byte[]> accResult = collectHelper.getAccumulator(env, COLLECT); if (accResult != null) { try { return SerializedListAccumulator.deserializeList(accResult, serializer); } catch (ClassNotFoundException e) { throw new RuntimeException("Cannot find type class of collected data type", e); } catch (IOException e) { throw new RuntimeException("Serialization error while deserializing collected data", e); } } else { throw new RuntimeException("Unable to retrieve the DataSet"); } }
@Override public List<T> getResult() { ArrayList<byte[]> accResult = collectHelper.getAccumulator(env, COLLECT); if (accResult != null) { try { return SerializedListAccumulator.deserializeList(accResult, serializer); } catch (ClassNotFoundException e) { throw new RuntimeException("Cannot find type class of collected data type", e); } catch (IOException e) { throw new RuntimeException("Serialization error while deserializing collected data", e); } } else { throw new RuntimeException("Unable to retrieve the DataSet"); } }