SqliteJoinedQueryable<R> class
A joined queryable, produced by join_ or groupJoin_.
The join itself is done in Dart: the inner is materialized
once and indexed by key, the outer is fetched via SQL and the
matching pairs (or groups) are evaluated. The result is a flat
sequence (for join_) or one element per outer (for
groupJoin_, with empty inner list for no match).
- Inheritance
-
- Object
- Iterable<
R> - IQueryable<
R> - SqliteJoinedQueryable
- Available extensions
- AggregatesOp
- ConcatOp
- ConversionMapOps
- ConversionsOp
- DistinctOp
- ElementOp
- EnumByName
- FutureIterable
- GroupByOp
- InMemoryLookupOp
- IterableExtensions
- IterableToJSIterable
- JoinOp
- NullableIterableExtensions
- OfTypeOp
- OrderByOp
- QuantifiersOp
- SelectManyOp
- SelectOp
- SetOps
- SkipOp
- SkipWhileOp
- TakeOp
- TakeWhileOp
- ThenByOp
- ToQueryableExtension
- WhereOp
Properties
- expression → Expr?
-
The expression that produced this queryable,
or
nullfor a raw source (e.g.users.asQueryablewith no operator applied).no setteroverride - first → R
-
The first element.
no setterinherited
- firstOrNull → T?
-
Available on Iterable<
The first element of this iterator, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
-
indexed
→ Iterable<
(int, T)> -
Available on Iterable<
Pairs of elements of the indices and elements of this iterable.T> , provided by the IterableExtensions extensionno setter - isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
R> -
A new
Iteratorthat allows iterating the elements of thisIterable.no setteroverride - last → R
-
The last element.
no setterinherited
- lastOrNull → T?
-
Available on Iterable<
The last element of this iterable, orT> , provided by the IterableExtensions extensionnullif the iterable is empty.no setter - length → int
-
The number of elements in this Iterable.
no setterinherited
-
nonNulls
→ Iterable<
T> -
Available on Iterable<
The non-T?> , provided by the NullableIterableExtensions extensionnullelements of this iterable.no setter - provider → IQueryProvider
-
The provider that owns this queryable.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → R
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
- singleOrNull → T?
-
Available on Iterable<
The single element of this iterator, orT> , provided by the IterableExtensions extensionnull.no setter -
toJSIterable
→ JSIterable<
T> -
Available on Iterable<
A JSIterable wrapper that proxies to the Dart iterable API.T> , provided by the IterableToJSIterable extensionno setter -
wait
→ Future<
List< T> > -
Available on Iterable<
Waits for futures in parallel.Future< , provided by the FutureIterable extensionT> >no setter
Methods
-
aggregate_<
TResult> ({required TResult seed, required Expr func}) → TResult -
Available on IQueryable<
Applies an accumulator function over the source.T> , provided by the AggregatesOp extension -
all_(
Expr predicate) → bool -
Available on IQueryable<
ReturnsT> , provided by the QuantifiersOp extensiontrueif all elements satisfypredicate. Vacuously true for an empty source. -
any(
bool test(R element)) → bool -
Checks whether any element of this iterable satisfies
test.inherited -
any_(
{Expr? where}) → bool -
Available on IQueryable<
ReturnsT> , provided by the QuantifiersOp extensiontrueif the source has at least one element, or if at least one element satisfies the optionalwherepredicate. -
asEnumerable_(
) → Iterable< T> -
Available on IQueryable<
Returns the queryable as a plainT> , provided by the ConversionsOp extensionIterable<T>. Useful at the boundary between LINQ code anddart:corecollection APIs. -
asNameMap(
) → Map< String, T> -
Available on Iterable<
Creates a map from the names of enum values to the values.T> , provided by the EnumByName extension -
asQueryable(
) → IQueryable< T> -
Available on Iterable<
Returns an IQueryable view over this Iterable. The conversion is cheap — no elements are iterated until you call a terminal operator (e.g.T> , provided by the ToQueryableExtension extensiontoList,forEach,first). -
average_(
Expr selector) → double -
Available on IQueryable<
Returns the arithmetic mean of the values produced by theT> , provided by the AggregatesOp extensionselectorLambdaExpr. Throws StateError on an empty source. -
byName(
String name) → T -
Available on Iterable<
Finds the enum value in this list with nameT> , provided by the EnumByName extensionname. -
cast<
R> () → Iterable< R> -
A view of this iterable as an iterable of
Rinstances.inherited -
cast_<
TResult> () → IQueryable< TResult> -
Available on IQueryable<
Casts each element of the source toT> , provided by the ConversionsOp extensionTResult. Returns anIQueryable<TResult>whose elements are the cast results. -
concat_(
IQueryable< T> other) → IQueryable<T> -
Available on IQueryable<
Concatenates this queryable withT> , provided by the ConcatOp extensionother. -
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element.inherited -
contains_(
T value) → bool -
Available on IQueryable<
ReturnsT> , provided by the QuantifiersOp extensiontrueifvalueis an element of the source, compared with==(andhashCode). -
count_(
) → int - Returns the number of elements yielded by the join.
-
count_(
{Expr? where}) → int -
Available on IQueryable<
Returns the number of elements in the source. IfT> , provided by the AggregatesOp extensionwhereis provided, only elements matching the predicate are counted. -
distinct_(
) → IQueryable< T> -
Available on IQueryable<
Returns the elements of the source with duplicates removed.T> , provided by the DistinctOp extension -
elementAt(
int index) → R -
Returns the
indexth element.inherited -
elementAt_(
int index) → T -
Available on IQueryable<
Returns the element atT> , provided by the ElementOp extensionindex. Throws RangeError on out-of-range indices. -
elementAtOrDefault_(
int index) → T? -
Available on IQueryable<
Returns the element atT> , provided by the ElementOp extensionindexornullif the index is out-of-range. -
elementAtOrNull(
int index) → T? -
Available on Iterable<
The element at positionT> , provided by the IterableExtensions extensionindexof this iterable, ornull. -
every(
bool test(R element)) → bool -
Checks whether every element of this iterable satisfies
test.inherited -
except_(
IQueryable< T> other) → IQueryable<T> -
Available on IQueryable<
Returns the set difference: elements in this queryable that are not inT> , provided by the SetOps extensionother. -
expand<
T> (Iterable< T> toElements(R element)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
first_(
{Expr? where}) → T -
Available on IQueryable<
Returns the first element of the source, or the first element matching the optionalT> , provided by the ElementOp extensionwherepredicate. -
firstOrDefault_(
{Expr? where}) → T? -
Available on IQueryable<
Returns the first element of the source, orT> , provided by the ElementOp extensionnullif the source is empty (or no element matches the optionalwherepredicate). -
firstWhere(
bool test(R element), {R orElse()?}) → R -
The first element that satisfies the given predicate
test.inherited -
fold<
T> (T initialValue, T combine(T previousValue, R element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< R> other) → Iterable<R> -
Creates the lazy concatenation of this iterable and
other.inherited -
forEach(
void action(R element)) → void -
Invokes
actionon each element of this iterable in iteration order.inherited -
groupBy_<
TKey> ({required Expr keySelector}) → IQueryable< IGrouping< TKey, T> > -
Available on IQueryable<
Groups elements by the value produced byT> , provided by the GroupByOp extensionkeySelector. -
groupJoin_<
TInner, TKey, TResult> ({required IQueryable< TInner> inner, required Expr outerKeySelector, required Expr innerKeySelector, required Expr resultSelector}) → IQueryable<TResult> -
Available on IQueryable<
LEFT OUTER JOIN: each outer element is paired with a list of matching inner elements (the list is empty if no match).TOuter> , provided by the JoinOp extension -
intersect_(
IQueryable< T> other) → IQueryable<T> -
Available on IQueryable<
Returns the set intersection of this queryable andT> , provided by the SetOps extensionother. -
join(
[String separator = ""]) → String -
Converts each element to a String and concatenates the strings.
inherited
-
join_<
TInner, TKey, TResult> ({required IQueryable< TInner> inner, required Expr outerKeySelector, required Expr innerKeySelector, required Expr resultSelector}) → IQueryable<TResult> -
Available on IQueryable<
INNER JOIN: pairs each element ofTOuter> , provided by the JoinOp extensionthiswith elements ofinnerwhose key matches the outer element's key. -
lastWhere(
bool test(R element), {R orElse()?}) → R -
The last element that satisfies the given predicate
test.inherited -
longCount_(
{Expr? where}) → int -
Available on IQueryable<
Same as count_ but kept for API parity with C# LINQ. On the Dart VMT> , provided by the AggregatesOp extensionintis 64-bit on native, so there is no overflow risk in practice; this method exists for naming consistency. -
map<
T> (T toElement(R e)) → Iterable< T> -
The current elements of this iterable modified by
toElement.inherited -
max_(
Expr selector) → Object? -
Available on IQueryable<
Returns the largest value produced by theT> , provided by the AggregatesOp extensionselectorLambdaExpr. Throws StateError on an empty source. -
min_(
Expr selector) → Object? -
Available on IQueryable<
Returns the smallest value produced by theT> , provided by the AggregatesOp extensionselectorLambdaExpr. Throws StateError on an empty source. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
ofType_<
TResult> () → IQueryable< TResult> -
Available on IQueryable<
Returns the elements whose runtime type is a subtype ofT> , provided by the OfTypeOp extensionTResult. -
orderBy_(
Expr keySelector) → IQueryable< T> -
Available on IQueryable<
Sorts the elements in ascending order of the values produced byT> , provided by the OrderByOp extensionkeySelector. -
orderByDescending_(
Expr keySelector) → IQueryable< T> -
Available on IQueryable<
Sorts the elements in descending order of the values produced byT> , provided by the OrderByOp extensionkeySelector. -
reduce(
R combine(R value, R element)) → R -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
select_<
TResult> (Expr selector) → IQueryable< TResult> -
Available on IQueryable<
Projects each element into a new form.T> , provided by the SelectOp extension -
selectMany_<
TCollection, TResult> (Expr collectionSelector, {Expr? resultSelector}) → IQueryable< TResult> -
Available on IQueryable<
Projects each element into a collection and flattens the result.T> , provided by the SelectManyOp extension -
single_(
{Expr? where}) → T -
Available on IQueryable<
Returns the only element of the source (or the only one matching the optionalT> , provided by the ElementOp extensionwherepredicate). -
singleOrDefault_(
{Expr? where}) → T? -
Available on IQueryable<
Returns the only element of the source, orT> , provided by the ElementOp extensionnullif there are zero matching elements. Throws StateError if there is more than one matching element. -
singleWhere(
bool test(R element), {R orElse()?}) → R -
The single element that satisfies
test.inherited -
skip(
int count) → Iterable< R> -
Creates an Iterable that provides all but the first
countelements.inherited -
skip_(
int count) → IQueryable< T> -
Available on IQueryable<
Returns a queryable that skips the firstT> , provided by the SkipOp extensioncountelements. -
skipWhile(
bool test(R element)) → Iterable< R> -
Creates an
Iterablethat skips leading elements whiletestis satisfied.inherited -
skipWhile_(
Expr predicate) → IQueryable< T> -
Available on IQueryable<
Skips the prefix of the source whereT> , provided by the SkipWhileOp extensionpredicateis true. -
sum_(
Expr selector) → num -
Available on IQueryable<
Returns the sum of the values produced by theT> , provided by the AggregatesOp extensionselectorLambdaExpr. The values must benum(int or double). -
take(
int count) → Iterable< R> -
Creates a lazy iterable of the
countfirst elements of this iterable.inherited -
take_(
int count) → IQueryable< T> -
Available on IQueryable<
Returns a queryable containing at most the firstT> , provided by the TakeOp extensioncountelements. -
takeWhile(
bool test(R element)) → Iterable< R> -
Creates a lazy iterable of the leading elements satisfying
test.inherited -
takeWhile_(
Expr predicate) → IQueryable< T> -
Available on IQueryable<
Returns the prefix of the source whereT> , provided by the TakeWhileOp extensionpredicateis true. -
thenBy_(
Expr keySelector) → IQueryable< T> -
Available on IQueryable<
Adds a secondary ascending sort to the ordering.T> , provided by the ThenByOp extension -
thenByDescending_(
Expr keySelector) → IQueryable< T> -
Available on IQueryable<
Adds a secondary descending sort to the ordering.T> , provided by the ThenByOp extension -
toList(
{bool growable = true}) → List< R> -
Creates a List containing the elements of this Iterable.
inherited
-
toList_(
) → List< T> -
Available on IQueryable<
Materializes the queryable into aT> , provided by the ConversionsOp extensionList<T>. -
toList_(
) → List< R> - Materializes the joined sequence.
-
toLookup_<
TKey> ({required Expr keySelector}) → ILookup< TKey, T> -
Available on Iterable<
: groups the source byT> , provided by the InMemoryLookupOp extensionkeySelector. The result is iterable: iterate to getIGrouping<TKey, T>entries (one per key). -
toMap_<
TKey> ({required Expr keySelector}) → Map< TKey, T> -
Available on IQueryable<
Materializes the queryable into aT> , provided by the ConversionsOp extensionMap<TKey, T>using thekeySelectorto extract the key for each element. -
toSet(
) → Set< R> -
Creates a Set containing the same elements as this iterable.
inherited
-
toSet_(
) → Set< T> -
Available on IQueryable<
Materializes the queryable into aT> , provided by the ConversionsOp extensionSet<T>. -
toString(
) → String -
Returns a string representation of (some of) the elements of
this.inherited -
union_(
IQueryable< T> other) → IQueryable<T> -
Available on IQueryable<
Returns the set union of this queryable andT> , provided by the SetOps extensionother. -
where(
bool test(R element)) → Iterable< R> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test.inherited -
where_(
Expr predicate) → IQueryable< T> -
Available on IQueryable<
Filters the queryable to elements for whichT> , provided by the WhereOp extensionpredicatereturnstrue. Thepredicatemust be a single-parameter LambdaExpr. -
whereType<
T> () → Iterable< R> -
Creates a new lazy Iterable with all elements that have type
T.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited