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

com.datastax.stargate.sdk.doc.domain.DocumentFunction Maven / Gradle / Ivy

There is a newer version: 2.3.7
Show newest version
package com.datastax.stargate.sdk.doc.domain;

/**
 * List built-in functions in a namespace.
 *
 * @author Cedrick LUNVEN (@clunven)
 */
public enum DocumentFunction {
    
    /**
     * Add an item to a list.
     */
    PUSH("$push"),
    
    /**
     * Pop an item from a list.
     */
    POP("$pop");
    
    private String operation;
    
    /**
     * Initialization of a function.
     *
     * @param op
     *      current operation
     */
    private DocumentFunction(String op) {
        this.operation = op;
    }
    
    /**
     * Getter for the operation.
     *
     * @return
     *      target operation
     */
    public String getOperation() {
        return operation;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy