Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
aokolnychyi committed Sep 14, 2023
1 parent 18afb65 commit e3b188a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ public VectorHolder(
this.icebergField = icebergField;
}

// Only used for returning dummy holder
/** A constructor used for dummy holders. */
private VectorHolder() {
this(null);
}

// Only used for creating constant holders for fields
/** A constructor used for typed constant holders. */
private VectorHolder(Types.NestedField field) {
columnDescriptor = null;
vector = null;
Expand Down Expand Up @@ -118,6 +118,8 @@ public static <T> VectorHolder constantHolder(
return new ConstantVectorHolder<>(icebergField, numRows, constantValue);
}

/** @deprecated since 1.4.0, will be removed in 1.5.0; use typed constant holders instead. */
@Deprecated
public static <T> VectorHolder constantHolder(int numRows, T constantValue) {
return new ConstantVectorHolder<>(numRows, constantValue);
}
Expand All @@ -127,7 +129,7 @@ public static VectorHolder deletedVectorHolder(int numRows) {
}

public static VectorHolder dummyHolder(int numRows) {
return new ConstantVectorHolder(numRows);
return new ConstantVectorHolder<>(numRows);
}

public boolean isDummy() {
Expand All @@ -147,6 +149,8 @@ public ConstantVectorHolder(int numRows) {
this.constantValue = null;
}

/** @deprecated since 1.4.0, will be removed in 1.5.0; use typed constant holders instead. */
@Deprecated
public ConstantVectorHolder(int numRows, T constantValue) {
this.numRows = numRows;
this.constantValue = constantValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public void close() {
public static class ConstantVectorReader<T> extends VectorizedArrowReader {
private final T value;

/** @deprecated since 1.4.0, will be removed in 1.5.0. */
/** @deprecated since 1.4.0, will be removed in 1.5.0; use typed constant readers. */
@Deprecated
public ConstantVectorReader(T value) {
this.value = value;
Expand Down

0 comments on commit e3b188a

Please sign in to comment.