Skip to content

Commit

Permalink
Merge pull request #8778 from DarthMax/gds_arrow_server_triplet_field…
Browse files Browse the repository at this point in the history
…_handler

GDS Arrow Server - Triplet Field handlers
  • Loading branch information
DarthMax authored Mar 7, 2024
2 parents af14d41 + 09fbc13 commit 076d677
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public abstract class PropertyValues {

public abstract Iterable<String> propertyKeys();

public abstract Value get(String key);

public static PropertyValues of(MapValue mapValue) {
return new CypherPropertyValues(mapValue);
}
Expand Down Expand Up @@ -71,6 +73,11 @@ public int size() {
public Set<String> propertyKeys() {
return this.properties.keySet();
}

@Override
public Value get(String key) {
return properties.get(key);
}
}

private static final class CypherPropertyValues extends PropertyValues {
Expand Down Expand Up @@ -101,5 +108,10 @@ public int size() {
public Iterable<String> propertyKeys() {
return this.properties.keySet();
}

@Override
public Value get(String key) {
return ValueConverter.toValue(properties.get(key));
}
}
}

0 comments on commit 076d677

Please sign in to comment.