|
25 | 25 |
|
26 | 26 | class VectorizedPlainValuesReader extends ValuesAsBytesReader implements VectorizedValuesReader {
|
27 | 27 |
|
| 28 | + public static final int INT_SIZE = 4; |
| 29 | + public static final int LONG_SIZE = 8; |
| 30 | + public static final int FLOAT_SIZE = 4; |
| 31 | + public static final int DOUBLE_SIZE = 8; |
| 32 | + |
28 | 33 | VectorizedPlainValuesReader() {}
|
29 | 34 |
|
30 | 35 | @Override
|
@@ -57,21 +62,21 @@ private void readValues(int total, FieldVector vec, int rowId, int typeWidth) {
|
57 | 62 |
|
58 | 63 | @Override
|
59 | 64 | public void readIntegers(int total, FieldVector vec, int rowId) {
|
60 |
| - readValues(total, vec, rowId, 4); |
| 65 | + readValues(total, vec, rowId, INT_SIZE); |
61 | 66 | }
|
62 | 67 |
|
63 | 68 | @Override
|
64 | 69 | public void readLongs(int total, FieldVector vec, int rowId) {
|
65 |
| - readValues(total, vec, rowId, 8); |
| 70 | + readValues(total, vec, rowId, LONG_SIZE); |
66 | 71 | }
|
67 | 72 |
|
68 | 73 | @Override
|
69 | 74 | public void readFloats(int total, FieldVector vec, int rowId) {
|
70 |
| - readValues(total, vec, rowId, 4); |
| 75 | + readValues(total, vec, rowId, FLOAT_SIZE); |
71 | 76 | }
|
72 | 77 |
|
73 | 78 | @Override
|
74 | 79 | public void readDoubles(int total, FieldVector vec, int rowId) {
|
75 |
| - readValues(total, vec, rowId, 8); |
| 80 | + readValues(total, vec, rowId, DOUBLE_SIZE); |
76 | 81 | }
|
77 | 82 | }
|
0 commit comments