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

com.datastax.driver.dse.graph.Element Maven / Gradle / Ivy

Go to download

A driver for DataStax Enterprise (DSE) and Apache Cassandra 1.2+ clusters that works exclusively with the Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol, supporting DSE-specific features such as geospatial types, DSE Graph and DSE authentication.

There is a newer version: 2.4.0
Show newest version
/*
 *      Copyright (C) 2012-2017 DataStax Inc.
 *
 *      This software can be used solely with DataStax Enterprise. Please consult the license at
 *      http://www.datastax.com/terms/datastax-dse-driver-license-terms
 */
package com.datastax.driver.dse.graph;


import java.util.Iterator;
import java.util.Set;

/**
 * The representation of an element in DSE Graph.
 * 

* Elements in DSE Graph can be of three specific types: * {@link Vertex}, {@link Edge} and {@link VertexProperty}. */ public interface Element { /** * Returns the element's identifier. * Should never be {@code null}. * * @return the element's identifier. */ GraphNode getId(); /** * Returns the element's label. * Should never be {@code null}. * * @return the element's label. */ String getLabel(); /** * Returns the set of property names for this element, * or an empty set, if this element has no properties. *

* The returned set is immutable. * * @return the set of property names for this element. */ Set getPropertyNames(); /** * Returns the first property of this element * that has the given {@code name}, * or {@code null}, if such a property name * does not exist. *

* If more than one property of this element * has the given name, which one will be returned * is unspecified. * * @return the first property of this element * that has the given {@code name}. */ Property getProperty(String name); /** * Returns all the properties of this element * that have the given {@code name}, * or an empty iterator, if such a property name * does not exist. *

* The returned iterator is immutable. * * @return all the properties of this element * that have the given {@code name}. */ Iterator getProperties(String name); /** * Returns an iterator over the element's properties, * or an empty iterator, if the element does not have any property. *

* The returned iterator is immutable. * * @return an iterator over the element's properties. */ Iterator getProperties(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy