def set_read_header(policy, key)
      begin_cmd
      field_count = estimate_key_size(key)
      estimate_operation_size_for_bin_name('')
      size_buffer

      # The server does not currently return record header data with _INFO1_NOBINDATA attribute set.
      # The workaround is to request a non-existent bin.
      # TODO: Fix this on server.
      #command.set_read(INFO1_READ | _INFO1_NOBINDATA);
      write_header(policy, INFO1_READ, 0, field_count, 1)

      write_key(key)
      write_operation_for_bin_name('', Aerospike::Operation::READ)
      end_cmd
    end
def set_read_header(policy, key)
      begin_cmd
      field_count = estimate_key_size(key)
      estimate_operation_size_for_bin_name('')
      size_buffer

      # The server does not currently return record header data with _INFO1_NOBINDATA attribute set.
      # The workaround is to request a non-existent bin.
      # TODO: Fix this on server.
      #command.set_read(INFO1_READ | _INFO1_NOBINDATA);
      write_header(policy, INFO1_READ, 0, field_count, 1)

      write_key(key)
      write_operation_for_bin_name('', Aerospike::Operation::READ)
      end_cmd
    end
Writes the command for getting metadata operations