prev = end + 1; for (int kg : offsets.getKeyGroupRange()) { offsets.setKeyGroupOffset(kg, out.getPosition()); dov.writeInt(kg); ++writtenKeyGroups;
/** * User code can call this method to signal that it begins to write a new key group with the given key group id. * This id must be within the {@link KeyGroupsList} provided by the stream. Each key-group can only be started once * and is considered final/immutable as soon as this method is called again. */ public void startNewKeyGroup(int keyGroupId) throws IOException { if (isKeyGroupAlreadyStarted(keyGroupId)) { throw new IOException("Key group " + keyGroupId + " already registered!"); } keyGroupRangeOffsets.setKeyGroupOffset(keyGroupId, delegate.getPos()); currentKeyGroup = keyGroupId; }
/** * User code can call this method to signal that it begins to write a new key group with the given key group id. * This id must be within the {@link KeyGroupsList} provided by the stream. Each key-group can only be started once * and is considered final/immutable as soon as this method is called again. */ public void startNewKeyGroup(int keyGroupId) throws IOException { if (isKeyGroupAlreadyStarted(keyGroupId)) { throw new IOException("Key group " + keyGroupId + " already registered!"); } keyGroupRangeOffsets.setKeyGroupOffset(keyGroupId, delegate.getPos()); currentKeyGroup = keyGroupId; }
/** * User code can call this method to signal that it begins to write a new key group with the given key group id. * This id must be within the {@link KeyGroupsList} provided by the stream. Each key-group can only be started once * and is considered final/immutable as soon as this method is called again. */ public void startNewKeyGroup(int keyGroupId) throws IOException { if (isKeyGroupAlreadyStarted(keyGroupId)) { throw new IOException("Key group " + keyGroupId + " already registered!"); } keyGroupRangeOffsets.setKeyGroupOffset(keyGroupId, delegate.getPos()); currentKeyGroup = keyGroupId; }
/** * User code can call this method to signal that it begins to write a new key group with the given key group id. * This id must be within the {@link KeyGroupsList} provided by the stream. Each key-group can only be started once * and is considered final/immutable as soon as this method is called again. */ public void startNewKeyGroup(int keyGroupId) throws IOException { if (isKeyGroupAlreadyStarted(keyGroupId)) { throw new IOException("Key group " + keyGroupId + " already registered!"); } keyGroupRangeOffsets.setKeyGroupOffset(keyGroupId, delegate.getPos()); currentKeyGroup = keyGroupId; }
keyGroupRangeOffsets.setKeyGroupOffset( previousKeyGroup, checkpointFileStream.getPos()); keyGroupRangeOffsets.setKeyGroupOffset( nextRow.getKeyGroup(maxParallelism), checkpointFileStream.getPos());
keyGroupRangeOffsets.setKeyGroupOffset(mergeIterator.keyGroup(), outStream.getPos()); keyGroupRangeOffsets.setKeyGroupOffset(mergeIterator.keyGroup(), outStream.getPos());