All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.securegraph.PropertyDefinition Maven / Gradle / Ivy

The newest version!
package org.securegraph;

import java.io.Serializable;
import java.util.Set;

public class PropertyDefinition implements Serializable {
    private static final long serialVersionUID = 42L;
    private final String propertyName;
    private final Class dataType;
    private final Set textIndexHints;
    private final Double boost;

    public PropertyDefinition(
            String propertyName,
            Class dataType,
            Set textIndexHints) {
        this(
                propertyName,
                dataType,
                textIndexHints,
                null);
    }

    public PropertyDefinition(
            String propertyName,
            Class dataType,
            Set textIndexHints,
            Double boost) {
        this.propertyName = propertyName;
        this.dataType = dataType;
        this.textIndexHints = textIndexHints;
        this.boost = boost;
    }

    public String getPropertyName() {
        return propertyName;
    }

    public Class getDataType() {
        return dataType;
    }

    public Set getTextIndexHints() {
        return textIndexHints;
    }

    public Double getBoost() {
        return boost;
    }

    @Override
    public String toString() {
        return "PropertyDefinition{" +
                "propertyName='" + propertyName + '\'' +
                ", dataType=" + dataType +
                ", textIndexHints=" + textIndexHints +
                ", boost=" + boost +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy