class TaskStateSnapshot implements CompositeStateHandle {

	@Override
	public long getStateSize() {
		long size = 0L;

		for (OperatorSubtaskState subtaskState : subtaskStatesByOperatorID.values()) {
			if (subtaskState != null) {
				size += subtaskState.getStateSize();
			}
		}

		return size;
	}

	public  TaskStateSnapshot();
	public  TaskStateSnapshot(int size);
	public  TaskStateSnapshot(Map<OperatorID, OperatorSubtaskState> subtaskStatesByOperatorID);

}