/** * Add the index row to unsafe. * * @param indexRow * @return */ public void addIndexRow(CarbonRowSchema[] schema, DataMapRow indexRow) throws MemoryException { // First calculate the required memory to keep the row in unsafe int rowSize = indexRow.getTotalSizeInBytes(); // Check whether allocated memory is sufficient or not. ensureSize(rowSize); int pointer = runningLength; for (int i = 0; i < schema.length; i++) { addToUnsafe(schema[i], indexRow, i); } pointers[rowCount++] = pointer; }