/** * The BufferOrEventSequence returned by this method is safe for concurrent consumption with * any previously returned sequence. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverWithoutReusingResources() throws IOException { return rollOver(true); }
currentBuffered = bufferSpiller.rollOver(); if (currentBuffered != null) { currentBuffered.open();
/** * NOTE: The BufferOrEventSequences created by this method all reuse the same reading memory * (to reduce overhead) and can consequently not be read concurrently with each other. * * <p>To create a sequence that can be read concurrently with the previous BufferOrEventSequence, * use the {@link #rollOverWithoutReusingResources()} ()} method. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverReusingResources() throws IOException { return rollOver(false); }
/** * The BufferOrEventSequence returned by this method is safe for concurrent consumption with * any previously returned sequence. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverWithoutReusingResources() throws IOException { return rollOver(true); }
/** * The BufferOrEventSequence returned by this method is safe for concurrent consumption with * any previously returned sequence. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverWithoutReusingResources() throws IOException { return rollOver(true); }
/** * NOTE: The BufferOrEventSequences created by this method all reuse the same reading memory * (to reduce overhead) and can consequently not be read concurrently with each other. * * <p>To create a sequence that can be read concurrently with the previous BufferOrEventSequence, * use the {@link #rollOverWithoutReusingResources()} ()} method. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverReusingResources() throws IOException { return rollOver(false); }
/** * NOTE: The BufferOrEventSequences created by this method all reuse the same reading memory * (to reduce overhead) and can consequently not be read concurrently with each other. * * <p>To create a sequence that can be read concurrently with the previous BufferOrEventSequence, * use the {@link #rollOverWithoutReusingResources()} ()} method. * * @return The readable sequence of spilled buffers and events, or 'null', if nothing was added. * @throws IOException Thrown, if the readable sequence could not be created, or no new spill * file could be created. */ @Override public BufferOrEventSequence rollOverReusingResources() throws IOException { return rollOver(false); }