added stub of new table class

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2165 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent b21824ef16
commit b68f7dec9d

@ -0,0 +1,34 @@
package de.anomic.kelondro;
import java.io.File;
import java.io.IOException;
import java.util.HashMap;
public class kelondroFlexTable extends kelondroFlexWidthArray implements kelondroIndex {
private HashMap index;
public kelondroFlexTable(File path, String tablename, kelondroRow rowdef, boolean exitOnFail) throws IOException {
super(path, tablename, rowdef, exitOnFail);
// fill the index
this.index = new HashMap();
}
public int columnSize(int column) {
return rowdef.width(column);
}
public kelondroRow.Entry get(byte[] key) throws IOException {
return null;
}
public byte[][] put(byte[][] row) throws IOException {
return null;
}
public byte[][] remove(byte[] key) throws IOException {
return null;
}
}

@ -30,8 +30,8 @@ import java.io.IOException;
public class kelondroFlexWidthArray implements kelondroArray {
private kelondroFixedWidthArray[] col;
private kelondroRow rowdef;
protected kelondroFixedWidthArray[] col;
protected kelondroRow rowdef;
public kelondroFlexWidthArray(File path, String tablename, kelondroRow rowdef, boolean exitOnFail) throws IOException {
this.rowdef = rowdef;
@ -75,7 +75,7 @@ public class kelondroFlexWidthArray implements kelondroArray {
}
}
private static final String colfilename(int start, int end) {
protected static final String colfilename(int start, int end) {
String f = Integer.toString(end);
while (f.length() < 3) f = "0" + f;
if (start == end) return "col." + f + ".list";

Loading…
Cancel
Save