fix for new index location and better way to use own classes by reflection

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6406 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 16 years ago
parent 7a3bbd950f
commit 0f6b011e1a

@ -149,14 +149,11 @@ public class MergeIterator<E> implements CloneableIterator<E> {
static {
Method meth = null;
try {
final Class<?> c = Class.forName("net.yacy.kelondro.order.MergeIterator");
final Class<?> c = net.yacy.kelondro.order.MergeIterator.class;
meth = c.getMethod("mergeEqualByReplace", new Class[]{Object.class, Object.class});
} catch (final SecurityException e) {
System.out.println("Error while initializing simpleMerge (1): " + e.getMessage());
meth = null;
} catch (final ClassNotFoundException e) {
System.out.println("Error while initializing simpleMerge (2): " + e.getMessage());
meth = null;
} catch (final NoSuchMethodException e) {
System.out.println("Error while initializing simpleMerge (3): " + e.getMessage());
meth = null;

@ -215,14 +215,11 @@ public class ReferenceContainer<ReferenceType extends Reference> extends RowSet
static {
Method meth = null;
try {
final Class<?> c = Class.forName("net.yacy.kelondro.rwi.ReferenceContainer");
final Class<?> c = net.yacy.kelondro.rwi.ReferenceContainer.class;
meth = c.getMethod("mergeUnique", new Class[]{Object.class, Object.class});
} catch (final SecurityException e) {
System.out.println("Error while initializing containerMerge.SecurityException: " + e.getMessage());
meth = null;
} catch (final ClassNotFoundException e) {
System.out.println("Error while initializing containerMerge.ClassNotFoundException: " + e.getMessage());
meth = null;
} catch (final NoSuchMethodException e) {
System.out.println("Error while initializing containerMerge.NoSuchMethodException: " + e.getMessage());
meth = null;

@ -318,7 +318,7 @@ public final class ReferenceContainerArray<ReferenceType extends Reference> {
HandleMap references = new HandleMap(payloadrow.primaryKeyLength, termOrder, 4, 0, 1000000);
String[] files = heapLocation.list();
for (String f: files) {
if (f.length() < 22 || !f.startsWith("index") || !f.endsWith(".blob")) continue;
if (f.length() < 22 || !f.startsWith("text.index") || !f.endsWith(".blob")) continue;
File fl = new File(heapLocation, f);
System.out.println("CELL REFERENCE COLLECTION opening blob " + fl);
CloneableIterator<ReferenceContainer<ReferenceType>> ei = new ReferenceIterator<ReferenceType>(fl, factory, payloadrow);

Loading…
Cancel
Save