Class TelemetryBatch<T extends Telemetry>

    • Constructor Detail

      • TelemetryBatch

        public TelemetryBatch​(java.util.Collection<T> telemetry,
                              Attributes commonAttributes)
    • Method Detail

      • split

        public java.util.List<TelemetryBatch<T>> split()
        Split this batch into 2 roughly equal pieces. If the initial batch contains no telemetry, this will simply return an empty list of batches.
        Returns:
        a List of telemetry batches, roughly split in 2.
      • size

        public int size()
        Returns the number of telemetry items in this collection. If this batch contains more than {Integer.MAX_VALUE} items, returns {Integer.MAX_VALUE}.
        Returns:
        the number of telemetry items in this batch
      • hasCommonAttributes

        public boolean hasCommonAttributes()
        Returns:
        true if the common attributes are not empty
      • isEmpty

        public boolean isEmpty()
      • createSubBatch

        public abstract TelemetryBatch<T> createSubBatch​(java.util.Collection<T> telemetry)
      • getTelemetry

        public java.util.Collection<T> getTelemetry()
      • getCommonAttributes

        public Attributes getCommonAttributes()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object