se.l4.silo.search.query.RangeQueryData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silo-search-api Show documentation
Show all versions of silo-search-api Show documentation
API for Lucene-based querying for Silo.
package se.l4.silo.search.query;
import se.l4.commons.serialization.Expose;
import se.l4.commons.serialization.ReflectionSerializer;
import se.l4.commons.serialization.Use;
@Use(ReflectionSerializer.class)
public class RangeQueryData
{
@Expose
private final String field;
@Expose
private final long from;
@Expose
private final long to;
public RangeQueryData(@Expose("field") String field, @Expose("from") long from, @Expose("to") long to)
{
this.field = field;
this.from = from;
this.to = to;
}
public String getField()
{
return field;
}
public long getFrom()
{
return from;
}
public long getTo()
{
return to;
}
}