/** * Creates the immutable map of attribute key -> attribute registry. Once * this is created there is no more modifying attribute metadata, its all set. */ private static ImmutableMap<RootKey, AttributeMetadataRegistry> buildAttributes(MetadataRegistry registry, Schema schema) { Builder<RootKey, AttributeMetadataRegistry> attributeBuilder = ImmutableMap.builder(); for (Map.Entry<RootKey, AttributeMetadataRegistryBuilder> entry : registry.getAttributes().entrySet()) { attributeBuilder.put(entry.getKey(), entry.getValue().create(schema)); } return attributeBuilder.build(); }
/** * Creates the immutable map of attribute key -> attribute registry. Once * this is created there is no more modifying attribute metadata, its all set. */ private static ImmutableMap<RootKey, AttributeMetadataRegistry> buildAttributes(MetadataRegistry registry, Schema schema) { Builder<RootKey, AttributeMetadataRegistry> attributeBuilder = ImmutableMap.builder(); for (Map.Entry<RootKey, AttributeMetadataRegistryBuilder> entry : registry.getAttributes().entrySet()) { attributeBuilder.put(entry.getKey(), entry.getValue().create(schema)); } return attributeBuilder.build(); }
/** * Creates the immutable map of attribute key -> attribute registry. Once * this is created there is no more modifying attribute metadata, its all set. */ private static ImmutableMap<RootKey, AttributeMetadataRegistry> buildAttributes(MetadataRegistry registry, Schema schema) { Builder<RootKey, AttributeMetadataRegistry> attributeBuilder = ImmutableMap.builder(); for (Map.Entry<RootKey, AttributeMetadataRegistryBuilder> entry : registry.getAttributes().entrySet()) { attributeBuilder.put(entry.getKey(), entry.getValue().create(schema)); } return attributeBuilder.build(); }