/** * Ensure the temp table is ready for use. If a temp table other than the one * passed in is returned it should be used instead. * @param tempTable * @param context * @param bufferManager * @param dataMgr * @throws TeiidComponentException * @throws TeiidProcessingException */ public TempTable process(TempTable tempTable) throws TeiidComponentException, TeiidProcessingException { if (!tempTable.getColumnMap().keySet().containsAll(columns)) { //sanity check to make sure that we haven't inappropriately redefined the common table throw new TeiidComponentException("failed to plan common table appropriately " + columns + " " + tempTable.getColumns()); //$NON-NLS-1$ //$NON-NLS-2$ } tempTable.insert(iterator, columns, false, false, null); tempTable.setUpdatable(false); close(); return tempTable; }
/** * Ensure the temp table is ready for use. If a temp table other than the one * passed in is returned it should be used instead. * @param tempTable * @param context * @param bufferManager * @param dataMgr * @throws TeiidComponentException * @throws TeiidProcessingException */ public TempTable process(TempTable tempTable) throws TeiidComponentException, TeiidProcessingException { if (!tempTable.getColumnMap().keySet().containsAll(columns)) { //sanity check to make sure that we haven't inappropriately redefined the common table throw new TeiidComponentException("failed to plan common table appropriately " + columns + " " + tempTable.getColumns()); //$NON-NLS-1$ //$NON-NLS-2$ } tempTable.insert(iterator, columns, false, false, null); tempTable.setUpdatable(false); tempTable.setAllowImplicitIndexing(true); close(); return tempTable; }
/** * Ensure the temp table is ready for use. If a temp table other than the one * passed in is returned it should be used instead. * @param tempTable * @param context * @param bufferManager * @param dataMgr * @throws TeiidComponentException * @throws TeiidProcessingException */ public TempTable process(TempTable tempTable) throws TeiidComponentException, TeiidProcessingException { if (!tempTable.getColumnMap().keySet().containsAll(columns)) { //sanity check to make sure that we haven't inappropriately redefined the common table throw new TeiidComponentException("failed to plan common table appropriately " + columns + " " + tempTable.getColumns()); //$NON-NLS-1$ //$NON-NLS-2$ } tempTable.insert(iterator, columns, false, false, null); tempTable.setUpdatable(false); tempTable.setAllowImplicitIndexing(true); close(); return tempTable; }
@Override public void close() { super.close(); if (workingQp != null) { workingQp.closeProcessing(); } if (working != null) { working.remove(); } if (intermediate != null) { intermediate.remove(); } } }
@Override public void close() { super.close(); if (workingQp != null) { workingQp.closeProcessing(); } if (working != null) { working.remove(); } if (intermediate != null) { intermediate.remove(); } } }
public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }
public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }
@Override public void close() { super.close(); if (workingQp != null) { workingQp.closeProcessing(); } if (working != null) { working.remove(); } if (intermediate != null) { intermediate.remove(); } } }
public void close() throws TeiidComponentException { if (this.tempTableStore != null) { this.tempTableStore.removeTempTables(); if (this.tempTableStore.getProcessors() != null) { for (TableProcessor proc : this.tempTableStore.getProcessors().values()) { proc.close(); } this.tempTableStore.setProcessors(null); } } this.root.close(); }