returns the number of block acceses required to mergejoin the sorted tables . since a mergejoin can be preformed with a single pass through each table , the method returns the sum of the block accesses of the materialized sorted tables . it does not include the one-time cost of materializing and sorting the records . concode_field_sep String fldname2 concode_elem_sep Plan p1 concode_elem_sep String fldname1 concode_elem_sep Plan p2 concode_elem_sep Schema sch concode_field_sep Schema schema concode_elem_sep Iterator<Plan> iterator concode_elem_sep long distinctValues concode_elem_sep long recordsOutput concode_elem_sep Scan open
long function ( ) { return p1 . blocksAccessed ( ) + p2 . blocksAccessed ( ) ; }