public static final class Reductions.Counting extends SelfDescribingMarshallable implements Reduction<LongSupplier>
This is an example of a public class with configurable properties that can be referenced in a YAML configuration file.
Reduction.DoubleReductionBuilder, Reduction.LongReductionBuilder, Reduction.ReductionBuilder<E>EMPTYDISCARD| Constructor and Description |
|---|
Counting() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
onExcerpt(@NotNull Wire wire,
long index)
Consumes an excerpt from the provided
wire at the index at the provided index. |
@NotNull LongSupplier |
reduction()
Returns a view of the underlying reduction.
|
usesSelfDescribingMessagetoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, of, ofDouble, ofLongandThen$equals, $fieldInfoMap, $fieldInfos, $hashCode, $toString, className, copyTo, deepCopy, fromFile, fromFile, fromString, fromString, fromString, getField, getLongField, mergeToMap, readMarshallable, reset, setField, setLongField, streamFromFile, streamFromFile, writeMarshallablebinaryLengthLength, writeValueunexpectedFieldpublic void onExcerpt(@NotNull
@NotNull Wire wire,
long index)
Reductionwire at the index at the provided index.
If this method throws an Exception, it is relayed to the call site. Therefore, care should be taken to minimise the probability of throwing Exceptions.
If this method is referenced as an ExcerptListener then the Reduction must be
thread-safe.
onExcerpt in interface Reduction<LongSupplier>onExcerpt in interface ExcerptListenerwire - representing access to the excerpt that was stored (non-null).index - in the queue where the except was placed (non-negative)@NotNull public @NotNull LongSupplier reduction()
Reductionreduction in interface Reduction<LongSupplier>public boolean equals(Object o)
equals in class AbstractCommonMarshallablepublic int hashCode()
hashCode in class AbstractCommonMarshallableCopyright © 2023. All rights reserved.