nbcp.myoql.db.es.component.EsBulkDeleteClip.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ktmyoql Show documentation
Show all versions of ktmyoql Show documentation
kotlin orm -- mysql,mongo , just like ktorm
The newest version!
package nbcp.myoql.db.es.component
import nbcp.myoql.db.es.enums.EsPutRefreshEnum
import org.slf4j.LoggerFactory
import java.io.Serializable
/**
* Created by udi on 17-4-17.
*/
/**
* EsDelete
*/
class EsBulkDeleteClip>(var eserEntity: M)
: EsBaseBulkDeleteClip(eserEntity.tableName){
companion object {
private var logger = LoggerFactory.getLogger(this::class.java.declaringClass)
}
fun add(id:String): EsBulkDeleteClip {
super.addId(id)
return this;
}
@JvmOverloads
fun routing(routing:String = ""): EsBulkDeleteClip {
this.withRouting(routing)
return this;
}
@JvmOverloads
fun pipeline(pipeline:String = ""): EsBulkDeleteClip {
this.withPipeLine(pipeline)
return this;
}
fun refresh(refresh: EsPutRefreshEnum): EsBulkDeleteClip {
this.withRefresh(refresh)
return this;
}
}