
com.cedarsoft.couchdb.core.View Maven / Gradle / Ivy
package com.cedarsoft.couchdb.core;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
/**
* Represents a view
*
* @author Johannes Schneider ([email protected])
*/
public class View {
@Nonnull
private final String name;
@Nonnull
private final String mappingFunction;
@Nullable
private final String reduceFunction;
public View( @Nonnull String name, @Nonnull String mappingFunction, @Nullable String reduceFunction ) {
this.name = name;
this.mappingFunction = mappingFunction;
this.reduceFunction = reduceFunction;
}
@Nonnull
public String getName() {
return name;
}
@Nonnull
public String getMappingFunction() {
return mappingFunction;
}
@Nullable
public String getReduceFunction() {
return reduceFunction;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy