Package org.teiid.common.buffer.impl

Examples of org.teiid.common.buffer.impl.BufferManagerImpl


        return INSTANCE;
    }

  public static BufferManagerImpl createBufferManager() {
    BufferManagerImpl bufferMgr = new BufferManagerImpl();
    try {
      bufferMgr.initialize();
    } catch (TeiidComponentException e) {
      throw new RuntimeException(e);
    }

    // Add unmanaged memory storage manager
    bufferMgr.setStorageManager(new MemoryStorageManager());
    return bufferMgr;
  }
View Full Code Here


public class TestLobManager {

  @Test
  public void testLobPeristence() throws Exception{
   
    BufferManagerImpl buffMgr = BufferManagerFactory.createBufferManager();
    FileStore fs = buffMgr.createFileStore("temp");
   
    ClobType clob = new ClobType(new ClobImpl(new InputStreamFactory() {
      @Override
      public InputStream getInputStream() throws IOException {
        return new ReaderInputStream(new StringReader("Clob contents One"),  Charset.forName(Streamable.ENCODING));
View Full Code Here

    }
       
    public static void doProcess(ProcessorPlan plan, ProcessorDataManager dataManager, List[] expectedResults, CommandContext context) throws Exception {
      BufferManager bufferMgr = context.getBufferManager();
      if (bufferMgr == null) {
          BufferManagerImpl bm = BufferManagerFactory.createBufferManager();
          bm.setProcessorBatchSize(context.getProcessorBatchSize());
          bm.setConnectorBatchSize(context.getProcessorBatchSize());
          context.setBufferManager(bm);
          bufferMgr = bm;
      }
      context.getNextRand(0);
        if (context.getTempTableStore() == null) {
View Full Code Here

TOP

Related Classes of org.teiid.common.buffer.impl.BufferManagerImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.