Package com.dbxml.xml.dtsm

Examples of com.dbxml.xml.dtsm.CompressedTable


         try {
            // If the inserted Document doesn't use this Collection's
            // SymbolTable, then it will have to be copied into a
            // conformant TableBuilder.  This is slower than doing it
            // correctly in the first place, but it isn't too bad.
            CompressedTable ct;
            if ( document.getSymbolTable() != symbols )
               ct = DTSMHelper.compressTable(DTSMHelper.copyTable(document, symbols));
            else
               ct = DTSMHelper.compressTable(document);

            value = new Value(ct.getData());
            document = ct;
         }
         catch ( Exception e ) {
            throw new DBException(FaultCodes.COL_CANNOT_STORE, "Error storing Document '" + key + "'", e);
         }
View Full Code Here


         Value value = record.getValue();

         try {
            if ( type == ITYPE_COMPRESSED )
               doc = new CompressedTable(value.getData(), symbols);
            else
               doc = DTSMHelper.bytesToTable(value.getData(), symbols);
         }
         catch ( DTSMException e ) {
            throw new DBException(FaultCodes.COL_CANNOT_RETRIEVE, "Error retrieving Document '" + key + "'", e);
View Full Code Here

            root.appendChild(doc.createTextNode("\n"));
         }
         while ( rs.next() );

         DocumentTable dt = DTSMHelper.documentToTable(doc, st);
         CompressedTable ct = DTSMHelper.compressTable(dt);
         return new Record(key, new Value(ct.getData()));
      }
      catch ( Exception e ) {
         e.printStackTrace(System.err);
      }
      finally {
View Full Code Here

         DocBuilder builder = new DocBuilder(rs);
         Document doc = builder.getDocument();

         if ( doc != null ) {
            DocumentTable dt = DTSMHelper.documentToTable(doc, st);
            CompressedTable ct = DTSMHelper.compressTable(dt);
            return new Record(key, new Value(ct.getData()));
         }
      }
      catch ( Exception e ) {
         e.printStackTrace(System.err);
      }
View Full Code Here

TOP

Related Classes of com.dbxml.xml.dtsm.CompressedTable

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.