01: // kelondroNode.java
02: // (C) 2003 - 2007 by Michael Peter Christen; mc@yacy.net, Frankfurt a. M., Germany
03: // first published 2003 on http://yacy.net
04: //
05: // This is a part of YaCy, a peer-to-peer based web search engine
06: //
07: // $LastChangedDate: 2006-04-02 22:40:07 +0200 (So, 02 Apr 2006) $
08: // $LastChangedRevision: 1986 $
09: // $LastChangedBy: orbiter $
10: //
11: // LICENSE
12: //
13: // This program is free software; you can redistribute it and/or modify
14: // it under the terms of the GNU General Public License as published by
15: // the Free Software Foundation; either version 2 of the License, or
16: // (at your option) any later version.
17: //
18: // This program is distributed in the hope that it will be useful,
19: // but WITHOUT ANY WARRANTY; without even the implied warranty of
20: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21: // GNU General Public License for more details.
22: //
23: // You should have received a copy of the GNU General Public License
24: // along with this program; if not, write to the Free Software
25: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26:
27: package de.anomic.kelondro;
28:
29: import java.io.IOException;
30:
31: public interface kelondroNode {
32:
33: public kelondroHandle handle();
34:
35: public void setOHByte(int i, byte b);
36:
37: public void setOHHandle(int i, kelondroHandle otherhandle);
38:
39: public byte getOHByte(int i);
40:
41: public kelondroHandle getOHHandle(int i);
42:
43: public void commit() throws IOException;
44:
45: public void setValueRow(byte[] row) throws IOException;
46:
47: public boolean valid();
48:
49: public byte[] getKey();
50:
51: public byte[] getValueRow() throws IOException;
52:
53: public String toString();
54:
55: }
|