Class ColumnMetadata

    • Field Detail

      • asymmetricColumnDataComparator

        public static final java.util.Comparator<java.lang.Object> asymmetricColumnDataComparator
    • Method Detail

      • partitionKeyColumn

        public static ColumnMetadata partitionKeyColumn​(java.lang.String keyspace,
                                                        java.lang.String table,
                                                        java.lang.String name,
                                                        AbstractType<?> type,
                                                        int position)
      • clusteringColumn

        public static ColumnMetadata clusteringColumn​(java.lang.String keyspace,
                                                      java.lang.String table,
                                                      java.lang.String name,
                                                      AbstractType<?> type,
                                                      int position)
      • regularColumn

        public static ColumnMetadata regularColumn​(java.lang.String keyspace,
                                                   java.lang.String table,
                                                   java.lang.String name,
                                                   AbstractType<?> type)
      • staticColumn

        public static ColumnMetadata staticColumn​(java.lang.String keyspace,
                                                  java.lang.String table,
                                                  java.lang.String name,
                                                  AbstractType<?> type)
      • isPartitionKey

        public boolean isPartitionKey()
      • isClusteringColumn

        public boolean isClusteringColumn()
      • isStatic

        public boolean isStatic()
      • isMasked

        public boolean isMasked()
      • isRegular

        public boolean isRegular()
      • position

        public int position()
      • debugString

        public java.lang.String debugString()
      • isPrimaryKeyColumn

        public boolean isPrimaryKeyColumn()
      • selectColumns

        public boolean selectColumns​(java.util.function.Predicate<ColumnMetadata> predicate)
        Description copied from interface: Selectable
        Checks if this Selectable select columns matching the specified predicate.
        Specified by:
        selectColumns in interface Selectable
        Returns:
        true if this Selectable select columns matching the specified predicate, false otherwise.
      • processesSelection

        public boolean processesSelection()
        Description copied from interface: Selectable
        Checks if any processing is performed on the selected columns, false otherwise.
        Specified by:
        processesSelection in interface Selectable
        Returns:
        true if any processing is performed on the selected columns, false otherwise.
      • toIdentifiers

        public static java.util.Collection<ColumnIdentifier> toIdentifiers​(java.util.Collection<ColumnMetadata> definitions)
        Converts the specified column definitions into column identifiers.
        Parameters:
        definitions - the column definitions to convert.
        Returns:
        the column identifiers corresponding to the specified definitions
      • cellPathComparator

        public java.util.Comparator<CellPath> cellPathComparator()
      • asymmetricCellPathComparator

        public java.util.Comparator<java.lang.Object> asymmetricCellPathComparator()
      • cellComparator

        public java.util.Comparator<? super Cell<?>> cellComparator()
      • isComplex

        public boolean isComplex()
      • isSimple

        public boolean isSimple()
      • validateCell

        public <V> void validateCell​(Cell<V> cell)
      • appendCqlTo

        public void appendCqlTo​(CqlBuilder builder)
      • toCQLString

        public static java.lang.String toCQLString​(java.lang.Iterable<ColumnMetadata> defs)
      • toCQLString

        public static java.lang.String toCQLString​(java.util.Iterator<ColumnMetadata> defs)
      • appendNameAndOrderTo

        public void appendNameAndOrderTo​(CqlBuilder builder)
      • cellValueType

        public AbstractType<?> cellValueType()
        The type of the cell values for cell belonging to this column. This is the same than the column type, except for non-frozen collections where it's the 'valueComparator' of the collection. This method should not be used to get value type of non-frozon UDT.
      • isCounterColumn

        public boolean isCounterColumn()
        Check if column is counter type.
      • getExactTypeIfKnown

        public AbstractType<?> getExactTypeIfKnown​(java.lang.String keyspace)
        Description copied from interface: Selectable
        The type of the Selectable if it can be infered.
        Specified by:
        getExactTypeIfKnown in interface Selectable
        Parameters:
        keyspace - the keyspace on which the statement for which this is a Selectable is on.
        Returns:
        the type of this Selectable if inferrable, or null otherwise (for instance, the type isn't inferable for a bind marker. Even for literals, the exact type is not inferrable since they are valid for many different types and so this will return null too).