public class ObjectBankWrapper<IN extends CoreMap> extends ObjectBank<java.util.List<IN>>
TODO: We should rearchitect this so that the FeatureFactory-specific stuff is done by a callback to the relevant FeatureFactory.
ObjectBank.PathToFileFunctionifrf, rif| Constructor and Description |
|---|
ObjectBankWrapper(SeqClassifierFlags flags,
ObjectBank<java.util.List<IN>> wrapped,
java.util.Set<java.lang.String> knownLCWords) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.util.List<IN> o)
Unsupported Operation.
|
boolean |
addAll(java.util.Collection<? extends java.util.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(java.util.List<IN> o) |
boolean |
containsAll(java.util.Collection<?> c)
Can be slow.
|
boolean |
isEmpty() |
java.util.Iterator<java.util.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.
|
java.util.List<IN> |
processDocument(java.util.List<IN> doc) |
boolean |
remove(java.util.List<IN> o) |
boolean |
removeAll(java.util.Collection<?> c)
Unsupported Operation.
|
boolean |
retainAll(java.util.Collection<?> c)
Unsupported Operation.
|
int |
size()
Can be slow.
|
java.lang.Object[] |
toArray() |
java.util.List<IN>[] |
toArray(java.util.List<IN>[] o) |
contains, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, remove, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ObjectBankWrapper(SeqClassifierFlags flags, ObjectBank<java.util.List<IN>> wrapped, java.util.Set<java.lang.String> knownLCWords)
public java.util.Iterator<java.util.List<IN>> iterator()
public boolean add(java.util.List<IN> o)
ObjectBankpublic boolean addAll(java.util.Collection<? extends java.util.List<IN>> c)
ObjectBankpublic void clear()
public void clearMemory()
ObjectBankclearMemory in class ObjectBank<java.util.List<IN extends CoreMap>>public boolean contains(java.util.List<IN> o)
public boolean containsAll(java.util.Collection<?> c)
ObjectBankcontainsAll in interface java.util.Collection<java.util.List<IN extends CoreMap>>containsAll in class ObjectBank<java.util.List<IN extends CoreMap>>public boolean isEmpty()
public void keepInMemory(boolean keep)
ObjectBankkeepInMemory in class ObjectBank<java.util.List<IN extends CoreMap>>keep - Whether to keep contents in memorypublic boolean remove(java.util.List<IN> o)
public boolean removeAll(java.util.Collection<?> c)
ObjectBankpublic boolean retainAll(java.util.Collection<?> c)
ObjectBankpublic int size()
ObjectBankpublic java.lang.Object[] toArray()