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

com.vesoft.nebula.driver.graph.data.ExtraInfo Maven / Gradle / Ivy

The newest version!
package com.vesoft.nebula.driver.graph.data;

/**
 * the class maintains some additional information for execution result.
 */
public class ExtraInfo {

    // cursor for scan procedure
    private String cursor;
    // the number of affected nodes
    private long affectedNodes;
    // the number of affected forward edges
    private long affectedEdges;
    // the number of affected reverse edges

    public ExtraInfo() {
        this.cursor = null;
        affectedNodes = 0;
        affectedEdges = 0;
    }

    public void setCursor(String cursor) {
        this.cursor = cursor;
    }

    public void setAffectedNodes(long affectedNodes) {
        this.affectedNodes = affectedNodes;
    }

    public void setAffectedEdges(long affectedEdges) {
        this.affectedEdges = affectedEdges;
    }

    public String getCursor() {
        return this.cursor;
    }

    public long getAffectedNodes() {
        return this.affectedNodes;
    }

    public long getAffectedEdges() {
        return this.affectedEdges;
    }

    @Override
    public String toString() {
        if (cursor != null) {
            return "ExtraInfo{"
                    + "cursor='" + cursor + '\''
                    + ", affectedNodes=" + affectedNodes
                    + ", affectedForwardEdges=" + affectedEdges
                    + '}';
        } else {
            return "ExtraInfo{"
                    + ", affectedNodes=" + affectedNodes
                    + ", affectedForwardEdges=" + affectedEdges
                    + '}';
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy