This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Consulta sobre el valor un miembro de primer nivel (para el caso, turnos que son sobreturnos) | |
select * | |
from appointments | |
where details ->> 'isOverturn' = 'true'; | |
-- Consulta sobre el valor de un miembro de un nivel aninado (para el caso, los turnos con atención particular) | |
select * | |
from appointments | |
where details -> 'extra' ->> 'attentionBy' = 'particular' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.BlockingQueue; | |
public class Consumer implements Runnable { | |
private final BlockingQueue<Long> queue; | |
private volatile boolean finish; | |
public Consumer(BlockingQueue<Long> queue) { | |
this.queue = queue; |
NewerOlder