io.quarkus.redis.datasource.search.AggregateDocument Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-redis-client Show documentation
Show all versions of quarkus-redis-client Show documentation
Connect to Redis in either imperative or reactive style
package io.quarkus.redis.datasource.search;
import java.util.Collections;
import java.util.Map;
/**
* Represents a document from a {@code ft.aggregate} response.
*/
public class AggregateDocument {
private final Map properties;
public AggregateDocument(Map properties) {
this.properties = properties == null ? Collections.emptyMap() : Collections.unmodifiableMap(properties);
}
/**
* @return the document properties
*/
public Map properties() {
return properties;
}
/**
* Gets a property from the document.
*
* @param name the property name, must not be {@code null}
* @return the property, {@code null} if not found
*/
public Document.Property property(String name) {
return properties.get(name);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy