add toString for debugging

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1364064 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-07-21 10:43:20 +00:00
parent 0d0ad900cb
commit 24092aab4c
1 changed files with 11 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package org.apache.lucene.index;
import org.apache.lucene.util.BytesRef;
import java.io.IOException;
import java.util.Arrays;
/**
* Exposes flex API, merged from flex API of sub-segments.
@ -150,6 +151,16 @@ public final class MultiDocsAndPositionsEnum extends DocsAndPositionsEnum {
public final static class EnumWithSlice {
public DocsAndPositionsEnum docsAndPositionsEnum;
public ReaderSlice slice;
@Override
public String toString() {
return slice.toString()+":"+docsAndPositionsEnum;
}
}
@Override
public String toString() {
return "MultiDocsAndPositionsEnum(" + Arrays.toString(getSubs()) + ")";
}
}