All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.zw201913.entity.ScanOpts Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.github.zw201913.entity;

import java.util.List;

/**
 * @author zouwei
 * @className ScanOpts
 * @date: 2022/8/17 下午2:11
 * @description:
 */
public class ScanOpts extends BaseSearchOpts {

	private OrderType order;

	private ScanOpts(Builder builder) {
		super(builder);
		this.order = builder.order;
	}

	public static class Builder extends BaseSearchOpts.Builder {
		private OrderType order;

		public Builder order(OrderType type) {
			this.order = type;
			return this;
		}

		@Override
		public BaseSearchOpts build() {
			return new ScanOpts(this);
		}
	}

	@Override
	public List commandLine() {
		return commandLine("key", "CURSOR", "LIMIT", "MATCH", "order", "WHERE", "WHEREIN", "WHEREEVAL", "WHEREEVALSHA", "NOFIELDS", "resultType");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy