Package org.teiid.common.buffer

Examples of org.teiid.common.buffer.FileStore


  public TestSAXDocumentInProgress(String name) {
    super(name);
  }
   
    public void testLargeDocument()throws Exception{
    FileStore fs = BufferManagerFactory.getStandaloneBufferManager().createFileStore("test"); //$NON-NLS-1$
      DocumentInProgress doc = new DocumentInProgress(fs, Streamable.ENCODING);
      //long startTime = System.currentTimeMillis();
      doc.setDocumentFormat(true);
        NodeDescriptor descriptor = NodeDescriptor.createNodeDescriptor("Root", null, true, null, null, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE);//$NON-NLS-1$
        doc.addElement(descriptor, (NodeDescriptor)null);     
View Full Code Here


        Program program = new Program();
        program.addInstruction(addNodeInstruction);
       
    env.pushProgram(program);
       
    FileStore fs = BufferManagerFactory.getStandaloneBufferManager().createFileStore("test"); //$NON-NLS-1$
        DocumentInProgress doc = new DocumentInProgress(fs, Streamable.ENCODING);
        env.setDocumentInProgress(doc);
       
        //add fake root, move to child
        NodeDescriptor descriptor = NodeDescriptor.createNodeDescriptor("root", null, true, null, namespaceDeclarations, null,false, null, MappingNodeConstants.NORMALIZE_TEXT_PRESERVE); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.teiid.common.buffer.FileStore

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.