Package com.c8db.model
Class TTLIndexOptions
- java.lang.Object
-
- com.c8db.model.IndexOptions
-
- com.c8db.model.TTLIndexOptions
-
public class TTLIndexOptions extends IndexOptions
Index option for Time to live (ttl) index type.
-
-
Constructor Summary
Constructors Constructor Description TTLIndexOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TTLIndexOptionsexpireAfter(Long expireAfter)protected TTLIndexOptionsfields(Iterable<String> fields)LonggetExpireAfter()protected Iterable<String>getFields()-
Methods inherited from class com.c8db.model.IndexOptions
create, getInBackground, getName, getType, inBackground, name
-
-
-
-
Method Detail
-
fields
protected TTLIndexOptions fields(Iterable<String> fields)
- Parameters:
fields- A list of attribute paths- Returns:
- options
-
getExpireAfter
public Long getExpireAfter()
-
expireAfter
public TTLIndexOptions expireAfter(Long expireAfter)
- Parameters:
expireAfter- Number of seconds to be added to the timestamp attribute value of each document. If documents have reached their expiration timepoint, they will eventually get deleted by a background process.- Returns:
- options
-
-