Package org.apache.cassandra.cql3
Class ColumnSpecification
java.lang.Object
org.apache.cassandra.cql3.ColumnSpecification
- Direct Known Subclasses:
ColumnMetadata
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringfinal Stringfinal ColumnIdentifierfinal AbstractType<?> -
Constructor Summary
ConstructorsConstructorDescriptionColumnSpecification(String ksName, String cfName, ColumnIdentifier name, AbstractType<?> type) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns true if all ColumnSpecifications are in the same table, false otherwise.booleaninthashCode()booleantoString()withAlias(ColumnIdentifier alias) Returns a newColumnSpecificationfor the same column but with the specified alias.
-
Field Details
-
ksName
-
cfName
-
name
-
type
-
-
Constructor Details
-
ColumnSpecification
public ColumnSpecification(String ksName, String cfName, ColumnIdentifier name, AbstractType<?> type)
-
-
Method Details
-
withAlias
Returns a newColumnSpecificationfor the same column but with the specified alias.- Parameters:
alias- the column alias- Returns:
- a new
ColumnSpecificationfor the same column but with the specified alias.
-
isReversedType
public boolean isReversedType() -
allInSameTable
Returns true if all ColumnSpecifications are in the same table, false otherwise. -
equals
-
hashCode
public int hashCode() -
toString
-