Skip to content

Commit

Permalink
Add column builder compatibility (#367)
Browse files Browse the repository at this point in the history
  • Loading branch information
jt2594838 authored Jan 9, 2025
1 parent afd6ec4 commit 6ced6e1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,21 @@ public int getPositionCount() {
return positionCount;
}

@Override
public ColumnBuilder writeLong(long value) {
return writeDouble(value);
}

@Override
public ColumnBuilder writeFloat(float value) {
return writeDouble(value);
}

@Override
public ColumnBuilder writeInt(int value) {
return writeDouble(value);
}

@Override
public ColumnBuilder writeDouble(double value) {
if (values.length <= positionCount) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public int getPositionCount() {
return positionCount;
}

@Override
public ColumnBuilder writeInt(int value) {
return writeFloat(value);
}

@Override
public ColumnBuilder writeFloat(float value) {
if (values.length <= positionCount) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public int getPositionCount() {
return positionCount;
}

@Override
public ColumnBuilder writeInt(int value) {
return writeLong(value);
}

@Override
public ColumnBuilder writeLong(long value) {
if (values.length <= positionCount) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ public TimeColumnBuilder(ColumnBuilderStatus columnBuilderStatus, int expectedEn
updateDataSize();
}

@Override
public ColumnBuilder writeInt(int value) {
return writeLong(value);
}

@Override
public ColumnBuilder writeLong(long value) {
if (values.length <= positionCount) {
Expand Down

0 comments on commit 6ced6e1

Please sign in to comment.