Debian Codegraph @

net/sf/saxon/expr/sort/GroupToBeSorted.java

raw symbols SCIP
1 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
2 // Copyright (c) 2018 Saxonica Limited.
3 // This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
4 // If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 // This Source Code Form is "Incompatible With Secondary Licenses", as defined by the Mozilla Public License, v. 2.0.
6 ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8 package net.sf.saxon.expr.sort;
9
10 import net.sf.saxon.om.AtomicSequence;
11 import net.sf.saxon.om.Item;
12 import net.sf.saxon.om.MemoSequence;
13
14 /**
15 * This class is a specialization of ObjectToBeSorted for use when the sequence
16 * being sorted is a sequence of groups. The group is represented by its initial
17 * item, but the object holds in addition the value of the grouping key, and an
18 * iterator over the items in the group.
19 */
20 public class GroupToBeSorted extends ObjectToBeSorted<Item> {
21
22 /*@Nullable*/ public AtomicSequence currentGroupingKey;
23 public MemoSequence currentGroup;
24
25 public GroupToBeSorted(int numberOfSortKeys) {
26 super(numberOfSortKeys);
27 }
28
29 }
30