class CollectionInputFormat extends GenericInputFormat<T> implements NonParallelInput {

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append('[');

		int num = 0;
		for (T e : dataSet) {
			sb.append(e);
			if (num != dataSet.size() - 1) {
				sb.append(", ");
				if (sb.length() > MAX_TO_STRING_LEN) {
					sb.append("...");
					break;
				}
			}
			num++;
		}
		sb.append(']');
		return sb.toString();
	}

	public  CollectionInputFormat(Collection<T> dataSet, TypeSerializer<T> serializer);

}