Пример #1
0
 private void addPropertyMetadataToKeyValuePairs(
     List<KeyValuePair> results, Text vertexRowKey, Property property) {
   Metadata metadata = property.getMetadata();
   for (Metadata.Entry metadataItem : metadata.entrySet()) {
     addPropertyMetadataItemToKeyValuePairs(results, vertexRowKey, property, metadataItem);
   }
 }
Пример #2
0
 public void addPropertyDeleteMetadataToMutation(
     Mutation m, PropertyDeleteMutation propertyDeleteMutation) {
   if (propertyDeleteMutation instanceof PropertyPropertyDeleteMutation) {
     Property property = ((PropertyPropertyDeleteMutation) propertyDeleteMutation).getProperty();
     Metadata metadata = property.getMetadata();
     for (Metadata.Entry metadataItem : metadata.entrySet()) {
       Text columnQualifier = getPropertyMetadataColumnQualifierText(property, metadataItem);
       ColumnVisibility metadataVisibility =
           visibilityToAccumuloVisibility(metadataItem.getVisibility());
       addPropertyMetadataItemDeleteToMutation(m, columnQualifier, metadataVisibility);
     }
   }
 }
Пример #3
0
 public void addPropertyMetadataToMutation(Mutation m, Property property) {
   Metadata metadata = property.getMetadata();
   for (Metadata.Entry metadataItem : metadata.entrySet()) {
     addPropertyMetadataItemToMutation(m, property, metadataItem);
   }
 }