All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.elide.datastores.aggregation.annotation.Join Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2020, Yahoo Inc.
 * Licensed under the Apache License, Version 2.0
 * See LICENSE file in project root for terms.
 */
package com.yahoo.elide.datastores.aggregation.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Documented
@Target({ElementType.FIELD, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Join {
    /**
     * Join ON clause constraint for customizing relationship joins. {{..}} is used for column references.
     *
     * @return join constraint like {{col1}} = {{joinField.col2}}
     */
    String value();

    /**
     * Join type.
     * @return join type like {@code left, inner, full or cross}
     */
    JoinType type() default JoinType.LEFT;

    /**
     * Whether this joins to one or to many rows.
     * @return true if it joins to one row.
     */
    boolean toOne() default false;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy