add getters for mapper service and field data cache in doc lookup

This commit is contained in:
Shay Banon 2012-02-16 00:01:17 +02:00
parent d8f18dd812
commit 4a8d6deae6
1 changed files with 8 additions and 0 deletions

View File

@ -58,6 +58,14 @@ public class DocLookup implements Map {
this.fieldDataCache = fieldDataCache;
}
public MapperService mapperService() {
return this.mapperService;
}
public FieldDataCache fieldDataCache() {
return this.fieldDataCache;
}
public void setNextReader(IndexReader reader) {
if (this.reader == reader) { // if we are called with the same reader, don't invalidate source
return;