Class LogMessagesTable

  • All Implemented Interfaces:
    VirtualTable

    public final class LogMessagesTable
    extends AbstractMutableVirtualTable
    Virtual table for holding Cassandra logs. Entries to this table are added via log appender.

    The virtual table is bounded in its size. If a new log message is appended to virtual table, the oldest one is removed.

    This virtual table can be truncated.

    This table does not enable ALLOW FILTERING implicitly.

    See Also:
    CASSANDRA-18238, VirtualTableAppender
    • Field Detail

      • LOGS_VIRTUAL_TABLE_MIN_ROWS

        public static final int LOGS_VIRTUAL_TABLE_MIN_ROWS
        See Also:
        Constant Field Values
      • LOGS_VIRTUAL_TABLE_DEFAULT_ROWS

        public static final int LOGS_VIRTUAL_TABLE_DEFAULT_ROWS
        See Also:
        Constant Field Values
      • LOGS_VIRTUAL_TABLE_MAX_ROWS

        public static final int LOGS_VIRTUAL_TABLE_MAX_ROWS
        See Also:
        Constant Field Values
      • TIMESTAMP_COLUMN_NAME

        public static final java.lang.String TIMESTAMP_COLUMN_NAME
        See Also:
        Constant Field Values
      • LOGGER_COLUMN_NAME

        public static final java.lang.String LOGGER_COLUMN_NAME
        See Also:
        Constant Field Values
      • ORDER_IN_MILLISECOND_COLUMN_NAME

        public static final java.lang.String ORDER_IN_MILLISECOND_COLUMN_NAME
        See Also:
        Constant Field Values
      • LEVEL_COLUMN_NAME

        public static final java.lang.String LEVEL_COLUMN_NAME
        See Also:
        Constant Field Values
      • MESSAGE_COLUMN_NAME

        public static final java.lang.String MESSAGE_COLUMN_NAME
        See Also:
        Constant Field Values
    • Method Detail

      • add

        public void add​(ch.qos.logback.classic.spi.LoggingEvent event)
      • allowFilteringImplicitly

        public boolean allowFilteringImplicitly()
        Description copied from interface: VirtualTable
        Tells whether ALLOW FILTERING is implicitly added to select statement which requires it. Defaults to true.
        Returns:
        true if ALLOW FILTERING is implicitly added to select statements when required, false otherwise.