private boolean[] getMinMaxFlag(DataMapRow row, int index) { DataMapRow minMaxFlagRow = row.getRow(index); boolean[] minMaxFlag = new boolean[minMaxFlagRow.getColumnCount()]; for (int i = 0; i < minMaxFlag.length; i++) { minMaxFlag[i] = minMaxFlagRow.getBoolean(i); } return minMaxFlag; }
private byte[][] getMinMaxValue(DataMapRow row, int index) { DataMapRow minMaxRow = row.getRow(index); byte[][] minMax = new byte[minMaxRow.getColumnCount()][]; for (int i = 0; i < minMax.length; i++) { minMax[i] = minMaxRow.getByteArray(i); } return minMax; }
public int getSizeInBytes(int ordinal) { switch (schemas[ordinal].getSchemaType()) { case FIXED: return schemas[ordinal].getLength(); case VARIABLE_SHORT: return getLengthInBytes(ordinal) + 2; case VARIABLE_INT: return getLengthInBytes(ordinal) + 4; case STRUCT: DataMapRow row = getRow(ordinal); CarbonRowSchema[] childSchemas = ((CarbonRowSchema.StructCarbonRowSchema) schemas[ordinal]).getChildSchemas(); // set the child schema. Because schema is transient it can be null row.setSchemas(childSchemas); return getRow(ordinal).getTotalSizeInBytes(); default: throw new UnsupportedOperationException("wrong type"); } }
DataMapRow row = taskMinMaxRow.getRow(ordinal); byte[][] updatedMinMaxValues = null; if (null == row) {
CarbonRowSchema[] childSchemas = ((CarbonRowSchema.StructCarbonRowSchema) schema).getChildSchemas(); DataMapRow struct = row.getRow(index); for (int i = 0; i < childSchemas.length; i++) { addToUnsafe(childSchemas[i], struct, i);