public class ObjectBankWrapper<IN extends CoreMap> extends ObjectBank<List<IN>>
ObjectBank.PathToFileFunctionifrf, rif| Constructor and Description |
|---|
ObjectBankWrapper(SeqClassifierFlags flags,
ObjectBank<List<IN>> wrapped,
Set<String> knownLCWords) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(List<IN> o)
Unsupported Operation.
|
boolean |
addAll(Collection<? extends List<IN>> c)
Unsupported Operation.
|
void |
clear() |
void |
clearMemory()
If you are keeping the contents in memory,
this will clear the memory, and they will be
recomputed the next time iterator() is
called.
|
boolean |
contains(Object o)
Can be slow.
|
boolean |
containsAll(Collection<?> c)
Can be slow.
|
boolean |
isEmpty() |
Iterator<List<IN>> |
iterator() |
void |
keepInMemory(boolean keep)
Tells the ObjectBank to store all of
its contents in memory so that it doesn't
have to be recomputed each time you iterate
through it.
|
List<IN> |
processDocument(List<IN> doc) |
boolean |
remove(Object o)
Unsupported Operation.
|
boolean |
removeAll(Collection<?> c)
Unsupported Operation.
|
boolean |
retainAll(Collection<?> c)
Unsupported Operation.
|
int |
size()
Can be slow.
|
getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streampublic ObjectBankWrapper(SeqClassifierFlags flags, ObjectBank<List<IN>> wrapped, Set<String> knownLCWords)
public boolean add(List<IN> o)
ObjectBankadd in interface Collection<List<IN extends CoreMap>>add in class ObjectBank<List<IN extends CoreMap>>public boolean addAll(Collection<? extends List<IN>> c)
ObjectBankaddAll in interface Collection<List<IN extends CoreMap>>addAll in class ObjectBank<List<IN extends CoreMap>>public void clear()
clear in interface Collection<List<IN extends CoreMap>>clear in class ObjectBank<List<IN extends CoreMap>>public void clearMemory()
ObjectBankclearMemory in class ObjectBank<List<IN extends CoreMap>>public boolean contains(Object o)
ObjectBankcontains in interface Collection<List<IN extends CoreMap>>contains in class ObjectBank<List<IN extends CoreMap>>public boolean containsAll(Collection<?> c)
ObjectBankcontainsAll in interface Collection<List<IN extends CoreMap>>containsAll in class ObjectBank<List<IN extends CoreMap>>public boolean isEmpty()
isEmpty in interface Collection<List<IN extends CoreMap>>isEmpty in class ObjectBank<List<IN extends CoreMap>>public void keepInMemory(boolean keep)
ObjectBankkeepInMemory in class ObjectBank<List<IN extends CoreMap>>keep - Whether to keep contents in memorypublic boolean remove(Object o)
ObjectBankremove in interface Collection<List<IN extends CoreMap>>remove in class ObjectBank<List<IN extends CoreMap>>public boolean removeAll(Collection<?> c)
ObjectBankremoveAll in interface Collection<List<IN extends CoreMap>>removeAll in class ObjectBank<List<IN extends CoreMap>>public boolean retainAll(Collection<?> c)
ObjectBankretainAll in interface Collection<List<IN extends CoreMap>>retainAll in class ObjectBank<List<IN extends CoreMap>>public int size()
ObjectBanksize in interface Collection<List<IN extends CoreMap>>size in class ObjectBank<List<IN extends CoreMap>>