Package org.apache.xindice.core.data

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


        checkOpened();
        try {
            long pos = findValue(key);
            Page startPage = getPage(pos);
            Value v = readValue(startPage);
            BTreeFilerPageHeader sph = (BTreeFilerPageHeader) startPage.getPageHeader();

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


        valueData[0] = (byte) headerLength;
        valueData[1] = (byte) version;
        System.arraycopy(metadata, 0, valueData, 2, metadata.length);
        System.arraycopy(data, pos, valueData, 2 + metadata.length, len);
        return new Value(valueData);
    }
View Full Code Here

          }

          IndexPattern pattern = new IndexPattern(symbols, ps, nsMap);

          XObject obj = (XObject) s;
          Value val1 = new Value(obj.str());

          IndexQuery iq = new IndexQuerySW(pattern, val1);
          return queryIndexes(nk, iq, ps, obj.getType());
        }
      }
View Full Code Here

        }
        checkOpened();
        try {
            Page startPage = seekRecordPage(key);
            if (startPage != null) {
                Value v = readValue(startPage);
                HashPageHeader sph = (HashPageHeader) startPage.getPageHeader();

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

        /*
         * Exract the data into a Value object.
         */

        Value value = new Value(rawData, rawData[0], rawData.length - rawData[0]);
        if (log.isDebugEnabled()) {
            log.debug("readDatabaseEntry: value: type=" + map.get("type"));
        }

        return new DatabaseEntry(map, value);
View Full Code Here

        this.op = op;
        if (op == SW || op == NSW) {
            byte[] b = new byte[val1.getLength() + 1];
            System.arraycopy(val1.getData(), 0, b, 0, b.length - 1);
            b[b.length - 1] = 127; // TODO: Must fix this
            Value val2 = new Value(b);
            vals = new Value[]{val1, val2};
        } else
            vals = new Value[]{val1};
    }
View Full Code Here

    public IndexQuery(IndexPattern pattern, Value val1, Value val2) {
        this(pattern, IN, val1, val2);
    }

    public IndexQuery(IndexPattern pattern, int op, String val1) {
        this(pattern, op, new Value(val1));
    }
View Full Code Here

    public IndexQuery(IndexPattern pattern, int op, String val1) {
        this(pattern, op, new Value(val1));
    }

    public IndexQuery(IndexPattern pattern, String val1) {
        this(pattern, new Value(val1));
    }
View Full Code Here

    public IndexQuery(IndexPattern pattern, String val1) {
        this(pattern, new Value(val1));
    }

    public IndexQuery(IndexPattern pattern, int op, String val1, String val2) {
        this(pattern, op, new Value(val1), new Value(val2));
    }
View Full Code Here

    public IndexQuery(IndexPattern pattern, int op, String val1, String val2) {
        this(pattern, op, new Value(val1), new Value(val2));
    }

    public IndexQuery(IndexPattern pattern, String val1, String val2) {
        this(pattern, new Value(val1), new Value(val2));
    }
View Full Code Here

TOP

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

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.