public abstract class NumericQueryStepBuilderImpl<S,I,E extends java.lang.Number> extends AbstractQueryStepBuilder<S,I,E> implements NumericQueryStepBuilder<S,E>
previous| Constructor and Description |
|---|
NumericQueryStepBuilderImpl(TraversalChainElement previous) |
| Modifier and Type | Method and Description |
|---|---|
NumericQueryStepBuilder<S,java.lang.Byte> |
asByte()
Converts the elements in the current result set into
Bytes. |
NumericQueryStepBuilder<S,java.lang.Double> |
asDouble()
Converts the elements in the current result set into
Doubles. |
NumericQueryStepBuilder<S,java.lang.Float> |
asFloat()
Converts the elements in the current result set into
Floats. |
NumericQueryStepBuilder<S,java.lang.Integer> |
asInteger()
Converts the elements in the current result set into
Integers. |
NumericQueryStepBuilder<S,java.lang.Long> |
asLong()
Converts the elements in the current result set into
Longs. |
NumericQueryStepBuilder<S,java.lang.Short> |
asShort()
Converts the elements in the current result set into
Shorts. |
java.util.Optional<java.lang.Double> |
average() |
NumericQueryStepBuilder<S,java.lang.Long> |
ceil() |
NumericQueryStepBuilder<S,java.lang.Long> |
floor() |
java.util.Optional<java.lang.Double> |
maxAsDouble() |
java.util.Optional<java.lang.Long> |
maxAsLong() |
java.util.Optional<java.lang.Double> |
minAsDouble() |
java.util.Optional<java.lang.Long> |
minAsLong() |
NumericQueryStepBuilder<S,java.lang.Long> |
round() |
NumericQueryStepBuilder<S,java.lang.Integer> |
roundToInt() |
java.util.Optional<java.lang.Double> |
sumAsDouble() |
java.util.Optional<java.lang.Long> |
sumAsLong() |
and, back, count, distinct, except, except, filter, flatMap, getPrevious, limit, map, named, not, notNull, or, orderBy, setPrevious, toIterator, toList, toSet, toStream, unionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitand, back, count, distinct, except, except, filter, flatMap, limit, map, named, not, notNull, or, orderBy, toIterator, toList, toSet, toStream, unionidentity, transformTraversalpublic NumericQueryStepBuilderImpl(TraversalChainElement previous)
public java.util.Optional<java.lang.Double> sumAsDouble()
sumAsDouble in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Long> sumAsLong()
sumAsLong in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Double> average()
average in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Double> maxAsDouble()
maxAsDouble in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Long> maxAsLong()
maxAsLong in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Double> minAsDouble()
minAsDouble in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public java.util.Optional<java.lang.Long> minAsLong()
minAsLong in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public NumericQueryStepBuilder<S,java.lang.Long> round()
round in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public NumericQueryStepBuilder<S,java.lang.Integer> roundToInt()
roundToInt in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public NumericQueryStepBuilder<S,java.lang.Long> floor()
floor in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public NumericQueryStepBuilder<S,java.lang.Long> ceil()
ceil in interface NumericQueryStepBuilder<S,E extends java.lang.Number>public NumericQueryStepBuilder<S,java.lang.Byte> asByte()
NumericCastableQueryStepBuilderBytes.
This method first checks if the element in question is an instance of Byte. If it is a Byte, it is cast down and
forwarded. Otherwise, it is discarded, i.e. all non-Bytes will be filtered out. All null values will
also be filtered out.
asByte in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.public NumericQueryStepBuilder<S,java.lang.Short> asShort()
NumericCastableQueryStepBuilderShorts.
This method first checks if the element in question is an instance of Short. If it is a Short, it is cast down
and forwarded. Otherwise, it is discarded, i.e. all non-Shorts will be filtered out. All null values
will also be filtered out.
asShort in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.public NumericQueryStepBuilder<S,java.lang.Integer> asInteger()
NumericCastableQueryStepBuilderIntegers.
This method first checks if the element in question is an instance of Integer. If it is a Integer, it is cast
down and forwarded. Otherwise, it is discarded, i.e. all non-Integers will be filtered out. All null
values will also be filtered out.
asInteger in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.public NumericQueryStepBuilder<S,java.lang.Long> asLong()
NumericCastableQueryStepBuilderLongs.
This method first checks if the element in question is an instance of Long. If it is a Long, it is cast down and
forwarded. Otherwise, it is discarded, i.e. all non-Longs will be filtered out. All null values will
also be filtered out.
asLong in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.public NumericQueryStepBuilder<S,java.lang.Float> asFloat()
NumericCastableQueryStepBuilderFloats.
This method first checks if the element in question is an instance of Float. If it is a Float, it is cast down
and forwarded. Otherwise, it is discarded, i.e. all non-Floats will be filtered out. All null values
will also be filtered out.
asFloat in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.public NumericQueryStepBuilder<S,java.lang.Double> asDouble()
NumericCastableQueryStepBuilderDoubles.
This method first checks if the element in question is an instance of Double. If it is a Double, it is cast down
and forwarded. Otherwise, it is discarded, i.e. all non-Doubles will be filtered out. All null
values will also be filtered out.
asDouble in interface NumericCastableQueryStepBuilder<S,E extends java.lang.Number>null.