@Override
    public Stream<? extends Ticket> stream(final TicketRegistryStreamCriteria criteria) {
        return ticketCatalog
            .findAll()
            .stream()
            .flatMap(this::streamCassandraTicketBy)
            .skip(criteria.getFrom())
            .limit(criteria.getCount())
            .map(holder -> {
                val result = deserializeTicket(holder.getData(), holder.getType());
                return decodeTicket(result);
            });
    }
This is {@link CassandraTicketRegistry}.

@author Misagh Moayyed
@author doomviking
@since 6.1.0
support/cas-server-support-cassandra-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/CassandraTicketRegistry.java