/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
private int indexDivisor;
private int termIndexInterval;
super.setUp();
directory = newDirectory();
r.close();
FieldInfos fieldInfos = new FieldInfos(directory, IndexFileNames.segmentFileName(segment, IndexFileNames.FIELD_INFOS_EXTENSION));
String segmentFileName = IndexFileNames.segmentFileName(segment, IndexFileNames.TERMS_INDEX_EXTENSION);
termEnum = new SegmentTermEnum(directory.openInput(IndexFileNames.segmentFileName(segment, IndexFileNames.TERMS_EXTENSION), readBufferSize), fieldInfos, false);
}
super.tearDown();
}
int indexPosition = 3;
}
}
}
for (Term t : sampleTerms) {
}
}
} else {
}
}
return sample;
}
for (int i = 0; i < termPosition; i++) {
fail("Should not have run out of terms.");
}
}
}
private int populate(Directory directory) throws CorruptIndexException, LockObtainFailedException, IOException {
// turn off compound file, this test will open some index files directly.
mp.setUseCompoundFile(false);
for (int i = 0; i < NUMBER_OF_DOCUMENTS; i++) {
for (int f = 0; f < NUMBER_OF_FIELDS; f++) {
}
}
return config.getTermIndexInterval();
}
}
}