private SourceURL createUrl(String fileName) throws Exception { String urlString = url.getProtocol() + ":" + url.getPath() + "/" + fileName; return new SourceURL(urlString); }
/** * @return * @see stream.io.Source#getId() */ public String getId() { return stream.getId(); }
/** * @see stream.io.Stream#init() */ @Override public void init() throws Exception { stream.init(); } }
/** * @see stream.runtime.LifeCycle#finish() */ @Override public void finish() throws Exception { stream.close(); }
/** * @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(); }
public boolean hasTable(String name) { if (tableExists) return true; tableExists = super.hasTable(name); return tableExists; }
/** * @see stream.urls.Connection#disconnect() */ @Override public void disconnect() throws IOException { if (seqFileStream != null) { seqFileStream.close(); seqFileStream = null; } } }
@Override public void init() throws Exception { super.init(); lineNo = 0L; }
/** * @see stream.io.SourceURL#getParameters() */ @Override public Map<String, String> getParameters() { return super.getParameters(); } }
/** * @see stream.io.Sink#write(stream.Data) */ @Override public boolean write(Data item) throws Exception { return insert(item); }
/** * @see stream.io.QueueService#level() */ @Override public int level() { return size(); }
/** * @throws Exception * @see stream.io.Source#init() */ public void init() throws Exception { stream.init(); }
/** * @see stream.urls.Connection#disconnect() */ @Override public void disconnect() throws IOException { if (seqFileStream != null) { seqFileStream.close(); seqFileStream = null; } } }
/** * @see stream.io.Stream#init() */ @Override public void init() throws Exception { stream.init(); }
/** * @throws Exception * @see stream.io.Source#init() */ public void init() throws Exception { stream.init(); }