Package com.redislabs.lettusearch
Class RediSearchCommandBuilder<K,V>
- java.lang.Object
-
- io.lettuce.core.protocol.BaseRedisCommandBuilder<K,V>
-
- com.redislabs.lettusearch.RediSearchCommandBuilder<K,V>
-
public class RediSearchCommandBuilder<K,V> extends io.lettuce.core.protocol.BaseRedisCommandBuilder<K,V>
Dedicated pub/sub command builder to build pub/sub commands.
-
-
Constructor Summary
Constructors Constructor Description RediSearchCommandBuilder(io.lettuce.core.codec.RedisCodec<K,V> codec)
-
Method Summary
Modifier and Type Method Description io.lettuce.core.protocol.Command<K,V,java.lang.String>
add(java.lang.String index, K docId, double score, java.util.Map<K,V> fields, AddOptions options, V payload)
io.lettuce.core.protocol.Command<K,V,AggregateResults<K,V>>
aggregate(java.lang.String index, java.lang.String query, AggregateOptions options)
io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K,V>>
aggregate(java.lang.String index, java.lang.String query, AggregateOptions options, CursorOptions cursorOptions)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
aliasAdd(java.lang.String name, java.lang.String index)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
aliasDel(java.lang.String name)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
aliasUpdate(java.lang.String name, java.lang.String index)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
alter(java.lang.String index, K field, FieldOptions options)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
create(java.lang.String index, Schema schema)
protected <A,B,T>
io.lettuce.core.protocol.Command<A,B,T>createCommand(CommandType type, io.lettuce.core.output.CommandOutput<A,B,T> output, io.lettuce.core.protocol.CommandArgs<A,B> args)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
cursorDelete(java.lang.String index, long cursor)
io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K,V>>
cursorRead(java.lang.String index, long cursor, java.lang.Long count)
io.lettuce.core.protocol.Command<K,V,java.lang.Boolean>
del(java.lang.String index, K docId, boolean deleteDoc)
io.lettuce.core.protocol.Command<K,V,java.lang.String>
drop(java.lang.String index, DropOptions options)
io.lettuce.core.protocol.Command<K,V,java.util.Map<K,V>>
get(java.lang.String index, K docId)
io.lettuce.core.protocol.Command<K,V,java.util.List<java.lang.Object>>
info(java.lang.String index)
io.lettuce.core.protocol.Command<K,V,java.util.List<java.util.Map<K,V>>>
mget(java.lang.String index, K... docIds)
io.lettuce.core.protocol.Command<K,V,SearchResults<K,V>>
search(java.lang.String index, java.lang.String query, SearchOptions options)
io.lettuce.core.protocol.Command<K,V,java.lang.Long>
sugadd(K key, V string, double score, boolean increment, V payload)
io.lettuce.core.protocol.Command<K,V,java.util.List<SuggestResult<V>>>
sugget(K key, V prefix, SuggestGetOptions options)
-
-
-
Method Detail
-
createCommand
protected <A,B,T> io.lettuce.core.protocol.Command<A,B,T> createCommand(CommandType type, io.lettuce.core.output.CommandOutput<A,B,T> output, io.lettuce.core.protocol.CommandArgs<A,B> args)
-
add
public io.lettuce.core.protocol.Command<K,V,java.lang.String> add(java.lang.String index, K docId, double score, java.util.Map<K,V> fields, AddOptions options, V payload)
-
create
public io.lettuce.core.protocol.Command<K,V,java.lang.String> create(java.lang.String index, Schema schema)
-
drop
public io.lettuce.core.protocol.Command<K,V,java.lang.String> drop(java.lang.String index, DropOptions options)
-
info
public io.lettuce.core.protocol.Command<K,V,java.util.List<java.lang.Object>> info(java.lang.String index)
-
alter
public io.lettuce.core.protocol.Command<K,V,java.lang.String> alter(java.lang.String index, K field, FieldOptions options)
-
search
public io.lettuce.core.protocol.Command<K,V,SearchResults<K,V>> search(java.lang.String index, java.lang.String query, SearchOptions options)
-
aggregate
public io.lettuce.core.protocol.Command<K,V,AggregateResults<K,V>> aggregate(java.lang.String index, java.lang.String query, AggregateOptions options)
-
aggregate
public io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K,V>> aggregate(java.lang.String index, java.lang.String query, AggregateOptions options, CursorOptions cursorOptions)
-
cursorRead
public io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K,V>> cursorRead(java.lang.String index, long cursor, java.lang.Long count)
-
cursorDelete
public io.lettuce.core.protocol.Command<K,V,java.lang.String> cursorDelete(java.lang.String index, long cursor)
-
sugadd
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugadd(K key, V string, double score, boolean increment, V payload)
-
sugget
public io.lettuce.core.protocol.Command<K,V,java.util.List<SuggestResult<V>>> sugget(K key, V prefix, SuggestGetOptions options)
-
get
public io.lettuce.core.protocol.Command<K,V,java.util.Map<K,V>> get(java.lang.String index, K docId)
-
mget
public io.lettuce.core.protocol.Command<K,V,java.util.List<java.util.Map<K,V>>> mget(java.lang.String index, K... docIds)
-
del
public io.lettuce.core.protocol.Command<K,V,java.lang.Boolean> del(java.lang.String index, K docId, boolean deleteDoc)
-
aliasAdd
public io.lettuce.core.protocol.Command<K,V,java.lang.String> aliasAdd(java.lang.String name, java.lang.String index)
-
aliasUpdate
public io.lettuce.core.protocol.Command<K,V,java.lang.String> aliasUpdate(java.lang.String name, java.lang.String index)
-
-