Class ColumnSpecification

  • Direct Known Subclasses:
    ColumnMetadata

    public class ColumnSpecification
    extends java.lang.Object
    • Field Detail

      • ksName

        public final java.lang.String ksName
      • cfName

        public final java.lang.String cfName
    • 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 new ColumnSpecification for the same column but with the specified alias.
        Parameters:
        alias - the column alias
        Returns:
        a new ColumnSpecification for 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object