Search in sources :

Example 1 with VirtualNodeValue

use of org.neo4j.values.virtual.VirtualNodeValue in project neo4j by neo4j.

the class CypherFunctions method asPoint.

private static Value asPoint(DbAccess access, VirtualNodeValue nodeValue, NodeCursor nodeCursor, PropertyCursor propertyCursor) {
    MapValueBuilder builder = new MapValueBuilder();
    for (String key : POINT_KEYS) {
        Value value = access.nodeProperty(nodeValue.id(), access.propertyKey(key), nodeCursor, propertyCursor, true);
        if (value == NO_VALUE) {
            continue;
        }
        builder.add(key, value);
    }
    return PointValue.fromMap(builder.build());
}
Also used : MapValueBuilder(org.neo4j.values.virtual.MapValueBuilder) TemporalValue(org.neo4j.values.storable.TemporalValue) ArrayValue(org.neo4j.values.storable.ArrayValue) Values.doubleValue(org.neo4j.values.storable.Values.doubleValue) NodeValue(org.neo4j.values.virtual.NodeValue) Value(org.neo4j.values.storable.Value) Values.longValue(org.neo4j.values.storable.Values.longValue) StringValue(org.neo4j.values.storable.StringValue) RelationshipValue(org.neo4j.values.virtual.RelationshipValue) TextValue(org.neo4j.values.storable.TextValue) PointValue(org.neo4j.values.storable.PointValue) SequenceValue(org.neo4j.values.SequenceValue) PathValue(org.neo4j.values.virtual.PathValue) AnyValue(org.neo4j.values.AnyValue) DoubleValue(org.neo4j.values.storable.DoubleValue) DurationValue(org.neo4j.values.storable.DurationValue) MapValue(org.neo4j.values.virtual.MapValue) NumberValue(org.neo4j.values.storable.NumberValue) LongValue(org.neo4j.values.storable.LongValue) BooleanValue(org.neo4j.values.storable.BooleanValue) ListValue(org.neo4j.values.virtual.ListValue) Values.stringValue(org.neo4j.values.storable.Values.stringValue) VirtualNodeValue(org.neo4j.values.virtual.VirtualNodeValue) IntegralValue(org.neo4j.values.storable.IntegralValue) VirtualRelationshipValue(org.neo4j.values.virtual.VirtualRelationshipValue)

Aggregations

AnyValue (org.neo4j.values.AnyValue)1 SequenceValue (org.neo4j.values.SequenceValue)1 ArrayValue (org.neo4j.values.storable.ArrayValue)1 BooleanValue (org.neo4j.values.storable.BooleanValue)1 DoubleValue (org.neo4j.values.storable.DoubleValue)1 DurationValue (org.neo4j.values.storable.DurationValue)1 IntegralValue (org.neo4j.values.storable.IntegralValue)1 LongValue (org.neo4j.values.storable.LongValue)1 NumberValue (org.neo4j.values.storable.NumberValue)1 PointValue (org.neo4j.values.storable.PointValue)1 StringValue (org.neo4j.values.storable.StringValue)1 TemporalValue (org.neo4j.values.storable.TemporalValue)1 TextValue (org.neo4j.values.storable.TextValue)1 Value (org.neo4j.values.storable.Value)1 Values.doubleValue (org.neo4j.values.storable.Values.doubleValue)1 Values.longValue (org.neo4j.values.storable.Values.longValue)1 Values.stringValue (org.neo4j.values.storable.Values.stringValue)1 ListValue (org.neo4j.values.virtual.ListValue)1 MapValue (org.neo4j.values.virtual.MapValue)1 MapValueBuilder (org.neo4j.values.virtual.MapValueBuilder)1