public Metadata getMetadata() { if (!fetchHints.isIncludePropertyMetadata()) { throw new VertexiumMissingFetchHintException(fetchHints, "includePropertyMetadata"); } return metadata; }
public void assertPropertyIncluded(String name) { if (isIncludeProperty(name)) { return; } throw new VertexiumMissingFetchHintException(this, "property:" + name); }
public void assertMetadataIncluded(String key) { if (isIncludeMetadata(key)) { return; } throw new VertexiumMissingFetchHintException(this, "metadata:" + key); } }
public Metadata getMetadata() { if (!fetchHints.isIncludePropertyMetadata()) { throw new VertexiumMissingFetchHintException(fetchHints, "includePropertyMetadata"); } return metadata; }
public void assertPropertyIncluded(String name) { if (isIncludeProperty(name)) { return; } throw new VertexiumMissingFetchHintException(this, "property:" + name); }
public void assertMetadataIncluded(String key) { if (isIncludeMetadata(key)) { return; } throw new VertexiumMissingFetchHintException(this, "metadata:" + key); } }
@Override public ImmutableSet<String> getExtendedDataTableNames() { if (!getFetchHints().isIncludeExtendedDataTableNames()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeExtendedDataTableNames"); } return extendedDataTableNames; }
@Override public ExistingElementMutation<T> alterPropertyVisibility(String key, String name, Visibility visibility) { if (!element.getFetchHints().isIncludePropertyAndMetadata(name)) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + name + " needs to be included with metadata"); } this.alterPropertyVisibilities.add(new AlterPropertyVisibility(key, name, null, visibility)); return this; }
@Override public ImmutableSet<String> getExtendedDataTableNames() { if (!getFetchHints().isIncludeExtendedDataTableNames()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeExtendedDataTableNames"); } return extendedDataTableNames; }
@Override public ExistingElementMutation<T> alterPropertyVisibility(String key, String name, Visibility visibility) { if (!element.getFetchHints().isIncludePropertyAndMetadata(name)) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + name + " needs to be included with metadata"); } this.alterPropertyVisibilities.add(new AlterPropertyVisibility(key, name, null, visibility)); return this; }
@Override public Iterable<Property> getProperties() { if (!getFetchHints().isIncludeProperties()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeProperties"); } return this.properties.getProperties(); }
@Override public Iterable<Property> getProperties() { if (!getFetchHints().isIncludeProperties()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeProperties"); } return this.properties.getProperties(); }
@Override public Iterable<Property> getProperties() { if (!getFetchHints().isIncludeProperties()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeProperties"); } return inMemoryTableElement.getProperties(fetchHints, endTime, authorizations); }
@Override public ElementMutation<T> deleteProperty(Property property) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } Preconditions.checkNotNull(property, "property cannot be null"); propertyDeletes.add(new PropertyPropertyDeleteMutation(property)); return this; }
@Override public ElementMutation<T> deleteProperty(Property property) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } Preconditions.checkNotNull(property, "property cannot be null"); propertyDeletes.add(new PropertyPropertyDeleteMutation(property)); return this; }
@Override public ImmutableSet<String> getExtendedDataTableNames() { if (!getFetchHints().isIncludeExtendedDataTableNames()) { throw new VertexiumMissingFetchHintException(getFetchHints(), "includeExtendedDataTableNames"); } return graph.getExtendedDataTableNames(ElementType.getTypeFromElement(this), id, authorizations); }
@Override public ExistingElementMutation<T> alterPropertyVisibility(Property property, Visibility visibility) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } this.alterPropertyVisibilities.add(new AlterPropertyVisibility(property.getKey(), property.getName(), property.getVisibility(), visibility)); return this; }
@Override public ExistingElementMutation<T> alterPropertyVisibility(Property property, Visibility visibility) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } this.alterPropertyVisibilities.add(new AlterPropertyVisibility(property.getKey(), property.getName(), property.getVisibility(), visibility)); return this; }
void deleteProperty(AccumuloElement element, Property property, Authorizations authorizations) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } Mutation m = new Mutation(element.getId()); elementMutationBuilder.addPropertyDeleteToMutation(m, property); addMutations(element, m); getSearchIndex().deleteProperty( this, element, PropertyDescriptor.fromProperty(property), authorizations ); if (hasEventListeners()) { queueEvent(new DeletePropertyEvent(this, element, property)); } }
void deleteProperty(AccumuloElement element, Property property, Authorizations authorizations) { if (!element.getFetchHints().isIncludePropertyAndMetadata(property.getName())) { throw new VertexiumMissingFetchHintException(element.getFetchHints(), "Property " + property.getName() + " needs to be included with metadata"); } Mutation m = new Mutation(element.getId()); elementMutationBuilder.addPropertyDeleteToMutation(m, property); addMutations(element, m); getSearchIndex().deleteProperty( this, element, PropertyDescriptor.fromProperty(property), authorizations ); if (hasEventListeners()) { queueEvent(new DeletePropertyEvent(this, element, property)); } }