fix compile failure in Ryan's commit (LUCENE-2671)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1023386 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2010-10-16 22:27:52 +00:00
parent 6d269ad807
commit c92cf927d2
1 changed files with 6 additions and 6 deletions

View File

@ -356,12 +356,12 @@ public class FieldCacheImpl implements FieldCache { // Made Public so that
}
public DocTermsIndex getTermsIndex(IndexReader reader, String field) throws IOException {
return getTermsIndex(reader, field, new DocTermsIndexCreator<DocTermsIndex>( field ) );
return getTermsIndex(reader, field, new DocTermsIndexCreator(field));
}
public DocTermsIndex getTermsIndex(IndexReader reader, String field, boolean fasterButMoreRAM) throws IOException {
return getTermsIndex(reader, field, new DocTermsIndexCreator<DocTermsIndex>( field,
fasterButMoreRAM ? DocTermsIndexCreator.FASTER_BUT_MORE_RAM : 0 ) );
return getTermsIndex(reader, field, new DocTermsIndexCreator(field,
fasterButMoreRAM ? DocTermsIndexCreator.FASTER_BUT_MORE_RAM : 0));
}
@SuppressWarnings("unchecked")
@ -372,12 +372,12 @@ public class FieldCacheImpl implements FieldCache { // Made Public so that
// TODO: this if DocTermsIndex was already created, we
// should share it...
public DocTerms getTerms(IndexReader reader, String field) throws IOException {
return getTerms(reader, field, new DocTermsCreator<DocTerms>( field ) );
return getTerms(reader, field, new DocTermsCreator(field));
}
public DocTerms getTerms(IndexReader reader, String field, boolean fasterButMoreRAM) throws IOException {
return getTerms(reader, field, new DocTermsCreator<DocTerms>( field,
fasterButMoreRAM ? DocTermsCreator.FASTER_BUT_MORE_RAM : 0 ) );
return getTerms(reader, field, new DocTermsCreator(field,
fasterButMoreRAM ? DocTermsCreator.FASTER_BUT_MORE_RAM : 0));
}
@SuppressWarnings("unchecked")