public abstract class ObjectQueryStepBuilderImpl<S,I,E> extends AbstractQueryStepBuilder<S,I,E> implements UntypedQueryStepBuilder<S,E>
previous| Constructor and Description |
|---|
ObjectQueryStepBuilderImpl(TraversalChainElement previous) |
| Modifier and Type | Method and Description |
|---|---|
QueryStepBuilder<S,java.lang.Boolean> |
asBoolean()
Converts the elements in the current result set into
Booleans. |
NumericQueryStepBuilder<S,java.lang.Byte> |
asByte()
Converts the elements in the current result set into
Bytes. |
QueryStepBuilder<S,java.lang.Character> |
asCharacter()
Converts the elements in the current result set into
Characters. |
NumericQueryStepBuilder<S,java.lang.Double> |
asDouble()
Converts the elements in the current result set into
Doubles. |
EObjectQueryStepBuilder<S> |
asEObject()
Converts the elements in the current result set into
EObjects. |
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. |
UntypedQueryStepBuilder<S,E> |
filter(java.util.function.Predicate<E> predicate)
Applies the given filter predicate to all elements in the current result.
|
and, back, count, distinct, except, except, 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, flatMap, limit, map, named, not, notNull, or, orderBy, toIterator, toList, toSet, toStream, unionidentity, transformTraversalpublic ObjectQueryStepBuilderImpl(TraversalChainElement previous)
public EObjectQueryStepBuilder<S> asEObject()
UntypedQueryStepBuilderEObjects.
This method first checks if the element in question is an instance of EObject. If it is an EObject, it is cast
down and forwarded. Otherwise, it is discarded, i.e. all non-EObjects will be filtered out. All null
values will also be filtered out.
asEObject in interface UntypedQueryStepBuilder<S,E>null.public QueryStepBuilder<S,java.lang.Boolean> asBoolean()
UntypedQueryStepBuilderBooleans.
This method first checks if the element in question is an instance of Boolean. If it is a Boolean, it is cast
down and forwarded. Otherwise, it is discarded, i.e. all non-Booleans will be filtered out. All null
values will also be filtered out.
asBoolean in interface UntypedQueryStepBuilder<S,E>null.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>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>null.public QueryStepBuilder<S,java.lang.Character> asCharacter()
UntypedQueryStepBuilderCharacters.
This method first checks if the element in question is an instance of Character. If it is a Character, it is cast
down and forwarded. Otherwise, it is discarded, i.e. all non-Characters will be filtered out. All
null values will also be filtered out.
asCharacter in interface UntypedQueryStepBuilder<S,E>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>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>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>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>null.public UntypedQueryStepBuilder<S,E> filter(java.util.function.Predicate<E> predicate)
QueryStepBuilderfilter in interface QueryStepBuilder<S,E>filter in class AbstractQueryStepBuilder<S,I,E>predicate - The predicate to apply. Must not be null. All elements for which the predicate function
returns false will be filtered out and discarded.null.