Interface BlazeJoin<Z,X>

Type Parameters:
Z - the source type of the join
X - the target type of the join
All Superinterfaces:
BlazeExpression<X>, BlazeFetchParent<Z,X>, BlazeFrom<Z,X>, BlazePath<X>, Expression<X>, Fetch<Z,X>, FetchParent<Z,X>, From<Z,X>, Join<Z,X>, Path<X>, Selection<X>, TupleElement<X>
All Known Subinterfaces:
BlazeCollectionJoin<Z,E>, BlazeListJoin<Z,E>, BlazeMapJoin<Z,K,V>, BlazeSetJoin<Z,E>

public interface BlazeJoin<Z,X> extends Fetch<Z,X>, Join<Z,X>, BlazeFrom<Z,X>
An extended version of Join.
Since:
1.2.0
Author:
Christian Beikov
  • Method Details

    • treatAs

      <T extends X> BlazeJoin<Z,T> treatAs(Class<T> type)
      Treats this from object as the given subtype. This will not cause a treat join but return a wrapper, that can be used for further joins.
      Type Parameters:
      T - The target treat type
      Parameters:
      type - type to be downcast to
      Returns:
      The treated join object
    • fetch

      BlazeJoin<Z,X> fetch()
      Fetches this join.
      Returns:
      this join instance
    • isFetch

      boolean isFetch()
      Whether this join is marked to also be fetched.
      Returns:
      true if it should be fetched, false otherwise
    • on

      BlazeJoin<Z,X> on(Expression<Boolean> restriction)
      Modify the join to restrict the result according to the specified ON condition. Replaces the previous ON condition, if any. Return the join object
      Parameters:
      restriction - a simple or compound boolean expression
      Returns:
      the modified join object
    • on

      BlazeJoin<Z,X> on(Predicate... restrictions)
      Modify the join to restrict the result according to the specified ON condition. Replaces the previous ON condition, if any. Return the join object
      Parameters:
      restrictions - zero or more restriction predicates
      Returns:
      the modified join object
    • getOn

      Predicate getOn()
      Return the predicate that corresponds to the ON restriction(s) on the join, or null if no ON condition has been specified.
      Returns:
      the ON restriction predicate