/** * @see stream.io.Stream#init() */ @Override public void init() throws Exception { stream.init(); } }
/** * @return * @throws Exception * @see stream.io.Source#read() */ public Data read() throws Exception { return stream.read(); }
/** * @see stream.runtime.LifeCycle#finish() */ @Override public void finish() throws Exception { stream.close(); }
/** * @return * @see stream.io.Source#getId() */ public String getId() { return stream.getId(); }
/** * @param id * @see stream.io.Source#setId(java.lang.String) */ public void setId(String id) { stream.setId(id); }
/** * @see stream.io.Stream#setLimit(java.lang.Long) */ @Override public void setLimit(Long limit) { stream.setLimit(limit); }
/** * @return * @see stream.io.Stream#getLimit() */ public Long getLimit() { return stream.getLimit(); }
/** * @see stream.io.Source#getId() */ @Override public String getId() { return stream.getId(); }
/** * @see stream.io.Source#setId(java.lang.String) */ @Override public void setId(String id) { stream.setId(id); }
/** * @param limit * @see stream.io.Stream#setLimit(java.lang.Long) */ public void setLimit(Long limit) { stream.setLimit(limit); }
/** * @return * @see stream.io.Stream#getLimit() */ public Long getLimit() { return stream.getLimit(); }
/** * @return * @throws Exception * @see stream.io.Source#read() */ public Data read() throws Exception { return stream.read(); }
/** * @throws Exception * @see stream.io.Source#init() */ public void init() throws Exception { stream.init(); }
/** * @throws Exception * @see stream.io.Source#close() */ public void close() throws Exception { stream.close(); }
/** * @return * @see stream.io.Source#getId() */ public String getId() { return stream.getId(); }
/** * @param id * @see stream.io.Source#setId(java.lang.String) */ public void setId(String id) { stream.setId(id); }
/** * @param limit * @see stream.io.Stream#setLimit(java.lang.Long) */ public void setLimit(Long limit) { stream.setLimit(limit); }
/** * @see stream.io.Stream#getLimit() */ @Override public Long getLimit() { return stream.getLimit(); }
/** * @see stream.io.Source#read() */ @Override public Data read() throws Exception { try { Data item = stream.read(); if (item != null) { idx++; } return item; } catch (Exception e) { log.info("Failed to read item {} from stream {}: {}", idx, stream, e.getMessage()); throw e; } }
/** * @see stream.io.Stream#init() */ @Override public void init() throws Exception { stream.init(); }