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

com.redis.lettucemod.search.GeoField 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 GeoField extends Field {

	private GeoField(Builder builder) {
		super(Type.GEO, builder);
	}

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

	@Override
	public String toString() {
		return "GeoField [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 GeoField build() {
			return new GeoField<>(this);
		}

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy