Skip to content

Commit

Permalink
Return FileAppender from Avro.WriteBuilder, not a package-private imp…
Browse files Browse the repository at this point in the history
…lementation. (#27)
  • Loading branch information
rdsr authored and rdblue committed Dec 12, 2018
1 parent 61bc4ba commit 33776a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/com/netflix/iceberg/avro/Avro.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.google.common.base.Preconditions;
import com.google.common.collect.Maps;
import com.netflix.iceberg.SchemaParser;
import com.netflix.iceberg.io.FileAppender;
import com.netflix.iceberg.io.InputFile;
import com.netflix.iceberg.io.OutputFile;
import org.apache.avro.Conversions;
Expand Down Expand Up @@ -128,7 +129,7 @@ private CodecFactory codec() {
}
}

public <D> AvroFileAppender<D> build() throws IOException {
public <D> FileAppender<D> build() throws IOException {
Preconditions.checkNotNull(schema, "Schema is required");
Preconditions.checkNotNull(name, "Table name is required and cannot be null");

Expand Down

0 comments on commit 33776a8

Please sign in to comment.