Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added stub of new table class
orbiterb68f7dec9d89
diff --git a/source/de/anomic/kelondro/kelondroFlexTable.java b/source/de/anomic/kelondro/kelondroFlexTable.javanew file mode 100644index 000000000..8ba7bb3a7--- /dev/null+++ b/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;+ }++}diff --git a/source/de/anomic/kelondro/kelondroFlexWidthArray.java b/source/de/anomic/kelondro/kelondroFlexWidthArray.javaindex 0e8124368..43c06e08f 100644--- a/source/de/anomic/kelondro/kelondroFlexWidthArray.java+++ b/source/de/anomic/kelondro/kelondroFlexWidthArray.java@@ -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";