This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/main by this push:
new 9dbf833 ORC-1013: Renaming a parameter in constructors of
TreeWriter's derived classes (#922)
9dbf833 is described below
commit 9dbf833868591314014958cc58cd57fb1e8e739c
Author: Lei <[email protected]>
AuthorDate: Sat Oct 9 12:04:01 2021 -0700
ORC-1013: Renaming a parameter in constructors of TreeWriter's derived
classes (#922)
### What changes were proposed in this pull request?
This PR renames `WriterContext writer` parameter to `WriterContext context`
like `TreeWriter`.
### Why are the changes needed?
For consistency.
### How was this patch tested?
There's no function change so passing the existing unit tests should be
sufficient.
---
.../apache/orc/impl/writer/BinaryTreeWriter.java | 12 ++++++------
.../apache/orc/impl/writer/BooleanTreeWriter.java | 6 +++---
.../org/apache/orc/impl/writer/ByteTreeWriter.java | 6 +++---
.../org/apache/orc/impl/writer/CharTreeWriter.java | 4 ++--
.../org/apache/orc/impl/writer/DateTreeWriter.java | 12 ++++++------
.../orc/impl/writer/Decimal64TreeWriter.java | 6 +++---
.../apache/orc/impl/writer/DecimalTreeWriter.java | 12 ++++++------
.../apache/orc/impl/writer/DoubleTreeWriter.java | 6 +++---
.../apache/orc/impl/writer/FloatTreeWriter.java | 6 +++---
.../apache/orc/impl/writer/IntegerTreeWriter.java | 10 +++++-----
.../org/apache/orc/impl/writer/ListTreeWriter.java | 12 ++++++------
.../org/apache/orc/impl/writer/MapTreeWriter.java | 14 +++++++-------
.../orc/impl/writer/StringBaseTreeWriter.java | 22 +++++++++++-----------
.../apache/orc/impl/writer/StringTreeWriter.java | 4 ++--
.../apache/orc/impl/writer/StructTreeWriter.java | 6 +++---
.../orc/impl/writer/TimestampTreeWriter.java | 18 +++++++++---------
.../apache/orc/impl/writer/UnionTreeWriter.java | 8 ++++----
.../apache/orc/impl/writer/VarcharTreeWriter.java | 4 ++--
18 files changed, 84 insertions(+), 84 deletions(-)
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/BinaryTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/BinaryTreeWriter.java
index 0567d43..f92a4d7 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/BinaryTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/BinaryTreeWriter.java
@@ -39,14 +39,14 @@ public class BinaryTreeWriter extends TreeWriterBase {
public BinaryTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.stream = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.stream = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
- this.isDirectV2 = isNewWriteFormat(writer);
- this.length = createIntegerWriter(writer.createStream(
+ this.isDirectV2 = isNewWriteFormat(context);
+ this.length = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.LENGTH, encryption)),
- false, isDirectV2, writer);
+ false, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/BooleanTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/BooleanTreeWriter.java
index fbee5bb..aa5fdd8 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/BooleanTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/BooleanTreeWriter.java
@@ -36,9 +36,9 @@ public class BooleanTreeWriter extends TreeWriterBase {
public BooleanTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- PositionedOutputStream out = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ PositionedOutputStream out = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
this.writer = new BitFieldWriter(out, 1);
if (rowIndexPosition != null) {
diff --git a/java/core/src/java/org/apache/orc/impl/writer/ByteTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/ByteTreeWriter.java
index a3e1d45..af68052 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/ByteTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/ByteTreeWriter.java
@@ -35,9 +35,9 @@ public class ByteTreeWriter extends TreeWriterBase {
public ByteTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.writer = new RunLengthByteWriter(writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.writer = new RunLengthByteWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption)));
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
diff --git a/java/core/src/java/org/apache/orc/impl/writer/CharTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/CharTreeWriter.java
index 8e2a287..dec7402 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/CharTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/CharTreeWriter.java
@@ -36,8 +36,8 @@ public class CharTreeWriter extends StringBaseTreeWriter {
CharTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
maxLength = schema.getMaxLength();
// utf-8 is currently 4 bytes long, but it could be upto 6
padding = new byte[6*maxLength];
diff --git a/java/core/src/java/org/apache/orc/impl/writer/DateTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/DateTreeWriter.java
index cc2bdb3..3f1f978 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/DateTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/DateTreeWriter.java
@@ -39,16 +39,16 @@ public class DateTreeWriter extends TreeWriterBase {
public DateTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- OutStream out = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ OutStream out = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
- this.isDirectV2 = isNewWriteFormat(writer);
- this.writer = createIntegerWriter(out, true, isDirectV2, writer);
+ this.isDirectV2 = isNewWriteFormat(context);
+ this.writer = createIntegerWriter(out, true, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
- useProleptic = writer.getProlepticGregorian();
+ useProleptic = context.getProlepticGregorian();
}
@Override
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/Decimal64TreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/Decimal64TreeWriter.java
index 515fbf9..b47cfcd 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/Decimal64TreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/Decimal64TreeWriter.java
@@ -42,9 +42,9 @@ public class Decimal64TreeWriter extends TreeWriterBase {
public Decimal64TreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- OutStream stream = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ OutStream stream = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
// Use RLEv2 until we have the new RLEv3.
valueWriter = new RunLengthIntegerWriterV2(stream, true, true);
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/DecimalTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/DecimalTreeWriter.java
index be2b2bf..d257a17 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/DecimalTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/DecimalTreeWriter.java
@@ -49,16 +49,16 @@ public class DecimalTreeWriter extends TreeWriterBase {
public DecimalTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.isDirectV2 = isNewWriteFormat(writer);
- valueStream = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.isDirectV2 = isNewWriteFormat(context);
+ valueStream = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
scratchLongs = new long[HiveDecimal.SCRATCH_LONGS_LEN];
scratchBuffer = new byte[HiveDecimal.SCRATCH_BUFFER_LEN_TO_BYTES];
- this.scaleStream = createIntegerWriter(writer.createStream(
+ this.scaleStream = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.SECONDARY, encryption)),
- true, isDirectV2, writer);
+ true, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/DoubleTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/DoubleTreeWriter.java
index 17f0f73..4b50d10 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/DoubleTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/DoubleTreeWriter.java
@@ -37,9 +37,9 @@ public class DoubleTreeWriter extends TreeWriterBase {
public DoubleTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.stream = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.stream = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
this.utils = new SerializationUtils();
if (rowIndexPosition != null) {
diff --git a/java/core/src/java/org/apache/orc/impl/writer/FloatTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/FloatTreeWriter.java
index bc3a15b..d17119e 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/FloatTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/FloatTreeWriter.java
@@ -37,9 +37,9 @@ public class FloatTreeWriter extends TreeWriterBase {
public FloatTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.stream = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.stream = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
this.utils = new SerializationUtils();
if (rowIndexPosition != null) {
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/IntegerTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/IntegerTreeWriter.java
index 7f8f21a..7c486e2 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/IntegerTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/IntegerTreeWriter.java
@@ -38,12 +38,12 @@ public class IntegerTreeWriter extends TreeWriterBase {
public IntegerTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- OutStream out = writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ OutStream out = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
- this.isDirectV2 = isNewWriteFormat(writer);
- this.writer = createIntegerWriter(out, true, isDirectV2, writer);
+ this.isDirectV2 = isNewWriteFormat(context);
+ this.writer = createIntegerWriter(out, true, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
diff --git a/java/core/src/java/org/apache/orc/impl/writer/ListTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/ListTreeWriter.java
index 21b6d69..cf8eccf 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/ListTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/ListTreeWriter.java
@@ -38,13 +38,13 @@ public class ListTreeWriter extends TreeWriterBase {
ListTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.isDirectV2 = isNewWriteFormat(writer);
- childWriter = Factory.create(schema.getChildren().get(0), encryption,
writer);
- lengths = createIntegerWriter(writer.createStream(
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.isDirectV2 = isNewWriteFormat(context);
+ childWriter = Factory.create(schema.getChildren().get(0), encryption,
context);
+ lengths = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.LENGTH, encryption)),
- false, isDirectV2, writer);
+ false, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
diff --git a/java/core/src/java/org/apache/orc/impl/writer/MapTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/MapTreeWriter.java
index 0b58ef2..2d924ec 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/MapTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/MapTreeWriter.java
@@ -39,15 +39,15 @@ public class MapTreeWriter extends TreeWriterBase {
MapTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- this.isDirectV2 = isNewWriteFormat(writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ this.isDirectV2 = isNewWriteFormat(context);
List<TypeDescription> children = schema.getChildren();
- keyWriter = Factory.create(children.get(0), encryption, writer);
- valueWriter = Factory.create(children.get(1), encryption, writer);
- lengths = createIntegerWriter(writer.createStream(
+ keyWriter = Factory.create(children.get(0), encryption, context);
+ valueWriter = Factory.create(children.get(1), encryption, context);
+ lengths = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.LENGTH, encryption)),
- false, isDirectV2, writer);
+ false, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/StringBaseTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/StringBaseTreeWriter.java
index d5c74ed..9d87873 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/StringBaseTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/StringBaseTreeWriter.java
@@ -80,27 +80,27 @@ public abstract class StringBaseTreeWriter extends
TreeWriterBase {
StringBaseTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
- Configuration conf = writer.getConfiguration();
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
+ Configuration conf = context.getConfiguration();
this.dictionary = createDict(conf);
- this.isDirectV2 = isNewWriteFormat(writer);
- directStreamOutput = writer.createStream(
+ this.isDirectV2 = isNewWriteFormat(context);
+ directStreamOutput = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption));
- stringOutput = writer.createStream(
+ stringOutput = context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DICTIONARY_DATA, encryption));
- lengthOutput = createIntegerWriter(writer.createStream(
+ lengthOutput = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.LENGTH, encryption)),
- false, isDirectV2, writer);
+ false, isDirectV2, context);
rowOutput = createIntegerWriter(directStreamOutput, false, isDirectV2,
- writer);
+ context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
rowIndexValueCount.add(0L);
- buildIndex = writer.buildIndex();
- dictionaryKeySizeThreshold = writer.getDictionaryKeySizeThreshold(id);
+ buildIndex = context.buildIndex();
+ dictionaryKeySizeThreshold = context.getDictionaryKeySizeThreshold(id);
strideDictionaryCheck =
OrcConf.ROW_INDEX_STRIDE_DICTIONARY_CHECK.getBoolean(conf);
if (dictionaryKeySizeThreshold <= 0.0) {
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/StringTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/StringTreeWriter.java
index ed1de95..6f0b8a6 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/StringTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/StringTreeWriter.java
@@ -28,8 +28,8 @@ import java.nio.charset.StandardCharsets;
public class StringTreeWriter extends StringBaseTreeWriter {
StringTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
}
@Override
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/StructTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/StructTreeWriter.java
index f8b23c4..cebcb57 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/StructTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/StructTreeWriter.java
@@ -33,12 +33,12 @@ public class StructTreeWriter extends TreeWriterBase {
public StructTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
List<TypeDescription> children = schema.getChildren();
childrenWriters = new TreeWriter[children.size()];
for (int i = 0; i < childrenWriters.length; ++i) {
- childrenWriters[i] = Factory.create(children.get(i), encryption, writer);
+ childrenWriters[i] = Factory.create(children.get(i), encryption,
context);
}
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/TimestampTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/TimestampTreeWriter.java
index dc4dfd2..551d42a 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/TimestampTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/TimestampTreeWriter.java
@@ -51,20 +51,20 @@ public class TimestampTreeWriter extends TreeWriterBase {
public TimestampTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer,
+ WriterContext context,
boolean instantType) throws IOException {
- super(schema, encryption, writer);
- this.isDirectV2 = isNewWriteFormat(writer);
- this.seconds = createIntegerWriter(writer.createStream(
+ super(schema, encryption, context);
+ this.isDirectV2 = isNewWriteFormat(context);
+ this.seconds = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption)),
- true, isDirectV2, writer);
- this.nanos = createIntegerWriter(writer.createStream(
+ true, isDirectV2, context);
+ this.nanos = createIntegerWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.SECONDARY, encryption)),
- false, isDirectV2, writer);
+ false, isDirectV2, context);
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
}
- this.alwaysUTC = instantType || writer.getUseUTCTimestamp();
+ this.alwaysUTC = instantType || context.getUseUTCTimestamp();
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
try {
if (this.alwaysUTC) {
@@ -82,7 +82,7 @@ public class TimestampTreeWriter extends TreeWriterBase {
} catch (ParseException e) {
throw new IOException("Unable to create base timestamp tree writer", e);
}
- useProleptic = writer.getProlepticGregorian();
+ useProleptic = context.getProlepticGregorian();
}
@Override
diff --git a/java/core/src/java/org/apache/orc/impl/writer/UnionTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/UnionTreeWriter.java
index f0d7858..a54ac94 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/UnionTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/UnionTreeWriter.java
@@ -38,15 +38,15 @@ public class UnionTreeWriter extends TreeWriterBase {
UnionTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
List<TypeDescription> children = schema.getChildren();
childrenWriters = new TreeWriterBase[children.size()];
for (int i = 0; i < childrenWriters.length; ++i) {
- childrenWriters[i] = Factory.create(children.get(i), encryption, writer);
+ childrenWriters[i] = Factory.create(children.get(i), encryption,
context);
}
tags =
- new RunLengthByteWriter(writer.createStream(
+ new RunLengthByteWriter(context.createStream(
new StreamName(id, OrcProto.Stream.Kind.DATA, encryption)));
if (rowIndexPosition != null) {
recordPosition(rowIndexPosition);
diff --git
a/java/core/src/java/org/apache/orc/impl/writer/VarcharTreeWriter.java
b/java/core/src/java/org/apache/orc/impl/writer/VarcharTreeWriter.java
index 29a6ab7..506b55f 100644
--- a/java/core/src/java/org/apache/orc/impl/writer/VarcharTreeWriter.java
+++ b/java/core/src/java/org/apache/orc/impl/writer/VarcharTreeWriter.java
@@ -34,8 +34,8 @@ public class VarcharTreeWriter extends StringBaseTreeWriter {
VarcharTreeWriter(TypeDescription schema,
WriterEncryptionVariant encryption,
- WriterContext writer) throws IOException {
- super(schema, encryption, writer);
+ WriterContext context) throws IOException {
+ super(schema, encryption, context);
maxLength = schema.getMaxLength();
}