public class IntegerBalanceSegregator extends java.lang.Object implements Segregator
| Constructor and Description |
|---|
IntegerBalanceSegregator()
Default constructor.
|
IntegerBalanceSegregator(InputField target,
int count)
Construct an integer balance segregator.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
dumpCounts() |
int |
getCount() |
DataNormalization |
getNormalization() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getRunningCounts() |
InputField |
getTarget() |
void |
init(DataNormalization normalization)
Init the segregator with the owning normalization object.
|
void |
passInit()
Init for a new pass.
|
boolean |
shouldInclude()
Determine of the current row should be included.
|
public IntegerBalanceSegregator(InputField target, int count)
target - The input field to use.count - The number of each unique integer to allow.public IntegerBalanceSegregator()
public java.lang.String dumpCounts()
public int getCount()
public DataNormalization getNormalization()
getNormalization in interface Segregatorpublic java.util.Map<java.lang.Integer,java.lang.Integer> getRunningCounts()
public InputField getTarget()
public void init(DataNormalization normalization)
init in interface Segregatornormalization - The data normalization object to use.public void passInit()
passInit in interface Segregatorpublic boolean shouldInclude()
shouldInclude in interface Segregator