|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.pipe.Pipe cc.mallet.pipe.BranchingPipe
@Deprecated public class BranchingPipe
A Pipe that works like a rule list. Evaluate predicate() on each Pipe in the array; the first one that returns true, call that one ("the called Pipe"), and ignore the remainder in the array. The called Pipe will then get control of the source InstanceIterator until it produces an Instance---in other words it will be able to call next() on the source Pipe as often as necessary to produce an Instance. You must be very careful that none of the iterators from Pipes in the rule list buffer any Instances---in other words they shouldn't call next() to pre-gather any Instances they they themselves don't consume and process immediately. Otherwise, Instances that should have been processed by some other constituent Pipe could get lost in this buffering process.
Constructor Summary | |
---|---|
BranchingPipe()
Deprecated. |
|
BranchingPipe(java.util.Collection<Pipe> pipeList)
Deprecated. |
|
BranchingPipe(Pipe[] pipes)
Deprecated. |
Method Summary | |
---|---|
java.util.Iterator<Instance> |
newIteratorFrom(java.util.Iterator<Instance> source)
Deprecated. Given an InstanceIterator, return a new InstanceIterator whose instances have also been processed by this pipe. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BranchingPipe()
public BranchingPipe(Pipe[] pipes)
public BranchingPipe(java.util.Collection<Pipe> pipeList)
Method Detail |
---|
public java.util.Iterator<Instance> newIteratorFrom(java.util.Iterator<Instance> source)
Pipe
skipIfFalse(Instance)
method.
newIteratorFrom
in class Pipe
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |