@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.cursor = delegate.prepareCursor(factory, cancellationHandler); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { intervalIndex = 0; needRecord = true; this.cursor = delegate.prepareCursor(factory, cancellationHandler); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { return delegate.prepareCursor(factory, cancellationHandler); }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { return delegate.prepareCursor(factory, cancellationHandler); }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { nextSlave = false; masterCursor = masterSource.prepareCursor(factory, cancellationHandler); slaveCursor = slaveSource.prepareCursor(factory, cancellationHandler); this.storageFacade.prepare(masterCursor.getStorageFacade(), slaveCursor.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { map.clear(); nextRecord = null; mapCursor = null; this.recordCursor = recordSource.prepareCursor(factory, cancellationHandler); this.storageFacade.prepare(this.recordCursor); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.cursor = delegate.prepareCursor(factory, cancellationHandler); this.storageFacade.of(cursor.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this._top = lo.getLong(null); this._count = hi.getLong(null) - this._top; this.cursor = delegate.prepareCursor(factory, cancellationHandler); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.cursor = delegate.prepareCursor(factory, cancellationHandler); filter.prepare(cursor.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.interceptorWorkingSet = interceptors; map.clear(); this.cursor = recordSource.prepareCursor(factory, cancellationHandler); this.storageFacade.prepare(this.cursor); buildMap(cancellationHandler); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.cursor = delegate.prepareCursor(factory, cancellationHandler); this.storageFacade.prepare(cursor.getStorageFacade()); prepareFunctions(); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.cursor = delegate.prepareCursor(factory, cancellationHandler); storageFacade.prepare(cursor.getStorageFacade(), this.virtualColumnStorageFacade); record.prepare(storageFacade); return this; }
public void print(RecordSource src, ReaderFactory factory, boolean header) throws IOException { RecordCursor cursor = src.prepareCursor(factory); try { print(cursor, header, src.getMetadata()); } finally { cursor.releaseCursor(); } }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.hashTableCursor = null; this.recordMap.clear(); this.slaveCursor = slave.prepareCursor(factory, cancellationHandler); this.masterCursor = master.prepareCursor(factory, cancellationHandler); buildHashTable(cancellationHandler); recordMap.setStorageFacade(slaveCursor.getStorageFacade()); storageFacade.prepare(masterCursor.getStorageFacade(), slaveCursor.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.map.reset(); this.holder.clear(); this.masterCursor = master.prepareCursor(factory, cancellationHandler); this.slaveCursor = slave.prepareCursor(factory, cancellationHandler); map.setSlaveCursor(slaveCursor); holder.setCursor(slaveCursor); storageFacade.prepare(masterCursor.getStorageFacade(), map.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { this.recordHolder.clear(); this.delayedHolder.clear(); this.masterCursor = master.prepareCursor(factory, cancellationHandler); this.slaveCursor = slave.prepareCursor(factory, cancellationHandler); this.recordHolder.setCursor(slaveCursor); this.delayedHolder.setCursor(slaveCursor); this.storageFacade.prepare(masterCursor.getStorageFacade(), slaveCursor.getStorageFacade()); return this; }
@Override public RecordCursor prepareCursor(ReaderFactory factory, CancellationHandler cancellationHandler) { clear(); setSourceCursor(delegate.prepareCursor(factory, cancellationHandler)); if (byRowId) { buildMapByRowId(sourceCursor, cancellationHandler); } else { buildMap(sourceCursor, cancellationHandler); } return setupCursor(); }
protected void assertEmpty(String query) throws ParserException { try (RecordSource src = compiler.compile(FACTORY_CONTAINER.getFactory(), query)) { RecordCursor cursor = src.prepareCursor(FACTORY_CONTAINER.getFactory()); try { Assert.assertFalse(cursor.hasNext()); } finally { cursor.releaseCursor(); } } }
protected void assertThat(String expected, RecordSource rs, boolean header) throws IOException { RecordCursor cursor = rs.prepareCursor(FACTORY_CONTAINER.getFactory()); try { assertThat(expected, cursor, rs.getMetadata(), header); } finally { cursor.releaseCursor(); } TestUtils.assertStrings(rs, FACTORY_CONTAINER.getFactory()); }
protected void assertEmpty(String query) throws ParserException { try (RecordSource src = compiler.compile(getFactory(), query)) { RecordCursor cursor = src.prepareCursor(getFactory()); try { Assert.assertFalse(cursor.hasNext()); } finally { cursor.releaseCursor(); } } }