@Override public PropertyValue currentProperty() { PropertyValue p = operand.currentProperty(); if (p == null) { return null; } // TODO namespace remapping? if (!p.isArray()) { long length = p.size(); return PropertyValues.newLong(length); } // TODO what is the expected result for LENGTH(multiValueProperty)? throw new IllegalArgumentException("LENGTH(x) on multi-valued property is not supported"); }
@Override public PropertyValue currentProperty() { PropertyValue p = operand.currentProperty(); if (p == null) { return null; } // TODO namespace remapping? if (!p.isArray()) { long length = p.size(); return PropertyValues.newLong(length); } // TODO what is the expected result for LENGTH(multiValueProperty)? throw new IllegalArgumentException("LENGTH(x) on multi-valued property is not supported"); }
@Override public PropertyValue currentProperty() { PropertyValue p = operand.currentProperty(); if (p == null) { return null; } // TODO namespace remapping? if (!p.isArray()) { long length = p.size(); return PropertyValues.newLong(length); } // TODO what is the expected result for LENGTH(multiValueProperty)? throw new IllegalArgumentException("LENGTH(x) on multi-valued property is not supported"); }