/** * Resets the pool to its initial state reusing the first buffer. Calling * {@link IntBlockPool#nextBuffer()} is not needed after reset. */ public void reset() { this.reset(true, true); }
void reset() { // we don't reuse so we drop everything and don't fill with 0 intPool.reset(false, false); bytePool.reset(false, false); }
/** * Resets the pool to its initial state reusing the first buffer. Calling * {@link IntBlockPool#nextBuffer()} is not needed after reset. */ public void reset() { this.reset(true, true); }
/** * Resets the pool to its initial state reusing the first buffer. Calling * {@link IntBlockPool#nextBuffer()} is not needed after reset. */ public void reset() { this.reset(true, true); }
/** * Resets the pool to its initial state reusing the first buffer. Calling * {@link IntBlockPool#nextBuffer()} is not needed after reset. */ public void reset() { this.reset(true, true); }
void reset() { // we don't reuse so we drop everything and don't fill with 0 intPool.reset(false, false); bytePool.reset(false, false); }
void reset() { // we don't reuse so we drop everything and don't fill with 0 intPool.reset(false, false); bytePool.reset(false, false); }
void reset() { // we don't reuse so we drop everything and don't fill with 0 intPool.reset(false, false); bytePool.reset(false, false); }
/** * Resets the {@link MemoryIndex} to its initial state and recycles all internal buffers. */ public void reset() { fields.clear(); this.normSimilarity = IndexSearcher.getDefaultSimilarity(); byteBlockPool.reset(false, false); // no need to 0-fill the buffers intBlockPool.reset(true, false); // here must must 0-fill since we use slices if (payloadsBytesRefs != null) { payloadsBytesRefs.clear(); } this.frozen = false; }
/** * Resets the {@link MemoryIndex} to its initial state and recycles all internal buffers. */ public void reset() { fields.clear(); this.normSimilarity = IndexSearcher.getDefaultSimilarity(); byteBlockPool.reset(false, false); // no need to 0-fill the buffers intBlockPool.reset(true, false); // here must must 0-fill since we use slices if (payloadsBytesRefs != null) { payloadsBytesRefs.clear(); } this.frozen = false; }