'setReplicationType'에 해당되는 글 1건

  1. 2013.04.09 [elasticsearch] bulkRequest setXXX options.

[elasticsearch] bulkRequest setXXX options.

Elastic/Elasticsearch 2013. 4. 9. 16:42

[ReplicationType.java]

/**

 * The type of replication to perform.

 */

public enum ReplicationType {

    /**

     * Sync replication, wait till all replicas have performed the operation.

     */

    SYNC((byte) 0),

    /**

     * Async replication. Will send the request to replicas, but will not wait for it

     */

    ASYNC((byte) 1),

    /**

     * Use the default replication type configured for this node.

     */

    DEFAULT((byte) 2);



[WriteConsistencyLevel.java]

/**

 * Write Consistency Level control how many replicas should be active for a write operation to occur (a write operation

 * can be index, or delete).

 *

 *

 */

public enum WriteConsistencyLevel {

    DEFAULT((byte) 0),

    ONE((byte) 1),

    QUORUM((byte) 2),

    ALL((byte) 3);


bulkRequest 시 사용되는 옵션이라 찾아 봤습니다.

: