Skip to content

Commit

Permalink
remove dead code, fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald authored Oct 11, 2023
1 parent 267eabf commit 20e5355
Showing 1 changed file with 4 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,30 +20,6 @@ public MultiInvertedIndexInputStream(Iterator<Map.Entry<String,LexiconEntry>> it
this.mindex = mindex;
this.iterLex = iterLex;
}

// List<Iterator<Map.Entry<String,LexiconEntry>> iterLexs;
// List<Iterator<Map.Entry<Map.Entry<String,LexiconEntry>,Integer>> iterLexsOffset = new ArrayList<>();
// for (int i=0;i<iterLexs.size();i++) {
// iterLexsOffset.add(IteratorUtils.addOffset(iterLexs.get(i), i));
// }

// var lexIterOffset = IteratorUtils.merge(
// // comparator
// (Map.Entry<Map.Entry<String,LexiconEntry>,Integer> term1, Map.Entry<Map.Entry<String,LexiconEntry>,Integer> term2) -> term1.getKey().getKey().compareTo(term2.getKey().getKey()),
// // merger
// (Map.Entry<Map.Entry<String,LexiconEntry>,Integer> term1, Map.Entry<Map.Entry<String,LexiconEntry>,Integer> term2) -> new MapEntry(
// term1.getKey(),
// makeMLE(term1.getKey().getValue(), term2.getLey().getValue(), term1.getValue(), term2.getValue() )),
// // iterators
// (Iterator<Map.Entry<Map.Entry<String,LexiconEntry>>,Integer>[]) iters.toArray(new Iterator<?>[iters.size()]));
//}

// MultiLexiconEntry makeMLE(LexiconEntry le_a, LexiconEntry le_b, int pos_a, int pos_b) {
// LexiconEntry children = new LexiconEntry[offset.length];
// children[pos_a] = le_a;
// children[pos_b] = le_b;
// return new MultiLexiconEntry(children, 0);
// }

public IterablePosting getNextPostings() throws IOException {
if (! iterLex.hasNext())
Expand Down Expand Up @@ -71,13 +47,13 @@ public IterablePosting next() {
}
}

/** Returns the number of postings in the current IterablePosting object */
public int getNumberOfCurrentPostings() {
/** Returns the number of postings in the current IterablePosting object */
public int getNumberOfCurrentPostings() {
return le.getNumberOfEntries();
}

/** Returns the pointer associated with the current postings being accessed */
public Pointer getCurrentPointer() {
/** Returns the pointer associated with the current postings being accessed */
public Pointer getCurrentPointer() {
return le;
}

Expand Down

0 comments on commit 20e5355

Please sign in to comment.