org.vertexium.elasticsearch5.plugin.FieldNameToVisibilityMap Maven / Gradle / Ivy
package org.vertexium.elasticsearch5.plugin;
import java.util.Map;
import java.util.Set;
public class FieldNameToVisibilityMap {
private final Map fieldNameToVisibilityMapping;
public FieldNameToVisibilityMap(Map fieldNameToVisibilityMapping) {
this.fieldNameToVisibilityMapping = fieldNameToVisibilityMapping;
}
public Set getFieldNames() {
return fieldNameToVisibilityMapping.keySet();
}
public String getFieldVisibility(String fieldName) {
return fieldNameToVisibilityMapping.get(fieldName);
}
@SuppressWarnings("unchecked")
public static FieldNameToVisibilityMap createFromVertexiumMetadata(Object vertexiumMeta) {
return new FieldNameToVisibilityMap((Map) vertexiumMeta);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy