A common way of handling slices in the middle of records is to start at the given offset and, if the offset is not zero, skip to the end of the first record (which may be a partial record) before reading tuples. Reading continues until a tuple has been read that ends at an offset past the ending offset.
The load function should not do any buffering on the input stream. Buffering will cause the offsets returned by is.getPos() to be unreliable. @param fileName the name of the file to be read @param is the stream representing the file to be processed, and which can also provide its position. @param offset the offset to start reading tuples. @param end the ending offset for reading. @throws IOException
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|