private void processAsynch() { if (!running) { running = true; getContext().getExecutor().execute(new Runnable() { @Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } }); } }
private void processAsynch() { if (!running) { running = true; getContext().getExecutor().execute(new Runnable() { @Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } }); } }
private void processAsynch() { if (!running) { running = true; getContext().getExecutor().execute(new Runnable() { @Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } }); } }
@Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } });
@Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } });
@Override public void run() { try { process(); } catch (TeiidRuntimeException e) { asynchException = e; } catch (Throwable e) { asynchException = new TeiidRuntimeException(e); } finally { running = false; RequestWorkItem workItem = TextTableNode.this.getContext().getWorkItem(); if (workItem != null) { workItem.moreWork(); } else { synchronized (TextTableNode.this) { TextTableNode.this.notifyAll(); } } } } });
private void processHeader(List<String> line) { nameIndexes = new HashMap<String, Integer>(); this.lineWidth = DataTypeManager.MAX_STRING_LENGTH * line.size(); for (String string : line) { if (string == null) { continue; } nameIndexes.put(string.toUpperCase(), nameIndexes.size()); } for (TextColumn col : table.getColumns()) { if (col.isOrdinal()) { continue; } String name = col.getName().toUpperCase(); if (col.getHeader() != null) { name = col.getHeader().toUpperCase(); } Integer index = nameIndexes.get(name); if (index == null) { getContext().addWarning(new TeiidProcessingException(QueryPlugin.Event.TEIID30181, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30181, col.getName(), systemId))); } nameIndexes.put(col.getName(), index); } }
private void processHeader(List<String> line) { nameIndexes = new HashMap<String, Integer>(); this.lineWidth = DataTypeManager.MAX_STRING_LENGTH * line.size(); for (String string : line) { if (string == null) { continue; } nameIndexes.put(string.toUpperCase(), nameIndexes.size()); } for (TextColumn col : table.getColumns()) { if (col.isOrdinal()) { continue; } String name = col.getName().toUpperCase(); if (col.getHeader() != null) { name = col.getHeader().toUpperCase(); } Integer index = nameIndexes.get(name); if (index == null) { getContext().addWarning(new TeiidProcessingException(QueryPlugin.Event.TEIID30181, QueryPlugin.Util.gs(QueryPlugin.Event.TEIID30181, col.getName(), systemId))); } nameIndexes.put(col.getName(), index); } }
if (this.getContext().getWorkItem() == null) {
if (this.getContext().getWorkItem() == null) {
if (this.getContext().getWorkItem() == null) {