@Override Object extract(int batchIndex) { int adjustedIndex = (colVector.isRepeating ? 0 : batchIndex); if (colVector.noNulls || !colVector.isNull[adjustedIndex]) { long value = vector[adjustedIndex]; PrimitiveObjectInspectorFactory.writableIntObjectInspector.set(object, (int) value); return object; } else { return null; } } }