Package xbird.xquery.dm.dtm

Examples of xbird.xquery.dm.dtm.DocumentTable


        final String fileName = FileUtils.getFileName(docFile);
        if(USE_MMAP) {
            return new MemoryMappedDocumentTable(col, fileName, null, false);
        } else {
            if(filesize < FIVE_HUNDREDS_MEGA_BYTES) {
                return new DocumentTable(col, fileName);
            } else if(filesize < TWO_GIGA_BYTES) {
                return new DocumentTable.PersistentDocumentTable(col, fileName);
            } else {
                return new BigDocumentTable.PersistentBigDocumentTable(col, fileName);
            }
View Full Code Here


    }

    private V _put(String docName, V value) {
        V prev = _remove(docName);

        IDocumentTable doc = new DocumentTable(collection, docName);

        // cache the document
        String docid = collection.getAbsolutePath() + File.separatorChar + docName;
        DocumentTableLoader.putDocumentIfAbsent(docid, doc);
View Full Code Here

    private final String[] _pendingElem = new String[3];
    private final List<Attribute> _pendingAtts = new ArrayList<Attribute>(8);
    private final List<Namespace> _pendingNSDecls = new ArrayList<Namespace>(4);

    public DTMTreeBuilder() {
        this._table = new DocumentTable(); // TODO not efficient at memory-usage, there may be lots of nodes in result sequnece.
        this._model = new DocumentTableModel(_table, true);
    }
View Full Code Here

    public DocumentTableModel(boolean parseAsHtml) {
        this(parseAsHtml, resolveEntity);
    }

    public DocumentTableModel(boolean parseAsHtml, boolean resolveEntity) {
        this(profileAccessPattern != null ? getProfiledDocumentTable() : new DocumentTable(), false, parseAsHtml, resolveEntity);
    }
View Full Code Here

        final String fileName = FileUtils.getFileName(docFile);
        if(USE_MMAP) {
            return new MemoryMappedDocumentTable(col, fileName, null, false);
        } else {
            if(filesize < FIVE_HUNDREDS_MEGA_BYTES) {
                return new DocumentTable(col, fileName);
            } else if(filesize < TWO_GIGA_BYTES) {
                return new DocumentTable.PersistentDocumentTable(col, fileName);
            } else {
                return new BigDocumentTable.PersistentBigDocumentTable(col, fileName);
            }
View Full Code Here

        this._handler = null;
        this._reader = null;
    }

    public DocumentTableModel(boolean parseAsHtml) {
        this(profileAccessPattern != null ? getProfiledDocumentTable() : new DocumentTable(), false, parseAsHtml);
    }
View Full Code Here

TOP

Related Classes of xbird.xquery.dm.dtm.DocumentTable

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.