当前位置: 首页>>代码示例>>Java>>正文


Java ScanCursor类代码示例

本文整理汇总了Java中com.lambdaworks.redis.ScanCursor的典型用法代码示例。如果您正苦于以下问题:Java ScanCursor类的具体用法?Java ScanCursor怎么用?Java ScanCursor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ScanCursor类属于com.lambdaworks.redis包,在下文中一共展示了ScanCursor类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
public Command<K, V, KeyScanCursor<String>> jscan(ScanCursor scanCursor, JScanArgs<K> scanArgs) {

        DisqueCommandArgs<K, V> args = new DisqueCommandArgs<K, V>(codec);
        if (scanArgs != null) {
            scanArgs.build(args);
        }

        if (scanCursor != null) {
            args.add(scanCursor.getCursor());
        }

        args.add(CommandKeyword.REPLY).add("id");

        return createCommand(JSCAN, new StringScanOutput<K, V>(codec), args);
    }
 
开发者ID:mp911de,项目名称:spinach,代码行数:16,代码来源:DisqueCommandBuilder.java

示例2: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
public Command<K, V, KeyScanCursor<K>> qscan(ScanCursor scanCursor, QScanArgs scanArgs) {
    DisqueCommandArgs<K, V> args = new DisqueCommandArgs<K, V>(codec);
    if (scanArgs != null) {
        scanArgs.build(args);
    }

    if (scanCursor != null) {
        args.add(scanCursor.getCursor());
    }

    return createCommand(QSCAN, new KeyScanOutput<K, V>(codec), args);
}
 
开发者ID:mp911de,项目名称:spinach,代码行数:13,代码来源:DisqueCommandBuilder.java

示例3: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
@Override
public RedisFuture<KeyScanCursor<String>> jscan(ScanCursor scanCursor) {
    return dispatch(commandBuilder.jscan(scanCursor, null));
}
 
开发者ID:mp911de,项目名称:spinach,代码行数:5,代码来源:DisqueAsyncCommandsImpl.java

示例4: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
@Override
public RedisFuture<KeyScanCursor<K>> qscan(ScanCursor scanCursor) {
    return dispatch(commandBuilder.qscan(scanCursor, null));
}
 
开发者ID:mp911de,项目名称:spinach,代码行数:5,代码来源:DisqueAsyncCommandsImpl.java

示例5: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
@Override
public Observable<KeyScanCursor<String>> jscan(ScanCursor scanCursor) {
    return createObservable(() -> commandBuilder.jscan(scanCursor, null));
}
 
开发者ID:mp911de,项目名称:spinach,代码行数:5,代码来源:DisqueReactiveCommandsImpl.java

示例6: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
@Override
public Observable<KeyScanCursor<K>> qscan(ScanCursor scanCursor) {
    return createObservable(() -> commandBuilder.qscan(scanCursor, null));
}
 
开发者ID:mp911de,项目名称:spinach,代码行数:5,代码来源:DisqueReactiveCommandsImpl.java

示例7: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
KeyScanCursor<K> qscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueQueueCommands.java

示例8: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
KeyScanCursor<String> jscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueJobCommands.java

示例9: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
Observable<KeyScanCursor<String>> jscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueJobReactiveCommands.java

示例10: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
Observable<KeyScanCursor<K>> qscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueQueueReactiveCommands.java

示例11: qscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate the keys space.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
RedisFuture<KeyScanCursor<K>> qscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueQueueAsyncCommands.java

示例12: jscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate all the existing queues in the local node returning the job id's.
 *
 * @param scanCursor cursor to resume from a previous scan
 * @return KeyScanCursor&lt;K&gt; scan cursor.
 */
RedisFuture<KeyScanCursor<String>> jscan(ScanCursor scanCursor);
 
开发者ID:mp911de,项目名称:spinach,代码行数:8,代码来源:DisqueJobAsyncCommands.java

示例13: hscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate hash fields and associated values.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return MapScanCursor&lt;K, V&gt; map scan cursor.
 */
MapScanCursor<K, V> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
开发者ID:lettuce-io,项目名称:lettuce-core,代码行数:10,代码来源:RedisHashCommands.java

示例14: sscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate Set elements.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return ValueScanCursor&lt;V&gt; scan cursor.
 */
ValueScanCursor<V> sscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
开发者ID:lettuce-io,项目名称:lettuce-core,代码行数:10,代码来源:RedisSetCommands.java

示例15: hscan

import com.lambdaworks.redis.ScanCursor; //导入依赖的package包/类
/**
 * Incrementally iterate hash fields and associated values.
 *
 * @param key the key
 * @param scanCursor cursor to resume from a previous scan, must not be {@literal null}
 * @param scanArgs scan arguments
 * @return MapScanCursor&lt;K, V&gt; map scan cursor.
 */
Observable<MapScanCursor<K, V>> hscan(K key, ScanCursor scanCursor, ScanArgs scanArgs);
 
开发者ID:lettuce-io,项目名称:lettuce-core,代码行数:10,代码来源:RedisHashReactiveCommands.java


注:本文中的com.lambdaworks.redis.ScanCursor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。