@Override @SuppressWarnings("unchecked") public LoadGeneratorBuilderImpl<I, O, T> itemInput(final Input<I> itemInput) throws InterruptRunException { this.itemInput = itemInput; // pipeline transfer buffer is not resettable if (!(itemInput instanceof TransferConvertBuffer)) { sizeEstimate = estimateTransferSize( null, OpType.valueOf(loadConfig.stringVal("op-type").toUpperCase()), (Input<DataItem>) itemInput); } return this; }
outputPathSupplier = getOutputPathSupplier(); } else { outputPathSupplier = null; final Map<String, String> credentials = loadCredentials(authFile, (long) M); opsBuilder.credentialsMap(credentials); } else { if ((itemInputFile == null || itemInputFile.isEmpty()) && (itemInputPath == null || itemInputPath.isEmpty())) { itemInput = newItemInput(); } else if (opOutput instanceof StorageDriver) { itemInput = estimateTransferSize( (DataOperationsBuilder) opsBuilder, opsBuilder.opType(), final int srcItemsCount; try { srcItemsCount = loadSrcItems(itemInput, srcItemsBuff, (int) M); } finally { try { .srcItemsCount((int) srcItemsCountMin, (int) srcItemsCountMax); ((DataOperationsBuilder) opsBuilder).srcItemsForConcat(srcItemsBuff); itemInput = newItemInput();