class KeyValueWriter implements Closeable {

    public boolean writeHeader( BigEndianByteArrayBuffer key, BigEndianByteArrayBuffer value ) throws IOException
    {
        boolean result = state.header( this, value.allZeroes() || value.minusOneAtTheEnd() );
        doWrite( key, value, State.done );
        return result;
    }

      KeyValueWriter( MetadataCollector metadata, Writer writer );

}