Search in sources :

Example 1 with TitanProperty

use of com.thinkaurelius.titan.core.TitanProperty in project incubator-atlas by apache.

the class Titan0Vertex method getPropertyValues.

@Override
public <T> Collection<T> getPropertyValues(String key, Class<T> clazz) {
    TitanVertex tv = getAsTitanVertex();
    Collection<T> result = new ArrayList<>();
    for (TitanProperty property : tv.getProperties(key)) {
        result.add((T) property.getValue());
    }
    return result;
}
Also used : TitanVertex(com.thinkaurelius.titan.core.TitanVertex) ArrayList(java.util.ArrayList) TitanProperty(com.thinkaurelius.titan.core.TitanProperty)

Aggregations

TitanProperty (com.thinkaurelius.titan.core.TitanProperty)1 TitanVertex (com.thinkaurelius.titan.core.TitanVertex)1 ArrayList (java.util.ArrayList)1