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

com.arangodb.entity.CollectionPropertiesEntity Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
/*
 * DISCLAIMER
 *
 * Copyright 2016 ArangoDB GmbH, Cologne, Germany
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Copyright holder is ArangoDB GmbH, Cologne, Germany
 */

package com.arangodb.entity;

import java.util.Collection;

/**
 * @author Mark Vollmary
 * @see API
 * Documentation
 */
public final class CollectionPropertiesEntity extends CollectionEntity {

    private KeyOptions keyOptions;
    private Long count;
    private Integer numberOfShards;
    private Collection shardKeys;
    private ReplicationFactor replicationFactor;
    private Integer writeConcern;
    private String shardingStrategy; // cluster option
    private String smartJoinAttribute; // enterprise option

    public CollectionPropertiesEntity() {
        super();
    }

    public KeyOptions getKeyOptions() {
        return keyOptions;
    }

    public void setKeyOptions(final KeyOptions keyOptions) {
        this.keyOptions = keyOptions;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(final Long count) {
        this.count = count;
    }

    /**
     * @return the number of shards of the collection. Only in a cluster setup (else returning null).
     */
    public Integer getNumberOfShards() {
        return numberOfShards;
    }

    public void setNumberOfShards(final Integer numberOfShards) {
        this.numberOfShards = numberOfShards;
    }

    /**
     * @return the names of document attributes that are used to determine the target shard for documents.
     * Only in a cluster setup (else returning null).
     */
    public Collection getShardKeys() {
        return shardKeys;
    }

    public void setShardKeys(final Collection shardKeys) {
        this.shardKeys = shardKeys;
    }

    public ReplicationFactor getReplicationFactor() {
        return replicationFactor;
    }

    public void setReplicationFactor(final ReplicationFactor replicationFactor) {
        this.replicationFactor = replicationFactor;
    }

    public Integer getWriteConcern() {
        return writeConcern;
    }

    public void setWriteConcern(final Integer writeConcern) {
        this.writeConcern = writeConcern;
    }

    public String getShardingStrategy() {
        return shardingStrategy;
    }

    public void setShardingStrategy(String shardingStrategy) {
        this.shardingStrategy = shardingStrategy;
    }

    public String getSmartJoinAttribute() {
        return smartJoinAttribute;
    }

    public void setSmartJoinAttribute(String smartJoinAttribute) {
        this.smartJoinAttribute = smartJoinAttribute;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy