class FileRecords extends AbstractRecords implements Closeable {

    public int append(MemoryRecords records) throws IOException {
        if (records.sizeInBytes() > Integer.MAX_VALUE - size.get())
            throw new IllegalArgumentException("Append of size " + records.sizeInBytes() +
                    " bytes is too large for segment with current file position at " + size.get());

        int written = records.writeFullyTo(channel);
        size.getAndAdd(written);
        return written;
    }

      FileRecords(File file,
                FileChannel channel,
                int start,
                int end,
                boolean isSlice);

}