public RowIndexEntry append(AbstractCompactedRow row)
    {
        long startPosition = beforeAppend(row.key);
        RowIndexEntry entry;
        try
        {
            entry = row.write(startPosition, dataFile.stream);
            if (entry == null)
                return null;
        }
        catch (IOException e)
        {
            throw new FSWriteError(e, dataFile.getPath());
        }
        long endPosition = dataFile.getFilePointer();
        sstableMetadataCollector.update(endPosition - startPosition, row.columnStats());
        afterAppend(row.key, endPosition, entry);
        return entry;
    }
public RowIndexEntry append ( AbstractCompactedRow row ) { long startPosition = beforeAppend ( row . key ) ; RowIndexEntry entry ; try { entry = row . write ( startPosition , dataFile . stream ) ; if ( entry == null ) return null ; } catch ( IOException e ) { throw new FSWriteError ( e , dataFile . getPath ( ) ) ; } long endPosition = dataFile . getFilePointer ( ) ; sstableMetadataCollector . update ( endPosition - startPosition , row . columnStats ( ) ) ; afterAppend ( row . key , endPosition , entry ) ; return entry ; }
@param row
@return null if the row was compacted away entirely; otherwise, the PK index entry for this row