Package org.apache.xindice.core.data

Examples of org.apache.xindice.core.data.Record


                }
                return document;
            }
        }

        Record record = filer.readRecord(key);
        if (record == null) {
            return null;
        }

        Value value;
        InlineMetaMap metaMap = null;
        if (inlineMetaService == null) {
            value = record.getValue();

            if (log.isTraceEnabled()) {
                log.trace(localDebugHeader + "Type is not available, Length=" + value.getLength());
            }
        } else {
            InlineMetaService.DatabaseEntry databaseEntry = inlineMetaService.readDatabaseEntry(record.getValue());
            metaMap = databaseEntry.map;
            value = databaseEntry.value;

            if (log.isTraceEnabled()) {
                log.trace(localDebugHeader + "Type=" + metaMap.get("type") + ", Length=" + value.getLength());
View Full Code Here


            HashMap meta = new HashMap(2, 1.5F);
            meta.put(Record.CREATED, new Long(sph.getCreated()));
            meta.put(Record.MODIFIED, new Long(sph.getModified()));

            return new Record(key, v, meta);
        } catch (BTreeNotFoundException e) {
            if (log.isDebugEnabled()) {
                log.debug("Record '" + key + "' not found: " + e);
            }
        } catch (IOException e) {
View Full Code Here

                HashMap meta = new HashMap(2);
                meta.put(Record.CREATED, new Long(sph.getCreated()));
                meta.put(Record.MODIFIED, new Long(sph.getModified()));

                return new Record(key, v, meta);
            }
        } catch (Exception e) {
            if (log.isWarnEnabled()) {
                log.warn("ignored exception", e);
            }
View Full Code Here

            this.set = set;
        }

        public Container getNextContainer() throws DBException {
            if (set.hasMoreRecords()) {
                Record rec = set.getNextRecord();
                Key key = rec.getKey();
                Value val = rec.getValue();
                if (val.getLength() > 0) {
                    try {
                        if (compressed) {
                            Document doc = new DocumentImpl(val.getData(), symbols, new NodeSource(Collection.this, key));
                            return new ColContainer(key, doc);
View Full Code Here

        if (value == null) {
            throw new FilerException(FaultCodes.DBE_CANNOT_CREATE, "Invalid null value");
        }
        checkOpened();
        checkReadOnly();
        hashTable.put(key, new Record(key, value));
        return true;
    }
View Full Code Here

        if (value == null) {
            throw new FilerException(FaultCodes.DBE_CANNOT_CREATE, "Invalid null value");
        }
        checkOpened();
        checkReadOnly();
        hashTable.put(key, new Record(key, value));
        return true;
    }
View Full Code Here

            HashMap meta = new HashMap(2, 1.5F);
            meta.put(Record.MODIFIED, new Long(file.lastModified()));

            byte[] valueData = cache.getFile(file);
            if (valueData != null) {
                return new Record(key, new Value(valueData), meta);
            }
        } catch (IOException e) {
            throw new FilerException(FaultCodes.DBE_CANNOT_READ,
                                     "Can't read record '" + key + "': " + e.getMessage(), e);
        } finally {
View Full Code Here

TOP

Related Classes of org.apache.xindice.core.data.Record

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.