Package org.apache.cassandra.cql3
Class ColumnSpecification
- java.lang.Object
-
- org.apache.cassandra.cql3.ColumnSpecification
-
- Direct Known Subclasses:
ColumnMetadata
public class ColumnSpecification extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringcfNamejava.lang.StringksNameColumnIdentifiernameAbstractType<?>type
-
Constructor Summary
Constructors Constructor Description ColumnSpecification(java.lang.String ksName, java.lang.String cfName, ColumnIdentifier name, AbstractType<?> type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanallInSameTable(java.util.Collection<ColumnSpecification> names)Returns true if all ColumnSpecifications are in the same table, false otherwise.booleanequals(java.lang.Object other)inthashCode()booleanisReversedType()java.lang.StringtoString()ColumnSpecificationwithAlias(ColumnIdentifier alias)Returns a newColumnSpecificationfor the same column but with the specified alias.
-
-
-
Field Detail
-
ksName
public final java.lang.String ksName
-
cfName
public final java.lang.String cfName
-
name
public final ColumnIdentifier name
-
type
public final AbstractType<?> type
-
-
Constructor Detail
-
ColumnSpecification
public ColumnSpecification(java.lang.String ksName, java.lang.String cfName, ColumnIdentifier name, AbstractType<?> type)
-
-
Method Detail
-
withAlias
public ColumnSpecification withAlias(ColumnIdentifier alias)
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
public static boolean allInSameTable(java.util.Collection<ColumnSpecification> names)
Returns true if all ColumnSpecifications are in the same table, false otherwise.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-