com.rapidminer.example.set
Class MappedExampleReader

java.lang.Object
  extended by com.rapidminer.example.set.AbstractExampleReader
      extended by com.rapidminer.example.set.MappedExampleReader
All Implemented Interfaces:
ExampleReader, java.util.Iterator<Example>

public class MappedExampleReader
extends AbstractExampleReader

This example reader is based on the given mapping and skips all examples which are not part of the mapping. If an index occurs more than once the example will be returned the number of desired times. For performance reasons the mapping array must have been sorted beforehand.

Author:
Ingo Mierswa, Martin Scholz

Constructor Summary
MappedExampleReader(java.util.Iterator<Example> parent, int[] mapping)
          Constructs a new mapped example reader.
 
Method Summary
 boolean hasNext()
           
 Example next()
           
 
Methods inherited from class com.rapidminer.example.set.AbstractExampleReader
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappedExampleReader

public MappedExampleReader(java.util.Iterator<Example> parent,
                           int[] mapping)
Constructs a new mapped example reader.

Method Detail

hasNext

public boolean hasNext()

next

public Example next()


Copyright © 2001-2009 by Rapid-I