com.northconcepts.datapipeline.core
Class RecordComparator

java.lang.Object
  extended by com.northconcepts.datapipeline.core.RecordComparator
All Implemented Interfaces:
Cloneable, Comparator<Record>

public class RecordComparator
extends Object
implements Comparator<Record>, Cloneable


Field Summary
protected  boolean cacheFieldIndexes
           
 
Constructor Summary
RecordComparator()
           
RecordComparator(RecordComparator o)
           
 
Method Summary
 RecordComparator add(String fieldName)
           
 RecordComparator add(String fieldName, boolean ascending)
           
 RecordComparator add(String fieldName, boolean ascending, Collator collator)
           
 Object clone()
           
 int compare(Record record1, Record record2)
           
 FieldComparator get(int index)
           
 int getCount()
           
 RecordComparator remove(int index)
           
 RecordComparator removeAll()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

cacheFieldIndexes

protected boolean cacheFieldIndexes
Constructor Detail

RecordComparator

public RecordComparator()

RecordComparator

public RecordComparator(RecordComparator o)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

add

public RecordComparator add(String fieldName)

add

public RecordComparator add(String fieldName,
                            boolean ascending)

add

public RecordComparator add(String fieldName,
                            boolean ascending,
                            Collator collator)

getCount

public int getCount()

get

public FieldComparator get(int index)

remove

public RecordComparator remove(int index)

removeAll

public RecordComparator removeAll()

compare

public int compare(Record record1,
                   Record record2)
Specified by:
compare in interface Comparator<Record>


Copyright (c) 2007-2009 North Concepts Inc. All Rights Reserved.