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

com.redis.lettucemod.search.NumericField Maven / Gradle / Ivy

There is a newer version: 4.1.2
Show newest version
package com.redis.lettucemod.search;

import com.redis.lettucemod.protocol.SearchCommandKeyword;

public class NumericField extends Field {

	private NumericField(Builder builder) {
		super(Type.NUMERIC, builder);
	}

	@Override
	protected void buildField(SearchCommandArgs args) {
		args.add(SearchCommandKeyword.NUMERIC);
	}

	@Override
	public String toString() {
		return "NumericField [type=" + type + ", name=" + name + ", as=" + as + ", sortable=" + sortable
				+ ", unNormalizedForm=" + unNormalizedForm + ", noIndex=" + noIndex + "]";
	}

	public static  Builder name(K name) {
		return new Builder<>(name);
	}

	public static class Builder extends Field.Builder> {

		public Builder(K name) {
			super(name);
		}

		public NumericField build() {
			return new NumericField<>(this);
		}

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy