/** * Called to close all the columns in this batch. It is not valid to access the data after * calling this. This must be called at the end to clean up memory allocations. */ public void close() { for (ColumnVector c: columns) { c.close(); } }
@Override public void close() { super.close(); nulls = null; byteData = null; shortData = null; intData = null; longData = null; floatData = null; doubleData = null; arrayLengths = null; arrayOffsets = null; }
/** * Cleans up memory for this column. The column is not usable after this. * TODO: this should probably have ref-counted semantics. */ public void close() { if (childColumns != null) { for (int i = 0; i < childColumns.length; i++) { if (childColumns[i] != null) { childColumns[i].close(); childColumns[i] = null; } } } if (dictionaryIds != null) { dictionaryIds.close(); dictionaryIds = null; } dictionary = null; }
@Override public void close() { super.close(); Platform.freeMemory(nulls); Platform.freeMemory(data); Platform.freeMemory(lengthData); Platform.freeMemory(offsetData); nulls = 0; data = 0; lengthData = 0; offsetData = 0; }
/** * Called to close all the columns in this batch. It is not valid to access the data after * calling this. This must be called at the end to clean up memory allocations. */ public void close() { for (ColumnVector c: columns) { c.close(); } }
@Override public void close() { vector.close(); }