class SortingSequence extends BufferingSequence {

    @Override
    public long getRowCount() {
        if (bufferedRows == null) {
            bufferedRows = initialize();
        }
        return super.rowCount() + rowsWithNullKey.size();
    }

    @SuppressWarnings( {"unchecked"} ) public  SortingSequence( String workspaceName,
                            NodeSequence delegate,
                            ExtractFromRow extractor,
                            BufferManager bufferMgr,
                            CachedNodeSupplier nodeCache,
                            boolean pack,
                            boolean useHeap,
                            boolean allowDuplicates,
                            NullOrder nullOrder );

}