Skip navigation links
A B C E F G I L M P R S T V 

A

available() - Method in class com.htyleo.extsort.common.RandomAccessFileInputStream
 

B

begin - Variable in class com.htyleo.extsort.common.FileSlice
the beginning position, inclusive

C

close() - Method in class com.htyleo.extsort.common.RandomAccessFileInputStream
 
close() - Method in class com.htyleo.extsort.GroupSortedFileReader
Close reader
closeQuietly(Reader) - Static method in class com.htyleo.extsort.util.IOUtil
Unconditionally close a Reader.
closeQuietly(Writer) - Static method in class com.htyleo.extsort.util.IOUtil
Unconditionally close a Writer.
closeQuietly(RandomAccessFile) - Static method in class com.htyleo.extsort.util.IOUtil
Unconditionally close a RandomAccessFile.
closeQuietly(GroupSortedFileReader) - Static method in class com.htyleo.extsort.util.IOUtil
Unconditionally close a GroupSortedFileReader.
com.htyleo.extsort - package com.htyleo.extsort
 
com.htyleo.extsort.common - package com.htyleo.extsort.common
 
com.htyleo.extsort.util - package com.htyleo.extsort.util
 

E

end - Variable in class com.htyleo.extsort.common.FileSlice
the end position, exclusive
ExternalSort - Class in com.htyleo.extsort
An implementation of external sorting.
ExternalSort() - Constructor for class com.htyleo.extsort.ExternalSort
 
ExternalSortConfig - Class in com.htyleo.extsort
External sorting config
ExternalSortConfig() - Constructor for class com.htyleo.extsort.ExternalSortConfig
 

F

FileSlice - Class in com.htyleo.extsort.common
A logical file slice
FileSlice(SliceType, long, long) - Constructor for class com.htyleo.extsort.common.FileSlice
Create a FileSlice, which is the the logical part of the original file from begin (inclusive) to end (exclusive)

G

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

I

IOUtil - Class in com.htyleo.extsort.util
IO util
IOUtil() - Constructor for class com.htyleo.extsort.util.IOUtil
 
isConcerned(String) - Method in interface com.htyleo.extsort.common.LineFilter
The logic to filter lines

L

LineFilter - Interface in com.htyleo.extsort.common
line filter

M

merge(File, PartitionResult, ExternalSortConfig) - Static method in class com.htyleo.extsort.ExternalSort
External sorting phase One: Merge

P

partition(File, File, ExternalSortConfig) - Static method in class com.htyleo.extsort.ExternalSort
External sorting phase One: Partition The input is the source file and the output is a bunch of sorted files.
PartitionResult - Class in com.htyleo.extsort
Result of the partition phase of external sorting
PartitionResult(File, List<File>, File) - Constructor for class com.htyleo.extsort.PartitionResult
Create an PartitionResult

R

RandomAccessFileInputStream - Class in com.htyleo.extsort.common
An InputStream wrapper of RandomAccessFile.
RandomAccessFileInputStream(File, long, long) - Constructor for class com.htyleo.extsort.common.RandomAccessFileInputStream
Create a RandomAccessFileInputStream
read() - Method in class com.htyleo.extsort.common.RandomAccessFileInputStream
 
read(byte[], int, int) - Method in class com.htyleo.extsort.common.RandomAccessFileInputStream
 
readLine() - Method in class com.htyleo.extsort.GroupSortedFileReader
Read next line

S

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

T

type - Variable in class com.htyleo.extsort.common.FileSlice
slice type

V

valueOf(String) - Static method in enum com.htyleo.extsort.common.SliceType
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.htyleo.extsort.common.SliceType
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E F G I L M P R S T V 
Skip navigation links

Copyright © 2016. All rights reserved.