@Override protected Object convert(Property o) { return o.getValue(); } };
@Override protected Object convert(Property p) { return p.getValue(); } };
@Override protected Object convert(Property p) { return p.getValue(); } };
public static String getValue(Property property) { Object value = property.getValue(); if (value == null) { return null; } return value.toString(); } }
private boolean evaluate(Property property, Object second, PropertyDefinition propertyDefinition) { Object first = property.getValue(); Compare comparePredicate = this; return evaluate(first, comparePredicate, second, propertyDefinition); }
@Override public Object getPropertyValue(String name) { Property p = getProperty(name); return p == null ? null : p.getValue(); }
@Override public Object getPropertyValue(String key, String name) { Property p = getProperty(key, name); return p == null ? null : p.getValue(); }
private boolean evaluate(Property property, Object second, PropertyDefinition propertyDefinition) { Object first = property.getValue(); Compare comparePredicate = this; return evaluate(first, comparePredicate, second, propertyDefinition); }
@Override public Object getPropertyValue(String key, String name) { Property prop = getProperty(key, name); if (prop == null) { return null; } return prop.getValue(); }
private JSONObject getProductDataJson(Vertex productVertex) { JSONObject data = new JSONObject(); Iterable<Property> dataProperties = WorkspaceProperties.PRODUCT_DATA.getProperties(productVertex); for (Property dataProperty : dataProperties) { data.put(dataProperty.getKey(), dataProperty.getValue()); } return data; }
protected void run(GraphPropertyWorker gpw, GraphPropertyWorkerPrepareData workerPrepareData, Element e) { for (Property property : e.getProperties()) { InputStream in = null; if (property.getValue() instanceof StreamingPropertyValue) { StreamingPropertyValue spv = (StreamingPropertyValue) property.getValue(); in = spv.getInputStream(); } run(gpw, workerPrepareData, e, property, in); } }
private boolean evaluateQueryString(Element element, String queryString) { for (Property property : element.getProperties()) { if (evaluateQueryStringOnValue(property.getValue(), queryString)) { return true; } } return false; }
private boolean evaluateQueryString(ExtendedDataRow extendedDataRow, String queryString) { for (Property property : extendedDataRow.getProperties()) { if (evaluateQueryStringOnValue(property.getValue(), queryString)) { return true; } } return false; }
private boolean evaluateQueryString(ExtendedDataRow extendedDataRow, String queryString) { for (Property property : extendedDataRow.getProperties()) { if (evaluateQueryStringOnValue(property.getValue(), queryString)) { return true; } } return false; }
public void addPropertyToIndexInner(Graph graph, IndexInfo indexInfo, Property property) throws IOException { String deflatedPropertyName = addVisibilityToPropertyName(graph, property); Object propertyValue = property.getValue(); Visibility propertyVisibility = property.getVisibility(); addPropertyToIndexInner(graph, indexInfo, deflatedPropertyName, propertyValue, propertyVisibility); }
public void addPropertyToIndexInner(Graph graph, IndexInfo indexInfo, Property property) throws IOException { String deflatedPropertyName = deflatePropertyName(graph, property); Object propertyValue = property.getValue(); Visibility propertyVisibility = property.getVisibility(); addPropertyToIndexInner(graph, indexInfo, deflatedPropertyName, propertyValue, propertyVisibility); }
public IndexInfo addPropertiesToIndex(Graph graph, Element element, Iterable<Property> properties) { try { String indexName = getIndexName(element); IndexInfo indexInfo = ensureIndexCreatedAndInitialized(indexName); for (Property property : properties) { addPropertyToIndex(graph, indexInfo, property.getName(), property.getValue(), property.getVisibility()); } return indexInfo; } catch (IOException e) { throw new VertexiumException("Could not add properties to index", e); } }
public IndexInfo addPropertiesToIndex(Graph graph, Element element, Iterable<Property> properties) { try { String indexName = getIndexName(element); IndexInfo indexInfo = ensureIndexCreatedAndInitialized(indexName); for (Property property : properties) { addPropertyToIndex(graph, indexInfo, property.getName(), property.getValue(), property.getVisibility()); } return indexInfo; } catch (IOException e) { throw new VertexiumException("Could not add properties to index", e); } }
public void update(Property property) { if (property.getHiddenVisibilities() != null) { for (Visibility v : property.getHiddenVisibilities()) { addHiddenVisibility(v); } } setValue(property.getValue()); setTimestamp(property.getTimestamp()); updateMetadata(property); } }
public void addPropertyToMutation(AccumuloGraph graph, Mutation m, String rowKey, Property property) { Text columnQualifier = KeyHelper.getColumnQualifierFromPropertyColumnQualifier(property, getNameSubstitutionStrategy()); ColumnVisibility columnVisibility = visibilityToAccumuloVisibility(property.getVisibility()); Object propertyValue = transformValue(property.getValue(), rowKey, property); // graph can be null if this is running in Map Reduce. We can just assume the property is already defined. if (graph != null) { graph.ensurePropertyDefined(property.getName(), propertyValue); } Value value = new Value(vertexiumSerializer.objectToBytes(propertyValue)); m.put(AccumuloElement.CF_PROPERTY, columnQualifier, columnVisibility, property.getTimestamp(), value); addPropertyMetadataToMutation(m, property); }