compareFields[ pos ] = groupFields; // used for finding hashers
if( groupFields.size() == 0 )
groupComparators[ pos ] = groupFields;
else
groupComparators[ pos ] = new SparseTupleComparator( Fields.asDeclaration( groupFields ), defaultComparator );
groupComparators[ pos ] = splice.isSortReversed() ? Collections.reverseOrder( groupComparators[ pos ] ) : groupComparators[ pos ];
if( sortFields != null )
{
// we want the comparators, so don't use sortFields array
Fields sortFields = splice.getSortingSelectors().get( incomingScope.getName() );
valueComparators[ pos ] = new SparseTupleComparator( valuesFields[ pos ], sortFields, defaultComparator );
if( splice.isSortReversed() )
valueComparators[ pos ] = Collections.reverseOrder( valueComparators[ pos ] );
}
}