mirror of https://github.com/apache/lucene.git
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:
parent
0d0ad900cb
commit
24092aab4c
|
@ -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()) + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue