title: How to create dynamic Seq<Column> in java
body: <p>I want to create a Dataset out of another one but only with some specific columns and I would like to use the <code>dataset.select()</code> function instead of creating a dynamic sql query who select from this dataset the columns I need.</p>
  
  <p>I have found that using <code>JavaConversions.asScalaBuffer(asList(new Column("value1"), new Column("value2")))</code> I can create a <code>Set&lt;Column&gt;</code> but how can I do it dynamic? because I've tried this. </p>
  
  <pre><code>List&lt;Column&gt; filterColumns = new ArrayList&lt;&gt;();
  for (ColumnMetadata field : fields) {
      filterColumns.add(new Column(field.getFieldName()));
  }  
  dataset.select(JavaConversions.asScalaBuffer(asList(filterColumns)))
  </code></pre>
  
  <p>But this doesn't work and the compiler said <code>no suitable method found for select(Buffer&lt;List&lt;Column&gt;&gt;)</code></p>