Skip to content

Commit

Permalink
Remove unused OrcWriter field stripeMinBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
dain committed Mar 13, 2019
1 parent abccbf4 commit 490cc15
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions presto-orc/src/main/java/io/prestosql/orc/OrcWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public final class OrcWriter
private final OrcDataSink orcDataSink;
private final List<Type> types;
private final CompressionKind compression;
private final int stripeMinBytes;
private final int stripeMaxBytes;
private final int chunkMaxLogicalBytes;
private final int stripeMaxRowCount;
Expand Down Expand Up @@ -144,7 +143,7 @@ public OrcWriter(

requireNonNull(options, "options is null");
checkArgument(options.getStripeMaxSize().compareTo(options.getStripeMinSize()) >= 0, "stripeMaxSize must be greater than stripeMinSize");
this.stripeMinBytes = toIntExact(requireNonNull(options.getStripeMinSize(), "stripeMinSize is null").toBytes());
int stripeMinBytes = toIntExact(requireNonNull(options.getStripeMinSize(), "stripeMinSize is null").toBytes());
this.stripeMaxBytes = toIntExact(requireNonNull(options.getStripeMaxSize(), "stripeMaxSize is null").toBytes());
this.chunkMaxLogicalBytes = Math.max(1, stripeMaxBytes / 2);
this.stripeMaxRowCount = options.getStripeMaxRowCount();
Expand Down

0 comments on commit 490cc15

Please sign in to comment.