Skip to content

Commit

Permalink
added stub of new table class
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2165 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
orbiter committed Jun 1, 2006
1 parent b21824e commit b68f7de
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
34 changes: 34 additions & 0 deletions source/de/anomic/kelondro/kelondroFlexTable.java
@@ -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;
}

}
6 changes: 3 additions & 3 deletions source/de/anomic/kelondro/kelondroFlexWidthArray.java
Expand Up @@ -30,8 +30,8 @@

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;
Expand Down Expand Up @@ -75,7 +75,7 @@ public kelondroFlexWidthArray(File path, String tablename, kelondroRow rowdef, b
}
}

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";
Expand Down

0 comments on commit b68f7de

Please sign in to comment.