
if (new File(termsFilename).length() == 0L) {
</BUG>
return new NullIntTermIterator(docsFilename);
}
<BUG>final String indexFilename = Files.buildPath(directory, "fld-"+field);
</BUG>
try {
return new SimpleIntTermIteratorImpl(mapCache, termsFilename, docsFilename, indexFilename);
} catch (IOException e) {

public DocIdStream getDocIdStream() {
return useNativeDocIdStream ? new NativeDocIdStream(mapCache) : new SimpleDocIdStream(mapCache);
}
@Override
public SimpleIntTermIterator getIntTermIterator(String field) {
final String termsFilename = CachedFile.buildPath(directory, SimpleIntFieldWriter.getTermsFilename(field));
final String docsFilename = CachedFile.buildPath(directory, SimpleIntFieldWriter.getDocsFilename(field));
if (CachedFile.create(termsFilename).length() == 0L) {
return new NullIntTermIterator(docsFilename);
}
final String indexFilename = CachedFile.buildPath(directory, "fld-"+field);
try {
return new SimpleIntTermIteratorImpl(mapCache, termsFilename, docsFilename, indexFilename);
} catch (IOException e) {
