termPostingsList method
Returns the list of all the DocPostingsMapEntry for the terms
from the PostingsMap.
Returns all the DocPostingsMapEntry instances for all terms in
the PostingsMap if terms
is null.
Implementation
List<DocPostingsMapEntry> termPostingsList([Iterable<String>? terms]) {
final List<DocPostingsMapEntry> termPostings = [];
if (terms != null) {
for (final term in terms) {
final entry = this[term];
if (entry != null) {
termPostings.addAll(entry.entries);
}
}
} else {
for (final entry in values) {
termPostings.addAll(entry.entries);
}
}
return termPostings;
}