public class ObjectBankWrapper<IN extends CoreMap> extends ObjectBank<java.util.List<IN>>
ObjectBank.PathToFileFunction
ifrf, 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.lang.Object o)
Can be slow.
|
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.lang.Object o)
Unsupported Operation.
|
boolean |
removeAll(java.util.Collection<?> c)
Unsupported Operation.
|
boolean |
retainAll(java.util.Collection<?> c)
Unsupported Operation.
|
int |
size()
Can be slow.
|
getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, getLineIterator, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public 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)
ObjectBank
public boolean addAll(java.util.Collection<? extends java.util.List<IN>> c)
ObjectBank
public void clear()
public void clearMemory()
ObjectBank
clearMemory
in class ObjectBank<java.util.List<IN extends CoreMap>>
public boolean contains(java.lang.Object o)
ObjectBank
public boolean containsAll(java.util.Collection<?> c)
ObjectBank
containsAll
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)
ObjectBank
keepInMemory
in class ObjectBank<java.util.List<IN extends CoreMap>>
keep
- Whether to keep contents in memorypublic boolean remove(java.lang.Object o)
ObjectBank
public boolean removeAll(java.util.Collection<?> c)
ObjectBank
public boolean retainAll(java.util.Collection<?> c)
ObjectBank
public int size()
ObjectBank