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

com.datastax.graph.Edge Maven / Gradle / Ivy

package com.datastax.graph;

import java.util.*;

/**
 * Anders Hong 6/24/2015.
 */
public class Edge {
    private long id;
    private long start;
    private String startName;
    private long end;
    private String endName;

    private String type;
    //用于进行【复合主键】的判断
    private List edgeIdColumns;

    private Map properties=new LinkedHashMap<>();
    private List> propertiesList = new ArrayList();
    private List edgeIds = new ArrayList<>(); //同方向同名边ID的集合,和propertiesList一一对应

    public long getStart() {
        return start;
    }

    public void setStart(long start) {
        this.start = start;
    }

    public long getEnd() {
        return end;
    }

    public void setEnd(long end) {
        this.end = end;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Map getProperties() {
        return properties;
    }

    public void setProperties(Map properties) {
        this.properties = properties;
    }

    public String getStartName() {
        return startName;
    }

    public void setStartName(String startName) {
        this.startName = startName;
    }

    public String getEndName() {
        return endName;
    }

    public void setEndName(String endName) {
        this.endName = endName;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public List> getPropertiesList() {
        return propertiesList;
    }

    public void setPropertiesList(List> propertiesList) {
        this.propertiesList = propertiesList;
    }

    public void addPropertiesToList(Map properties){
        this.propertiesList.add(properties);
    }

    public List getEdgeIds() {
        return edgeIds;
    }

    public void setEdgeIds(List edgeIds) {
        this.edgeIds = edgeIds;
    }

    public void addEdgeIds(Long edgeId){
        this.edgeIds.add(edgeId);
    }

    public List getEdgeIdColumns() {
        return edgeIdColumns;
    }

    public void setEdgeIdColumns(List edgeIdColumns) {
        this.edgeIdColumns = edgeIdColumns;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy