The GearsBuilder class allows you to create a pipeline of RedisGears functions that transform data.

It requires a reader to supply data to the pipe.

To create a GearsBuilder object, follow this example code:

BaseReader reader = ...; // Initialize the reader
builder = GearsBuilder.CreateGearsBuilder(reader);

Functions

FunctionDescription
accumulateReduces many records in the pipe to a single record.
accumulateByGroups records and reduces each group to a single record per group.
asyncFilterAsynchronously filters out records in the pipe based on a given condition.
asyncForeachFor each record in the pipe, asynchronously runs some operations.
asyncMapAsynchronously maps records one-to-one.
callNextCalls the next execution that overrides the command or the original command itself. A more flexible version of callNextArray.
callNextArrayCalls the next execution that overrides the command or the original command itself.
collectCollects all records to the origin shard.
configGetGets the value of a RedisGears configuration setting.
countCounts the number of records in the pipe.
CreateGearsBuilderCreates a new GearsBuilder object.
executeRuns a Redis command. A more flexible version of executeArray.
executeArrayRuns a Redis command.
filterFilters out records in the pipe based on a given condition.
flatMapMaps a single input record to one or more output records.
foreachFor each record in the pipe, runs some operations.
hashtagReturns a string that maps to the current shard.
localAccumulateByGroups records and reduces each group to a single record per group locally on each shard.
logWrites a log message to the Redis log file.
mapMaps records one-to-one.
registerRegisters the pipeline of functions to run when certain events occur.
repartitionMoves records between shards according to the extracted data.
runRuns the pipeline of functions immediately.