mirror of https://github.com/apache/lucene.git
clean up getValueCount impl
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1430861 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a1ff333b26
commit
42113ec733
|
@ -193,8 +193,7 @@ class Lucene41SimpleDocValuesProducer extends SimpleDVProducer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SortedDocValues getSorted(FieldInfo field) throws IOException {
|
public SortedDocValues getSorted(FieldInfo field) throws IOException {
|
||||||
// nocommit: ugly hack to nuke size()
|
final int valueCount = binaries.get(field.number).count;
|
||||||
final BinaryEntry binaryEntry = binaries.get(field.number);
|
|
||||||
final BinaryDocValues binary = getBinary(field);
|
final BinaryDocValues binary = getBinary(field);
|
||||||
final NumericDocValues ordinals = getNumeric(field, ords.get(field.number));
|
final NumericDocValues ordinals = getNumeric(field, ords.get(field.number));
|
||||||
return new SortedDocValues() {
|
return new SortedDocValues() {
|
||||||
|
@ -211,7 +210,7 @@ class Lucene41SimpleDocValuesProducer extends SimpleDVProducer {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int getValueCount() {
|
public int getValueCount() {
|
||||||
return binaryEntry.count;
|
return valueCount;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue