protected DataMapRow addMinMax(CarbonRowSchema carbonRowSchema, byte[][] minValues) { CarbonRowSchema[] minSchemas = ((CarbonRowSchema.StructCarbonRowSchema) carbonRowSchema).getChildSchemas(); DataMapRow minRow = new DataMapRowImpl(minSchemas); int minOrdinal = 0; // min value adding for (int i = 0; i < minValues.length; i++) { minRow.setByteArray(minValues[i], minOrdinal++); } return minRow; }
DataMapRowImpl row = new DataMapRowImpl(schemas); int runningLength = 0; for (int i = 0; i < schemas.length; i++) { DataType dataType = schema.getDataType(); if (dataType == DataTypes.BYTE) { row.setByte( getUnsafe().getByte( block.getBaseObject(), runningLength += schema.getLength(); } else if (dataType == DataTypes.BOOLEAN) { row.setBoolean( getUnsafe().getBoolean( block.getBaseObject(), runningLength += schema.getLength(); } else if (dataType == DataTypes.SHORT) { row.setShort( getUnsafe().getShort( block.getBaseObject(), runningLength += schema.getLength(); } else if (dataType == DataTypes.INT) { row.setInt( getUnsafe().getInt( block.getBaseObject(), runningLength += schema.getLength();
blockletCountList.add((short) 0); byte[] blockletCount = convertRowCountFromShortToByteArray(blockletCountList); summaryRow.setByteArray(blockletCount, taskSummarySchema.length - 1); setMinMaxFlagForTaskSummary(summaryRow, taskSummarySchema, segmentProperties, minMaxFlag); return summaryRow;
summaryRow.setByteArray(blockletCount, taskSummarySchema.length - 1); setMinMaxFlagForTaskSummary(summaryRow, taskSummarySchema, segmentProperties, taskSummaryMinMaxFlag);
protected void addMinMaxFlagValues(DataMapRow row, CarbonRowSchema carbonRowSchema, boolean[] minMaxFlag, int ordinal) { CarbonRowSchema[] minMaxFlagSchema = ((CarbonRowSchema.StructCarbonRowSchema) carbonRowSchema).getChildSchemas(); DataMapRow minMaxFlagRow = new DataMapRowImpl(minMaxFlagSchema); int flagOrdinal = 0; // min value adding for (int i = 0; i < minMaxFlag.length; i++) { minMaxFlagRow.setBoolean(minMaxFlag[i], flagOrdinal++); } row.setRow(minMaxFlagRow, ordinal); }
((CarbonRowSchema.StructCarbonRowSchema) carbonRowSchema[taskMinMaxOrdinal]) .getChildSchemas(); row = new DataMapRowImpl(minSchemas); updatedMinMaxValues = minMaxValue; } else {
summaryRow = new DataMapRowImpl(taskSummarySchema); DataMapRow row = new DataMapRowImpl(schema); int ordinal = 0; int taskMinMaxOrdinal = 0;
summaryRow = new DataMapRowImpl(taskSummarySchema); DataMapRow row = new DataMapRowImpl(schema); int ordinal = 0; int taskMinMaxOrdinal = 0;