@@ -56,7 +56,7 @@ public final class ArrowBuf extends AbstractByteBuf implements AutoCloseable {
5656 private final boolean isEmpty ;
5757 private volatile int length ;
5858 private final HistoricalLog historicalLog = BaseAllocator .DEBUG ?
59- new HistoricalLog (BaseAllocator .DEBUG_LOG_LENGTH , "DrillBuf [%d]" , id ) : null ;
59+ new HistoricalLog (BaseAllocator .DEBUG_LOG_LENGTH , "ArrowBuf [%d]" , id ) : null ;
6060
6161 public ArrowBuf (
6262 final AtomicInteger refCnt ,
@@ -155,18 +155,18 @@ private void ensure(int width) {
155155 }
156156
157157 /**
158- * Create a new DrillBuf that is associated with an alternative allocator for the purposes of memory ownership and
159- * accounting. This has no impact on the reference counting for the current DrillBuf except in the situation where the
158+ * Create a new ArrowBuf that is associated with an alternative allocator for the purposes of memory ownership and
159+ * accounting. This has no impact on the reference counting for the current ArrowBuf except in the situation where the
160160 * passed in Allocator is the same as the current buffer.
161161 *
162- * This operation has no impact on the reference count of this DrillBuf . The newly created DrillBuf with either have a
162+ * This operation has no impact on the reference count of this ArrowBuf . The newly created ArrowBuf with either have a
163163 * reference count of 1 (in the case that this is the first time this memory is being associated with the new
164164 * allocator) or the current value of the reference count + 1 for the other AllocationManager/BufferLedger combination
165165 * in the case that the provided allocator already had an association to this underlying memory.
166166 *
167167 * @param target
168168 * The target allocator to create an association with.
169- * @return A new DrillBuf which shares the same underlying memory as this DrillBuf .
169+ * @return A new ArrowBuf which shares the same underlying memory as this ArrowBuf .
170170 */
171171 public ArrowBuf retain (BufferAllocator target ) {
172172
@@ -178,17 +178,17 @@ public ArrowBuf retain(BufferAllocator target) {
178178 historicalLog .recordEvent ("retain(%s)" , target .getName ());
179179 }
180180 final BufferLedger otherLedger = this .ledger .getLedgerForAllocator (target );
181- return otherLedger .newDrillBuf (offset , length , null );
181+ return otherLedger .newArrowBuf (offset , length , null );
182182 }
183183
184184 /**
185- * Transfer the memory accounting ownership of this DrillBuf to another allocator. This will generate a new DrillBuf
186- * that carries an association with the underlying memory of this DrillBuf . If this DrillBuf is connected to the
185+ * Transfer the memory accounting ownership of this ArrowBuf to another allocator. This will generate a new ArrowBuf
186+ * that carries an association with the underlying memory of this ArrowBuf . If this ArrowBuf is connected to the
187187 * owning BufferLedger of this memory, that memory ownership/accounting will be transferred to the taret allocator. If
188- * this DrillBuf does not currently own the memory underlying it (and is only associated with it), this does not
189- * transfer any ownership to the newly created DrillBuf .
188+ * this ArrowBuf does not currently own the memory underlying it (and is only associated with it), this does not
189+ * transfer any ownership to the newly created ArrowBuf .
190190 *
191- * This operation has no impact on the reference count of this DrillBuf . The newly created DrillBuf with either have a
191+ * This operation has no impact on the reference count of this ArrowBuf . The newly created ArrowBuf with either have a
192192 * reference count of 1 (in the case that this is the first time this memory is being associated with the new
193193 * allocator) or the current value of the reference count for the other AllocationManager/BufferLedger combination in
194194 * the case that the provided allocator already had an association to this underlying memory.
@@ -203,7 +203,7 @@ public ArrowBuf retain(BufferAllocator target) {
203203 * @param target
204204 * The allocator to transfer ownership to.
205205 * @return A new transfer result with the impact of the transfer (whether it was overlimit) as well as the newly
206- * created DrillBuf .
206+ * created ArrowBuf .
207207 */
208208 public TransferResult transferOwnership (BufferAllocator target ) {
209209
@@ -212,7 +212,7 @@ public TransferResult transferOwnership(BufferAllocator target) {
212212 }
213213
214214 final BufferLedger otherLedger = this .ledger .getLedgerForAllocator (target );
215- final ArrowBuf newBuf = otherLedger .newDrillBuf (offset , length , null );
215+ final ArrowBuf newBuf = otherLedger .newArrowBuf (offset , length , null );
216216 final boolean allocationFit = this .ledger .transferBalance (otherLedger );
217217 return new TransferResult (allocationFit , newBuf );
218218 }
@@ -267,7 +267,7 @@ public boolean release(int decrement) {
267267
268268 if (refCnt < 0 ) {
269269 throw new IllegalStateException (
270- String .format ("DrillBuf [%d] refCnt has gone negative. Buffer Info: %s" , id , toVerboseString ()));
270+ String .format ("ArrowBuf [%d] refCnt has gone negative. Buffer Info: %s" , id , toVerboseString ()));
271271 }
272272
273273 return refCnt == 0 ;
@@ -370,7 +370,7 @@ public ArrowBuf slice(int index, int length) {
370370 * Re the behavior of reference counting, see http://netty.io/wiki/reference-counted-objects.html#wiki-h3-5, which
371371 * explains that derived buffers share their reference count with their parent
372372 */
373- final ArrowBuf newBuf = ledger .newDrillBuf (offset + index , length );
373+ final ArrowBuf newBuf = ledger .newArrowBuf (offset + index , length );
374374 newBuf .writerIndex (length );
375375 return newBuf ;
376376 }
@@ -437,7 +437,7 @@ public long memoryAddress() {
437437
438438 @ Override
439439 public String toString () {
440- return String .format ("DrillBuf [%d], udle: [%d %d..%d]" , id , udle .id , offset , offset + capacity ());
440+ return String .format ("ArrowBuf [%d], udle: [%d %d..%d]" , id , udle .id , offset , offset + capacity ());
441441 }
442442
443443 @ Override
@@ -782,7 +782,7 @@ public void close() {
782782 }
783783
784784 /**
785- * Returns the possible memory consumed by this DrillBuf in the worse case scenario. (not shared, connected to larger
785+ * Returns the possible memory consumed by this ArrowBuf in the worse case scenario. (not shared, connected to larger
786786 * underlying buffer of allocated memory)
787787 *
788788 * @return Size in bytes.
@@ -833,7 +833,7 @@ public String toHexString(final int start, final int length) {
833833 }
834834
835835 /**
836- * Get the integer id assigned to this DrillBuf for debugging purposes.
836+ * Get the integer id assigned to this ArrowBuf for debugging purposes.
837837 *
838838 * @return integer id
839839 */
0 commit comments