clean up a little bit

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1442133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-02-04 14:31:51 +00:00
parent 6a9d2a65c1
commit 5775a408ca
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ public class BytesRefFieldSource extends FieldCacheSource {
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException {
final FieldInfo fieldInfo = readerContext.reader().getFieldInfos().fieldInfo(field);
// To be sorted or not to be sorted, that is the question
// nocommit: do it cleaner?
if (fieldInfo != null && fieldInfo.hasDocValues() && fieldInfo.getDocValuesType() == DocValuesType.BINARY) {
// TODO: do it cleaner?
if (fieldInfo != null && fieldInfo.getDocValuesType() == DocValuesType.BINARY) {
final BinaryDocValues binaryValues = FieldCache.DEFAULT.getTerms(readerContext.reader(), field);
return new FunctionValues() {