All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.spark.stats.PartitionCountEventStats Maven / Gradle / Ivy

There is a newer version: 1.0.0-beta_spark_2
Show newest version
package org.deeplearning4j.spark.stats;

import lombok.Getter;

/**
 * Event stats implementation with partition count
 *
 * @author Alex Black
 */
public class PartitionCountEventStats extends BaseEventStats {

    @Getter private final int numPartitions;

    public PartitionCountEventStats(long startTime, long durationMs, int numPartitions) {
        super(startTime, durationMs);
        this.numPartitions = numPartitions;
    }

    public PartitionCountEventStats(String machineId, String jvmId, long threadId, long startTime, long durationMs, int numPartitions){
        super(machineId, jvmId, threadId, startTime, durationMs);
        this.numPartitions = numPartitions;
    }

    @Override
    public String asString(String delimiter){
        return super.asString(delimiter) + delimiter + numPartitions;
    }

    @Override
    public String getStringHeader(String delimiter){
        return super.getStringHeader(delimiter) + delimiter + "numPartitions";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy