src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
/**
     * @return true if there is room to write() @param mutation to this segment
     */
@return true if there is room to write() @param mutation to this segment
@return true if there is room to write () @param mutation to this segment
public boolean hasCapacityFor(RowMutation mutation)
    {
        long totalSize = RowMutation.serializer().serializedSize(mutation, MessagingService.version_) + ENTRY_OVERHEAD_SIZE;
        return totalSize <= buffer.remaining();
    }
public boolean hasCapacityFor ( RowMutation mutation ) { long totalSize = RowMutation . serializer ( ) . serializedSize ( mutation , MessagingService . version_ ) + ENTRY_OVERHEAD_SIZE ; return totalSize <= buffer . remaining ( ) ; }
@return true if there is room to write() @param mutation to this segment
@return true if there is room to write () @param mutation to this segment