Here are the examples of the java api org.apache.beam.repackaged.core.org.apache.commons.lang3.SerializationUtils.serialize() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
11
Source : BlockInputReader.java
with Apache License 2.0
from apache
with Apache License 2.0
from apache
/**
* Read data in the replacedigned range of hash value.
*
* @return the list of the completable future of the data.
*/
private List<CompletableFuture<DataUtil.IteratorWithNumBytes>> readDataInRange(final Predicate<Integer> predicate) {
replacedert (runtimeEdge instanceof StageEdge);
final List<KeyRange> keyRangeList = ((StageEdge) runtimeEdge).getKeyRanges();
final KeyRange hashRangeToRead = keyRangeList.get(dstTaskIndex);
if (hashRangeToRead == null) {
throw new BlockFetchException(new Throwable("The hash range to read is not replacedigned to " + dstTaskIndex + "'th task"));
}
final int parreplacedionerProperty = ((StageEdge) runtimeEdge).getPropertyValue(ParreplacedionerProperty.clreplaced).get().right();
final int taskSize = ((HashRange) hashRangeToRead).rangeEndExclusive() - ((HashRange) hashRangeToRead).rangeBeginInclusive();
metricMessageSender.send("TaskMetric", dstTaskId, "taskSizeRatio", SerializationUtils.serialize(parreplacedionerProperty / taskSize));
final int numSrcTasks = InputReader.getSourceParallelism(this);
final List<CompletableFuture<DataUtil.IteratorWithNumBytes>> futures = new ArrayList<>();
for (int srcTaskIdx = 0; srcTaskIdx < numSrcTasks; srcTaskIdx++) {
if (predicate.test(srcTaskIdx)) {
final String blockIdWildcard = generateWildCardBlockId(srcTaskIdx);
futures.add(blockManagerWorker.readBlock(blockIdWildcard, runtimeEdge.getId(), runtimeEdge.getExecutionProperties(), hashRangeToRead));
}
}
return futures;
}