Package org.apache.cassandra.cql3
Class Attributes
- java.lang.Object
-
- org.apache.cassandra.cql3.Attributes
-
public class Attributes extends java.lang.ObjectUtility class for the Parser to gather attributes for modification statements.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAttributes.Raw
-
Field Summary
Fields Modifier and Type Field Description static intMAX_TTLIf this limit is ever raised, make sure @Integer.MAX_VALUEis not allowed, as this is used as a flag to represent expired liveness.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFunctionsTo(java.util.List<Function> functions)voidcollectMarkerSpecification(VariableSpecifications boundNames)longgetTimestamp(long now, QueryOptions options)intgetTimeToLive(QueryOptions options, TableMetadata metadata)booleanisTimestampSet()booleanisTimeToLiveSet()static Attributesnone()java.lang.StringtoString()
-
-
-
Field Detail
-
MAX_TTL
public static final int MAX_TTL
If this limit is ever raised, make sure @Integer.MAX_VALUEis not allowed, as this is used as a flag to represent expired liveness. SeeLivenessInfo.EXPIRED_LIVENESS_TTL- See Also:
- Constant Field Values
-
-
Method Detail
-
none
public static Attributes none()
-
addFunctionsTo
public void addFunctionsTo(java.util.List<Function> functions)
-
isTimestampSet
public boolean isTimestampSet()
-
isTimeToLiveSet
public boolean isTimeToLiveSet()
-
getTimestamp
public long getTimestamp(long now, QueryOptions options) throws InvalidRequestException- Throws:
InvalidRequestException
-
getTimeToLive
public int getTimeToLive(QueryOptions options, TableMetadata metadata) throws InvalidRequestException
- Throws:
InvalidRequestException
-
collectMarkerSpecification
public void collectMarkerSpecification(VariableSpecifications boundNames)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-