Package com.c8db.entity
Class CollectionPropertiesEntity
- java.lang.Object
-
- com.c8db.entity.CollectionEntity
-
- com.c8db.entity.CollectionPropertiesEntity
-
- All Implemented Interfaces:
Entity
public class CollectionPropertiesEntity extends CollectionEntity
-
-
Constructor Summary
Constructors Constructor Description CollectionPropertiesEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetCount()BooleangetDoCompact()IntegergetIndexBuckets()BooleangetIsSpot()BooleangetIsSystem()LonggetJournalSize()KeyOptionsgetKeyOptions()IntegergetMinReplicationFactor()IntegergetNumberOfShards()IntegergetReplicationFactor()BooleangetSatellite()StringgetShardingStrategy()Collection<String>getShardKeys()voidsetCount(Long count)voidsetDoCompact(Boolean doCompact)voidsetIndexBuckets(Integer indexBuckets)voidsetIsSpot(Boolean isSpot)voidsetIsSystem(Boolean isSystem)voidsetJournalSize(Long journalSize)voidsetKeyOptions(KeyOptions keyOptions)voidsetMinReplicationFactor(Integer minReplicationFactor)voidsetNumberOfShards(Integer numberOfShards)voidsetReplicationFactor(Integer replicationFactor)voidsetSatellite(Boolean satellite)voidsetShardingStrategy(String shardingStrategy)voidsetShardKeys(Collection<String> shardKeys)-
Methods inherited from class com.c8db.entity.CollectionEntity
getHasStream, getId, getName, getStatus, getType, getWaitForSync
-
-
-
-
Method Detail
-
getDoCompact
public Boolean getDoCompact()
-
setDoCompact
public void setDoCompact(Boolean doCompact)
-
getJournalSize
public Long getJournalSize()
-
setJournalSize
public void setJournalSize(Long journalSize)
-
getIndexBuckets
public Integer getIndexBuckets()
-
setIndexBuckets
public void setIndexBuckets(Integer indexBuckets)
-
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 Integer getReplicationFactor()
-
setReplicationFactor
public void setReplicationFactor(Integer replicationFactor)
-
getMinReplicationFactor
public Integer getMinReplicationFactor()
-
setMinReplicationFactor
public void setMinReplicationFactor(Integer minReplicationFactor)
-
getSatellite
public Boolean getSatellite()
- Returns:
- whether the collection is a satellite collection. Only in an enterprise cluster setup (else returning null).
-
setSatellite
public void setSatellite(Boolean satellite)
-
getShardingStrategy
public String getShardingStrategy()
-
setShardingStrategy
public void setShardingStrategy(String shardingStrategy)
-
getIsSpot
public Boolean getIsSpot()
- Overrides:
getIsSpotin classCollectionEntity
-
setIsSpot
public void setIsSpot(Boolean isSpot)
-
getIsSystem
public Boolean getIsSystem()
- Overrides:
getIsSystemin classCollectionEntity
-
setIsSystem
public void setIsSystem(Boolean isSystem)
-
-