int function ( Object [ ] arg0 ) { int loc0 = INT_SIZE ; for ( Object loc1 : arg0 ) loc0 += size ( loc1 ) ; if ( currentpos + loc0 >= BLOCK_SIZE ) { flush ( ) ; appendNewBlock ( ) ; } for ( Object loc1 : arg0 ) appendVal ( loc1 ) ; finalizeRecord ( ) ; return currentLSN ( ) ; }
appends a log record to the file . the record contains an arbitrary array of strings and integers . the method also writes an integer to the end of each log record whose value is the offset of the corresponding integer for the previous log record . these integers allow log records to be read in reverse order . concode_field_sep Page mypage concode_elem_sep String logfile concode_elem_sep int currentpos concode_elem_sep int LAST_POS concode_elem_sep Block currentblk concode_field_sep Iterator<BasicLogRecord> iterator concode_elem_sep void flush concode_elem_sep void flush concode_elem_sep int size concode_elem_sep void appendVal concode_elem_sep void appendNewBlock concode_elem_sep int currentLSN concode_elem_sep void finalizeRecord concode_elem_sep void setLastRecordPosition concode_elem_sep int getLastRecordPosition