void function ( Collector arg0 , int arg1 ) { fileBuffer . position ( 0 ) ; if ( deserializer == null ) { byte loc0 = fileBuffer . get ( ) ; deserializer = getDeserializer ( loc0 ) ; } while ( fileBuffer . position ( ) < arg1 ) { arg0 . collect ( deserializer . deserialize ( ) ) ; } }
reads a buffer of the given size from the memory-mapped file , and collects all records contained . this method assumes that all values in the buffer are of the same type . this method does not take care of synchronization . the user must guarantee that the buffer was completely written before calling this method . concode_field_sep File inputFile concode_elem_sep Tuple reuse concode_elem_sep RandomAccessFile inputRAF concode_elem_sep int size concode_elem_sep MappedByteBuffer fileBuffer concode_elem_sep AbstractRichFunction function concode_elem_sep Deserializer[] deserializer concode_elem_sep FileChannel inputChannel concode_field_sep void setupMappedFile concode_elem_sep Deserializer getDeserializer concode_elem_sep void closeMappedFile concode_elem_sep Tuple createTuple concode_elem_sep Object getRecord concode_elem_sep Object getRecord concode_elem_sep Object receiveField concode_elem_sep void close concode_elem_sep void open concode_elem_sep void loadBuffer concode_elem_sep T deserialize concode_elem_sep Boolean deserialize concode_elem_sep Byte deserialize concode_elem_sep Short deserialize concode_elem_sep Integer deserialize concode_elem_sep Long deserialize concode_elem_sep Float deserialize concode_elem_sep Double deserialize concode_elem_sep String deserialize concode_elem_sep Object deserialize concode_elem_sep byte[] deserialize concode_elem_sep Tuple deserialize