Package com.redis.lettucemod.search
Class Sort
- java.lang.Object
-
- com.redis.lettucemod.search.Sort
-
- All Implemented Interfaces:
AggregateOperation,RediSearchArgument
public class Sort extends java.lang.Object implements AggregateOperation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSort.Builderstatic classSort.Property-
Nested classes/interfaces inherited from interface com.redis.lettucemod.search.AggregateOperation
AggregateOperation.Type
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Sort.Builderasc(java.lang.String name)voidbuild(SearchCommandArgs args)static Sort.Builderby(Sort.Property... properties)static Sort.Builderdesc(java.lang.String name)java.util.Optional<Max>getMax()java.util.List<Sort.Property>getProperties()AggregateOperation.TypegetType()voidsetMax(java.util.Optional<Max> max)voidsetProperties(java.util.List<Sort.Property> properties)java.lang.StringtoString()
-
-
-
Method Detail
-
getType
public AggregateOperation.Type getType()
- Specified by:
getTypein interfaceAggregateOperation
-
getProperties
public java.util.List<Sort.Property> getProperties()
-
getMax
public java.util.Optional<Max> getMax()
-
setProperties
public void setProperties(java.util.List<Sort.Property> properties)
-
setMax
public void setMax(java.util.Optional<Max> max)
-
build
public void build(SearchCommandArgs args)
- Specified by:
buildin interfaceRediSearchArgument
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
by
public static Sort.Builder by(Sort.Property... properties)
-
asc
public static Sort.Builder asc(java.lang.String name)
-
desc
public static Sort.Builder desc(java.lang.String name)
-
-