org.vertexium.Element.getPropertyValue()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(251)

本文整理了Java中org.vertexium.Element.getPropertyValue()方法的一些代码示例,展示了Element.getPropertyValue()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getPropertyValue()方法的具体详情如下:
包路径:org.vertexium.Element
类名称:Element
方法名:getPropertyValue

Element.getPropertyValue介绍

暂无

代码示例

代码示例来源:origin: org.visallo/visallo-core

public final TRaw getPropertyValue(Element element, String propertyKey) {
  Object value = element != null ? element.getPropertyValue(propertyKey, getPropertyName()) : null;
  return value != null ? getRawConverter().apply(value) : null;
}

代码示例来源:origin: org.visallo/visallo-core

public final TRaw getPropertyValue(Element element) {
  Object value = element != null ? element.getPropertyValue(getPropertyName()) : null;
  return value != null ? getRawConverter().apply(value) : null;
}

代码示例来源:origin: org.visallo/visallo-core

public final TRaw getPropertyValueRequired(Element element) {
  checkNotNull(element, "Element cannot be null");
  Object value = element.getPropertyValue(getPropertyName());
  checkNotNull(value, "Property value of property " + getPropertyName() + " cannot be null");
  return getRawConverter().apply(value);
}

代码示例来源:origin: org.vertexium/vertexium-cypher

private boolean propertyMapMatch(
    VertexiumCypherQueryContext ctx,
    Element element,
    ListMultimap<String, CypherAstBase> propertiesMap,
    ExpressionScope scope
) {
  for (Map.Entry<String, CypherAstBase> propertyEntry : propertiesMap.entries()) {
    Object propertyValue = element.getPropertyValue(propertyEntry.getKey());
    Object expressionValue = ctx.getExpressionExecutor().executeExpression(ctx, propertyEntry.getValue(), scope);
    if (!ObjectUtils.equals(propertyValue, expressionValue)) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: visallo/vertexium

private boolean propertyMapMatch(
    VertexiumCypherQueryContext ctx,
    Element element,
    ListMultimap<String, CypherAstBase> propertiesMap,
    ExpressionScope scope
) {
  for (Map.Entry<String, CypherAstBase> propertyEntry : propertiesMap.entries()) {
    Object propertyValue = element.getPropertyValue(propertyEntry.getKey());
    Object expressionValue = ctx.getExpressionExecutor().executeExpression(ctx, propertyEntry.getValue(), scope);
    if (!ObjectUtils.equals(propertyValue, expressionValue)) {
      return false;
    }
  }
  return true;
}

代码示例来源:origin: visallo/vertexium

if (indexObj instanceof String) {
  String propertyName = (String) indexObj;
  return element.getPropertyValue(propertyName);

代码示例来源:origin: org.vertexium/vertexium-cypher

if (indexObj instanceof String) {
  String propertyName = (String) indexObj;
  return element.getPropertyValue(propertyName);

代码示例来源:origin: org.vertexium/vertexium-cypher

return element.getPropertyValue(ctx.normalizePropertyName(expression.getProperty()));

代码示例来源:origin: visallo/vertexium

return element.getPropertyValue(ctx.normalizePropertyName(expression.getProperty()));

相关文章