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

com.couchbase.client.java.query.dsl.path.DefaultFromPath Maven / Gradle / Ivy

There is a newer version: 3.7.7
Show newest version
package com.couchbase.client.java.query.dsl.path;

import com.couchbase.client.java.CouchbaseAsyncBucket;
import com.couchbase.client.java.query.dsl.Expression;
import com.couchbase.client.java.query.dsl.element.FromElement;

/**
 * .
 *
 * @author Michael Nitschinger
 */
public class DefaultFromPath extends DefaultLetPath implements FromPath {

    public DefaultFromPath(AbstractPath parent) {
        super(parent);
    }

    @Override
    public AsPath from(String from) {
        element(new FromElement(from));
        return new DefaultAsPath(this);
    }

    @Override
    public AsPath from(Expression from) {
        element(new FromElement(from.toString()));
        return new DefaultAsPath(this);
    }

    @Override
    public AsPath fromCurrentBucket() {
        element(new FromElement(CouchbaseAsyncBucket.CURRENT_BUCKET_IDENTIFIER));
        return new DefaultAsPath(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy