public class InstanceJoiner extends java.lang.Object implements java.io.Serializable, InstanceProducer, SerialInstanceListener
Constructor and Description |
---|
InstanceJoiner()
Setup the initial states of the member variables
|
Modifier and Type | Method and Description |
---|---|
void |
addInstanceListener(InstanceListener ipl) |
void |
batchFinished()
Signify that this batch of input to the filter is finished.
|
boolean |
getDebug() |
boolean |
input(Instance instance) |
boolean |
inputFormat(Instances instanceInfo)
Sets the format of the input instances.
|
void |
instanceProduced(InstanceEvent e) |
Instances |
outputFormat()
Gets the format of the output instances.
|
Instance |
outputPeek()
Output an instance after filtering but do not remove from the output
queue.
|
void |
removeInstanceListener(InstanceListener ipl) |
void |
secondInstanceProduced(InstanceEvent e) |
void |
setDebug(boolean debug) |
public InstanceJoiner()
public boolean inputFormat(Instances instanceInfo)
instanceInfo
- an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).public Instances outputFormat() throws java.lang.Exception
outputFormat
in interface InstanceProducer
java.lang.Exception
- if no input structure has been defined (or the output
format hasn't been determined yet)public boolean input(Instance instance) throws java.lang.Exception
java.lang.Exception
public void batchFinished() throws java.lang.Exception
java.lang.Exception
- if no input structure has been definedpublic Instance outputPeek() throws java.lang.Exception
outputPeek
in interface InstanceProducer
java.lang.Exception
- if no input structure has been definedpublic void setDebug(boolean debug)
public boolean getDebug()
public void addInstanceListener(InstanceListener ipl)
addInstanceListener
in interface InstanceProducer
public void removeInstanceListener(InstanceListener ipl)
removeInstanceListener
in interface InstanceProducer
public void instanceProduced(InstanceEvent e)
public void secondInstanceProduced(InstanceEvent e)
secondInstanceProduced
in interface SerialInstanceListener