File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/main/java/com/fasterxml/sort Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import com .fasterxml .sort .util .SegmentedBuffer ;
4
4
5
+ import java .io .Closeable ;
5
6
import java .io .File ;
6
7
import java .io .IOException ;
7
8
import java .util .ArrayList ;
11
12
import java .util .List ;
12
13
import java .util .NoSuchElementException ;
13
14
14
- public class IteratingSorter <T > extends SorterBase <T >
15
+ public class IteratingSorter <T > extends SorterBase <T > implements Closeable
15
16
{
16
17
// Set iff sort spilled to disk
17
18
private List <File > _mergerInputs ;
@@ -110,6 +111,14 @@ public Iterator<T> sort(DataReader<T> inputReader)
110
111
return iterator ;
111
112
}
112
113
114
+
115
+ /*
116
+ /**********************************************************************
117
+ /* Closeable API
118
+ /**********************************************************************
119
+ */
120
+
121
+ @ Override
113
122
public void close () {
114
123
if (_merger != null ) {
115
124
try {
You can’t perform that action at this time.
0 commit comments