Package com.arangodb.entity
Class CollectionPropertiesEntity
- java.lang.Object
-
- com.arangodb.entity.CollectionEntity
-
- com.arangodb.entity.CollectionPropertiesEntity
-
public final class CollectionPropertiesEntity extends CollectionEntity
- Author:
- Mark Vollmary
- See Also:
- API Documentation
-
-
Constructor Summary
Constructors Constructor Description CollectionPropertiesEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getCount()
KeyOptions
getKeyOptions()
Integer
getNumberOfShards()
ReplicationFactor
getReplicationFactor()
String
getShardingStrategy()
Collection<String>
getShardKeys()
String
getSmartJoinAttribute()
Integer
getWriteConcern()
void
setCount(Long count)
void
setKeyOptions(KeyOptions keyOptions)
void
setNumberOfShards(Integer numberOfShards)
void
setReplicationFactor(ReplicationFactor replicationFactor)
void
setShardingStrategy(String shardingStrategy)
void
setShardKeys(Collection<String> shardKeys)
void
setSmartJoinAttribute(String smartJoinAttribute)
void
setWriteConcern(Integer writeConcern)
-
Methods inherited from class com.arangodb.entity.CollectionEntity
getComputedValues, getId, getIsSystem, getName, getSchema, getStatus, getType, getWaitForSync
-
-
-
-
Method Detail
-
getKeyOptions
public KeyOptions getKeyOptions()
-
setKeyOptions
public void setKeyOptions(KeyOptions keyOptions)
-
getCount
public Long getCount()
-
setCount
public void setCount(Long count)
-
getNumberOfShards
public Integer getNumberOfShards()
- Returns:
- the number of shards of the collection. Only in a cluster setup (else returning null).
-
setNumberOfShards
public void setNumberOfShards(Integer numberOfShards)
-
getShardKeys
public Collection<String> getShardKeys()
- Returns:
- the names of document attributes that are used to determine the target shard for documents. Only in a cluster setup (else returning null).
-
setShardKeys
public void setShardKeys(Collection<String> shardKeys)
-
getReplicationFactor
public ReplicationFactor getReplicationFactor()
-
setReplicationFactor
public void setReplicationFactor(ReplicationFactor replicationFactor)
-
getWriteConcern
public Integer getWriteConcern()
-
setWriteConcern
public void setWriteConcern(Integer writeConcern)
-
getShardingStrategy
public String getShardingStrategy()
-
setShardingStrategy
public void setShardingStrategy(String shardingStrategy)
-
getSmartJoinAttribute
public String getSmartJoinAttribute()
-
setSmartJoinAttribute
public void setSmartJoinAttribute(String smartJoinAttribute)
-
-