Package org.exist.storage.io

Examples of org.exist.storage.io.VariableByteInput


            }
            catch( final EXistException e ) {
                LOG.error( e.getMessage(), e );
                return( true );
            }
            VariableByteInput is;

            try {
                is = dbValues.getAsStream( pointer );
            }
            catch( final IOException e ) {
                LOG.error( e.getMessage(), e );
                return( true );
            }

            ValueOccurrences oc = map.get( atomic );

            try {

                while( is.available() > 0 ) {
                    boolean      docAdded       = false;
                    final int          storedDocId    = is.readInt();
                    final int          gidsCount      = is.readInt();
                    final int          size           = is.readFixedInt();
                    final DocumentImpl storedDocument = docs.getDoc( storedDocId );

                    //Exit if the document is not concerned
                    if( storedDocument == null ) {
                        is.skipBytes( size );
                        continue;
                    }
                    NodeId    lastParentId = null;
                    NodeId    previous     = null;
                    NodeId    nodeId;
View Full Code Here


        public boolean indexInfo(Value key, long pointer) throws TerminatedException {
            final CollectionStore store = (CollectionStore) ((NativeBroker)broker).getStorage(NativeBroker.COLLECTIONS_DBX_ID);
            try {
                final byte type = key.data()[key.start() + Collection.LENGTH_COLLECTION_ID + DocumentImpl.LENGTH_DOCUMENT_TYPE];
                final VariableByteInput istream = store.getAsStream(pointer);
                DocumentImpl doc = null;
                if (type == DocumentImpl.XML_FILE) {
                    doc = new DocumentImpl(broker.getBrokerPool());
                    doc.read(istream);
                    updateDocument(broker, doc);
View Full Code Here

TOP

Related Classes of org.exist.storage.io.VariableByteInput

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.