class KeyGroupsStateHandle implements StreamStateHandle, KeyedStateHandle {

	@Override
	public KeyGroupsStateHandle getIntersection(KeyGroupRange keyGroupRange) {
		KeyGroupRangeOffsets offsets = groupRangeOffsets.getIntersection(keyGroupRange);
		if (offsets.getKeyGroupRange().getNumberOfKeyGroups() <= 0) {
			return null;
		}
		return new KeyGroupsStateHandle(offsets, stateHandle);
	}

	public  KeyGroupsStateHandle(KeyGroupRangeOffsets groupRangeOffsets, StreamStateHandle streamStateHandle);

}