mirror of https://github.com/apache/lucene.git
fix nocommits
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1438568 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12cfd1f840
commit
b7bcad0360
|
@ -77,7 +77,7 @@ public abstract class DocValuesConsumer implements Closeable {
|
|||
}
|
||||
assert nextIsSet;
|
||||
nextIsSet = false;
|
||||
// nocommit make a mutable number
|
||||
// TODO: make a mutable number
|
||||
return nextValue;
|
||||
}
|
||||
|
||||
|
@ -146,7 +146,7 @@ public abstract class DocValuesConsumer implements Closeable {
|
|||
}
|
||||
assert nextIsSet;
|
||||
nextIsSet = false;
|
||||
// nocommit make a mutable number
|
||||
// TODO: make a mutable number
|
||||
return nextValue;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,8 +30,9 @@ import org.apache.lucene.util.IOUtils;
|
|||
|
||||
final class DocValuesProcessor extends StoredFieldsConsumer {
|
||||
|
||||
// nocommit wasteful we also keep a map ... double the
|
||||
// hash lookups ... would be better if DFP had "the one map"?
|
||||
// TODO: somewhat wasteful we also keep a map here; would
|
||||
// be more efficient if we could "reuse" the map/hash
|
||||
// lookup DocFieldProcessor already did "above"
|
||||
private final Map<String,DocValuesWriter> writers = new HashMap<String,DocValuesWriter>();
|
||||
private final Counter bytesUsed;
|
||||
|
||||
|
|
|
@ -62,12 +62,7 @@ class TwoStoredFieldsConsumers extends StoredFieldsConsumer {
|
|||
|
||||
@Override
|
||||
void finishDocument() throws IOException {
|
||||
// nocommit must this be a try/finally...? i'd prefer
|
||||
// not ...
|
||||
try {
|
||||
first.finishDocument();
|
||||
} finally {
|
||||
second.finishDocument();
|
||||
}
|
||||
first.finishDocument();
|
||||
second.finishDocument();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue