com.northconcepts.datapipeline.core
Class SortingReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.ProxyReader
com.northconcepts.datapipeline.core.SortingReader
public class SortingReader
- extends ProxyReader
A proxy that sorts records.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getDescription, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, setDescription, toString |
SortingReader
public SortingReader(DataReader reader,
int bufferSize)
- Parameters:
reader - bufferSize - memory buffer in megabytes (1048576 bytes)
SortingReader
public SortingReader(DataReader reader)
isCacheFieldIndexes
public boolean isCacheFieldIndexes()
setCacheFieldIndexes
public SortingReader setCacheFieldIndexes(boolean cacheFieldIndexes)
getOrder
public RecordComparator getOrder()
open
public void open()
- Description copied from class:
DataEndpoint
- Makes this endpoint ready for reading or writing.
- Overrides:
open in class ProxyReader
copy
public static void copy(DataReader source,
DataWriter sink)
throws Throwable
- Throws:
Throwable
Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.