- getBodies() - Method in class com.htyleo.extsort.PartitionResult
-
Getter method for property bodies.
- getBufferSize() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property bufferSize.
- getEncoding() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property encoding.
- getExecutor() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property executor.
- getHeader() - Method in class com.htyleo.extsort.PartitionResult
-
Getter method for property header.
- getHeaderLines() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property headerLines.
- getIgnoreHeaderBlankLines() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property ignoreHeaderBlankLines.
- getIgnoreTailBlankLines() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property ignoreTailBlankLines.
- getLineComparator() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property lineComparator.
- getLineFilter() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property lineFilter.
- getSliceSize() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property sliceSize.
- getTail() - Method in class com.htyleo.extsort.PartitionResult
-
Getter method for property tail.
- getTailLines() - Method in class com.htyleo.extsort.ExternalSortConfig
-
Getter method for property tailLines.
- GroupSortedFileReader - Class in com.htyleo.extsort
-
A wrapper of BufferedReader for reading a group of sorted files
- GroupSortedFileReader(List<File>, Comparator<String>) - Constructor for class com.htyleo.extsort.GroupSortedFileReader
-
Create a GroupSortedFileReader, using default encoding and default buffer size
- GroupSortedFileReader(List<File>, Comparator<String>, String) - Constructor for class com.htyleo.extsort.GroupSortedFileReader
-
Create a GroupSortedFileReader, using default buffer size
- GroupSortedFileReader(List<File>, Comparator<String>, String, int) - Constructor for class com.htyleo.extsort.GroupSortedFileReader
-
Create a GroupSortedFileReader
- setBufferSize(int) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property bufferSize.
- setEncoding(String) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property encoding.
- setExecutor(ThreadPoolExecutor) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property executor.
- setHeaderLines(int) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property headerLines.
- setIgnoreHeaderBlankLines(boolean) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property ignoreHeaderBlankLines.
- setIgnoreTailBlankLines(boolean) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property ignoreTailBlankLines.
- setLineComparator(Comparator<String>) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property lineComparator.
- setLineFilter(LineFilter) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property lineFilter.
- setSliceSize(int) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property sliceSize.
- setTailLines(int) - Method in class com.htyleo.extsort.ExternalSortConfig
-
Setter method for property tailLines.
- skipNextBlankLines(RandomAccessFile) - Static method in class com.htyleo.extsort.util.IOUtil
-
If RandomAccessFile's pointer points to a line separator, repeatedly read forward and skip consecutive blank lines.
- skipNextLine(RandomAccessFile) - Static method in class com.htyleo.extsort.util.IOUtil
-
Repeatedly read forward and skip the current line
Note that the line separator could be "\n", "\r" or "\r\n"
Example: (The parenthesis indicates the position of RandomAccessFile's pointer)
Before: "ABC(\n)HIJ" after: "ABC\n(H)IJ"
Before: "A(B)C\nHIJ" after: "ABC\n(H)IJ"
Before: "A(B)C\rHIJ" after: "ABC\r(H)IJ"
Before: "A(B)C\r\nHIJ" after: "ABC\r\n(H)IJ"
Before: "A(B)C[EOF]" after: "ABC([EOF])"
- skipPrevBlankLines(RandomAccessFile) - Static method in class com.htyleo.extsort.util.IOUtil
-
If RandomAccessFile's pointer points to a line separator, repeatedly read backward and skip consecutive blank lines.
- skipPrevLine(RandomAccessFile) - Static method in class com.htyleo.extsort.util.IOUtil
-
Repeatedly read backward and skip the current line
Note that the line separator could be "\n", "\r" or "\r\n"
Example: (the parenthesis indicates the position of the pointer)
before: "ABC(\n)HIJ" after: "AB(C)\nHIJ"
before: "ABC\nH(I)J" after: "AB(C)\nHIJ"
before: "ABC\rH(I)J" after: "AB(C)\rHIJ"
before: "ABC\r\nH(I)J" after: "AB(C)\r\nHIJ"
before: "AB(C)\n" after: 0
- SliceType - Enum in com.htyleo.extsort.common
-
Type of file slice
- sort(File, File, ExternalSortConfig) - Static method in class com.htyleo.extsort.ExternalSort
-
Perform external sorting