Package net.yacy.kelondro.index

Examples of net.yacy.kelondro.index.Index


        if (r == null) return null;
        return UTF8.String(r);
    }

    public byte[] getRelation(final String name, final byte[] key) throws IOException, RowSpaceExceededException {
        final Index table = getRelation(name);
        if (table == null) return null;
        final Row.Entry entry = table.get(key, false);
        if (entry == null) return null;
        return entry.getColBytes(3, true);
    }
View Full Code Here


        if (entry == null) return null;
        return entry.getColBytes(3, true);
    }

    public boolean hasRelation(final String name, final byte[] key) throws RowSpaceExceededException {
        final Index table = getRelation(name);
        if (table == null) return false;
        return table.has(key);
    }
View Full Code Here

        if (table == null) return false;
        return table.has(key);
    }

    public byte[] removeRelation(final String name, final byte[] key) throws IOException, RowSpaceExceededException {
        final Index table = getRelation(name);
        if (table == null) return null;
        final Row.Entry entry = table.remove(key);
        if (entry == null) return null;
        return entry.getColBytes(3, true);
    }
View Full Code Here

TOP

Related Classes of net.yacy.kelondro.index.Index

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.