예제 #1
0
 private void addPropertyMetadataItemToMutation(
     Mutation m, Property property, Metadata.Entry metadataItem) {
   Text columnQualifier = getPropertyMetadataColumnQualifierText(property, metadataItem);
   ColumnVisibility metadataVisibility =
       visibilityToAccumuloVisibility(metadataItem.getVisibility());
   if (metadataItem.getValue() == null) {
     addPropertyMetadataItemDeleteToMutation(m, columnQualifier, metadataVisibility);
   } else {
     addPropertyMetadataItemAddToMutation(
         m, columnQualifier, metadataVisibility, property.getTimestamp(), metadataItem.getValue());
   }
 }
예제 #2
0
 private void addPropertyMetadataItemToKeyValuePairs(
     List<KeyValuePair> results,
     Text vertexRowKey,
     Property property,
     Metadata.Entry metadataItem) {
   Text columnQualifier = getPropertyMetadataColumnQualifierText(property, metadataItem);
   ColumnVisibility metadataVisibility =
       visibilityToAccumuloVisibility(metadataItem.getVisibility());
   if (metadataItem.getValue() == null) {
     throw new VertexiumException("Property metadata deletes are not supported");
   } else {
     addPropertyMetadataItemAddToKeyValuePairs(
         results,
         vertexRowKey,
         columnQualifier,
         metadataVisibility,
         property.getTimestamp(),
         metadataItem.getValue());
   }
 }