Skip to content

Commit

Permalink
Rollback method implement of RunLengthEncodedColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei-hao-Li authored Jan 9, 2025
1 parent baea70c commit 0b3886c
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,48 @@ public boolean[] getBooleans() {
return res;
}

@Override
public int[] getInts() {
int[] res = new int[positionCount];
Arrays.fill(res, value.getInt(0));
return res;
}

@Override
public long[] getLongs() {
long[] res = new long[positionCount];
Arrays.fill(res, value.getLong(0));
return res;
}

@Override
public float[] getFloats() {
float[] res = new float[positionCount];
Arrays.fill(res, value.getFloat(0));
return res;
}

@Override
public double[] getDoubles() {
double[] res = new double[positionCount];
Arrays.fill(res, value.getDouble(0));
return res;
}

@Override
public Binary[] getBinaries() {
Binary[] res = new Binary[positionCount];
Arrays.fill(res, value.getBinary(0));
return res;
}

@Override
public Object[] getObjects() {
Object[] res = new Object[positionCount];
Arrays.fill(res, value.getObject(0));
return res;
}

@Override
public TsPrimitiveType getTsPrimitiveType(int position) {
return value.getTsPrimitiveType(0);
Expand Down

0 comments on commit 0b3886c

Please sign in to comment.