id
stringlengths 36
36
| text
stringlengths 1
1.25M
|
---|---|
b19b74d2-d8ed-4ad5-b3a8-4e5e831ed800
|
public void add(int x, Object value) {
UHNode node = this;
int H, L;
// Iterativamente recorre el arbol.
while (true) {
synchronized (node) {
if (node.isEmpty() || node.min == x) // Se actualiza el min y se
// finaliza en el nodo
// actual.
{
node.min = x;
node.minElements.addNewElement(value);
node.isEmpty = false;
return;
} else // Se hace la llamada al siguiente nivel.
{
if (compareUnsignedInt(x, node.min) < 0) // Hay un nuevo
// minimo. Los
// valores
// minimos
// anteriores
// seran
// insertados en
// un nivel
// siguiente.
{
int aux = node.min;
node.min = x;
x = aux;
Object aux2 = node.minElements;
node.minElements = new UHList(value);
value = aux2;
}
assert node.min != x;
H = x >>> node.shift;
L = x ^ (H << node.shift);
UHNode child = node.LQ[H];
if (child == null) {
node.HQ.add(H);
child = new UHNode(order - 1);
node.LQ[H] = child;
}
node = child;
x = L;
}
}
}
}
|
cf1070dd-a9c0-4390-a804-455176395872
|
public void updateBest(UHElement candidate) {
UHElement b = best;
if (b == null || candidate.getCount() > b.getCount()) best = candidate;
}
|
f2a50193-33db-46b8-9b22-20a72ef8f61e
|
public boolean contains(int x, Object value) {
UHNode node = this, parent = null;
int H, L;
// Realiza la busqueda en el arbol iterativamente.
while (true) {
UHElement b = node.best;
if (b != null) { synchronized (b) {
if (b.equals(value)) // Si el elemento buscado es el
// mejor elemento del nodo
// actual.
{
b.incr();
if (parent != null)
parent.updateBest(b);
return true;
}
}
}
if (node.isEmpty()) {
return false;
} else if (node.min == x) // Si el elemento estaria en los elementos
// con hash minimo.
{
synchronized (node.minElements) {
return node.minElements.contains(value, this);
}
} else // Si el elemento estaria en un nivel inferior. Esta parte es
// lock-free.
{
H = x >>> node.shift;
L = x ^ (H << node.shift);
UHNode child = node.LQ[H];
if (child == null) {
return false;
} else {
parent = node;
node = child;
x = L;
}
}
}
}
|
e9cfbcc9-a4ce-45c7-8da0-c8795cb63e0f
|
public boolean remove(int x, Object value) {
synchronized (this) {
if (best != null && best.equals(value)) // Si el elemento a eliminar
// es el best del nodo
// actual, se elimina.
best = null;
if (isEmpty())
return false;
int H, L;
if (min == x) // Si el elemento a eliminar estaria en la lista de
// minimos
{
boolean success;
if (value instanceof UHList) {
assert ((UHList) value).getSet().equals(
minElements.getSet());
minElements = new UHList();
best = null;
success = true;
} else {
success = minElements.remove(value);
}
if (!success) {
return false;
} else // Se elimino satisfactoriamente
{
if (!minElements.isEmpty()) // Ningun cambio adicional
{
return true;
} else // Se debe actualizar el nuevo menor, ya que el menor
// anterior desaparecio.
{
if (HQ.isEmpty()) {
isEmpty = true;
return true;
} else {
H = HQ.getMinHash();
UHNode child = LQ[H];
L = child.getMinHash();
// Se elimina value de los hijos.
value = minElements = child.getMinElements();
min = (H << shift) + L;
}
}
}
} else {
H = x >>> shift;
L = x ^ (H << shift);
}
// Se elimina el nuevo x.
boolean success = false;
UHNode child = LQ[H];
if (child != null) {
success = child.remove(L, value);
if (child.isEmpty()) {
LQ[H] = null;
HQ.remove(H, H);
}
}
return success;
}
}
|
6ae760a1-93b6-4d7c-9a29-843d24219b36
|
public abstract boolean isEmpty();
|
5500cdbb-a127-41d0-a9a2-dc624288dfb1
|
public abstract int getMinHash();
|
28e00a27-fc65-4cbb-a245-67daab47bb09
|
public abstract void add(int x, Object value);
|
256614f0-03fd-4c1c-9c9a-78cf78ed8a00
|
public abstract boolean remove(int x, Object value);
|
b9f96ecd-3858-4ca8-8d07-dd317c2da3f8
|
public void add(int x) {
add(x, x);
}
|
69336cd8-7437-4aa1-a113-81a12956394a
|
@Override
public Set<Class<?>> getClasses() {
Set<Class<?>> s = new HashSet<Class<?>>();
s.add(MsgResource.class);
return s;
}
|
4792add6-bcb0-47c2-a5a5-de0e1ef512f4
|
public Long getId() {
return id;
}
|
10b30017-6b34-4e61-bb5b-39c88f4a98e6
|
public void setId(Long id) {
this.id = id;
}
|
33937f7b-b67a-49f6-bc33-ae9e493df96b
|
public String getSysId() {
return sysId;
}
|
a11ebbf9-7cb3-477f-9a89-e47aec474dbe
|
public void setSysId(String sysId) {
this.sysId = sysId;
}
|
e9a987ee-e5cf-47fc-9567-324345816e62
|
public int getMsgType() {
return msgType;
}
|
a925bf74-40f5-475e-84f6-1113bdba5b34
|
public void setMsgType(int msgType) {
this.msgType = msgType;
}
|
549999dc-7a9c-4ad7-816d-1b3f5e6313ef
|
public String getMsgEmail() {
return msgEmail;
}
|
408503ea-44f6-478d-abfb-a60a9b1cf286
|
public void setMsgEmail(String msgEmail) {
this.msgEmail = msgEmail;
}
|
05ac37c8-6294-44d2-952a-dc18cff76640
|
public String getMsgEmailcc() {
return msgEmailcc;
}
|
392fcba0-9944-4c55-a6cb-1d2af4d3a576
|
public void setMsgEmailcc(String msgEmailcc) {
this.msgEmailcc = msgEmailcc;
}
|
d7772337-6f4c-45ef-abbe-aba4d856cfc2
|
public String getMsgEmailbcc() {
return msgEmailbcc;
}
|
b9302f1e-3e5f-4062-b762-00870745142e
|
public void setMsgEmailbcc(String msgEmailbcc) {
this.msgEmailbcc = msgEmailbcc;
}
|
82c76fda-783a-4b3f-9b34-f9df9a6b5da5
|
public String getMsgTelno() {
return msgTelno;
}
|
c3685322-316d-421a-be61-f793cbd777e1
|
public void setMsgTelno(String msgTelno) {
this.msgTelno = msgTelno;
}
|
a21a234f-5f4e-4461-9274-957c9542464a
|
public String getMsgPernr() {
return msgPernr;
}
|
7ca40e2e-5641-4390-8228-ddc2afc2e176
|
public void setMsgPernr(String msgPernr) {
this.msgPernr = msgPernr;
}
|
f5c3a75e-8977-4c0e-8b6a-b489b0ef6e68
|
public String getMsgBody() {
return msgBody;
}
|
3e460b60-5399-477a-b83f-0a05dec61937
|
public void setMsgBody(String msgBody) {
this.msgBody = msgBody;
}
|
94a00bae-6f0b-4d3f-ab07-6e9df4a6e125
|
public String getMsgAux() {
return msgAux;
}
|
4a5805f8-e1c9-422c-b327-4649e1c5a692
|
public void setMsgAux(String msgAux) {
this.msgAux = msgAux;
}
|
cd10d1eb-f019-43a1-b016-4f9f0ccba609
|
public String getSensitiveInd() {
return sensitiveInd;
}
|
0d041cb3-12fd-44f1-b570-a8a8fed6035a
|
public void setSensitiveInd(String sensitiveInd) {
this.sensitiveInd = sensitiveInd;
}
|
501f63ba-3816-4d8e-b03c-9da93a464f88
|
public Date getMsgDatetime() {
return msgDatetime;
}
|
7be31a28-a7b9-46b8-8c18-2118562c5512
|
public void setMsgDatetime(Date msgDatetime) {
this.msgDatetime = msgDatetime;
}
|
2b9ac1df-55ef-468c-8be4-85d400ceb56f
|
public Date getCreatedDatetime() {
return createdDatetime;
}
|
efcd451a-007a-4c11-bd78-742f4ad91686
|
public void setCreatedDatetime(Date createdDatetime) {
this.createdDatetime = createdDatetime;
}
|
db828c7d-6155-4baf-91e3-fca6c3364d6b
|
@PrePersist
public void initTimestamp() {
msgDatetime = new Date();
createdDatetime = new Date();
}
|
2d154c84-7f45-4435-b1ee-fdddd8a9af19
|
public Long getId() {
return id;
}
|
4cefe834-4503-492a-88bf-7360015ce85e
|
public void setId(Long id) {
this.id = id;
}
|
6cac5fe5-258c-47d4-b0fa-a80c434d5871
|
public String getSysId() {
return sysId;
}
|
45f6a614-57a6-4f73-8c6c-34129571f633
|
public void setSysId(String sysId) {
this.sysId = sysId;
}
|
a3a0c7a0-0028-4f78-9e47-976bf6d8c82e
|
public int getMsgType() {
return msgType;
}
|
b8c86572-1788-475d-9965-ae68cc3e2e59
|
public void setMsgType(int msgType) {
this.msgType = msgType;
}
|
519c4a3e-067f-4d6a-87ce-2e6f05de4f86
|
public String getMsgEmail() {
return msgEmail;
}
|
3797939b-ab75-4efc-912b-94d2055ed301
|
public void setMsgEmail(String msgEmail) {
this.msgEmail = msgEmail;
}
|
86d16d4d-699d-4047-a983-f0ba2292208c
|
public String getMsgEmailcc() {
return msgEmailcc;
}
|
cebe1c7a-7329-46fb-9468-00e0a3e50c5c
|
public void setMsgEmailcc(String msgEmailcc) {
this.msgEmailcc = msgEmailcc;
}
|
dc5e3077-c9b4-414c-b5bb-2f18a72680d3
|
public String getMsgEmailbcc() {
return msgEmailbcc;
}
|
79220467-eb86-4578-b166-731e7b57bf93
|
public void setMsgEmailbcc(String msgEmailbcc) {
this.msgEmailbcc = msgEmailbcc;
}
|
ec59fbd7-c87f-40d4-a2a1-42ad1c7b8295
|
public String getMsgTelno() {
return msgTelno;
}
|
0093d171-ef6e-4418-ae34-3f8b01d49204
|
public void setMsgTelno(String msgTelno) {
this.msgTelno = msgTelno;
}
|
764630c0-9594-4243-a648-cb7b64e52e63
|
public String getMsgPernr() {
return msgPernr;
}
|
a6a42947-0037-41c5-a0b0-75dfe01deb2c
|
public void setMsgPernr(String msgPernr) {
this.msgPernr = msgPernr;
}
|
eee8f27f-b6be-40a3-9540-7b6008bb518d
|
public String getMsgSubject() {
return msgSubject;
}
|
6d369e4e-598e-44b7-882d-f5f01f8c769d
|
public void setMsgSubject(String msgSubject) {
this.msgSubject = msgSubject;
}
|
6d0ea30b-1998-457b-8033-62f78c0c24a5
|
public String getMsgBody() {
return msgBody;
}
|
c880ffa6-34fb-4095-8a73-76797f91309f
|
public void setMsgBody(String msgBody) {
this.msgBody = msgBody;
}
|
8d9e347e-e1f2-4d55-9c32-a6251707f776
|
public String getMsgAux() {
return msgAux;
}
|
b1db4d71-ee7b-4162-a2b7-6ff564611690
|
public void setMsgAux(String msgAux) {
this.msgAux = msgAux;
}
|
5ac6ed4e-f1cc-46a7-bd52-3ffd0781dafe
|
public Date getMsgDatetime() {
return msgDatetime;
}
|
76bb3c01-b99e-4711-8c03-46a8ca0c7313
|
public void setMsgDatetime(Date msgDatetime) {
this.msgDatetime = msgDatetime;
}
|
b91ada37-c4ba-4402-a6b5-e543f919e589
|
public int getFailureType() {
return failureType;
}
|
09a8b5b1-4a29-4948-a2a5-79e232cd5b75
|
public void setFailureType(int failureType) {
this.failureType = failureType;
}
|
5d0171b3-dd72-43d6-ba66-e90be43bc87a
|
public String getSensitiveInd() {
return sensitiveInd;
}
|
eccb66b7-4abb-409c-9b1c-1986edc38a96
|
public void setSensitiveInd(String sensitiveInd) {
this.sensitiveInd = sensitiveInd;
}
|
b6c87841-b47a-4081-b00e-a07d838a5904
|
public String getDefunctInd() {
return defunctInd;
}
|
5e482975-61b9-4127-b030-8b32c8f2af33
|
public void setDefunctInd(String defunctInd) {
this.defunctInd = defunctInd;
}
|
ebf70fc9-0e8c-4d8a-ad8b-a82cfff85c21
|
public Date getCreatedDatetime() {
return createdDatetime;
}
|
76bc8dd8-d729-4a29-899d-e18d1cca0103
|
public void setCreatedDatetime(Date createdDatetime) {
this.createdDatetime = createdDatetime;
}
|
46673c16-308d-40ce-9534-c8a7a978dcc5
|
public Date getUpdatedDatetime() {
return updatedDatetime;
}
|
9d8627cb-6891-4ebc-bad4-b503af8e5919
|
public void setUpdatedDatetime(Date updatedDatetime) {
this.updatedDatetime = updatedDatetime;
}
|
48cd20d8-ac89-408d-a8ed-624463142d78
|
@PrePersist
public void initTimestamp() {
msgDatetime = new Date();
createdDatetime = new Date();
updatedDatetime = new Date();
}
|
ba94cd78-f835-43f9-a829-171f9bae034f
|
@PreUpdate
public void updateTimestamp() {
updatedDatetime = new Date();
}
|
2c28f9bb-3bfa-4f66-8e0f-03b7640a63b8
|
public Long getId() {
return id;
}
|
9bd06b8b-716e-43c5-b710-bf96876d7bdf
|
public void setId(Long id) {
this.id = id;
}
|
a075d985-d8b9-4e46-9b12-a9ed970b228e
|
public String getSysId() {
return sysId;
}
|
b60c9961-37d8-45a8-b98d-4268b7cb5717
|
public void setSysId(String sysId) {
this.sysId = sysId;
}
|
bc921fc4-e6cf-4fea-9a05-bc8838225800
|
public String getEmailAddr() {
return emailAddr;
}
|
b8d18f1b-7b4c-43b0-b3e9-fd5a21ff84e9
|
public void setEmailAddr(String emailAddr) {
this.emailAddr = emailAddr;
}
|
9337492d-071b-4755-bb24-fd79e4930451
|
public String getEmailCc() {
return emailCc;
}
|
98845c3f-22d8-46bc-bb73-1725b61af572
|
public void setEmailCc(String emailCc) {
this.emailCc = emailCc;
}
|
887166fd-9cae-45b6-891f-3cffa535b401
|
public String getEmailBcc() {
return emailBcc;
}
|
594f537d-9830-4166-bc2f-06d0467278cb
|
public void setEmailBcc(String emailBcc) {
this.emailBcc = emailBcc;
}
|
de077d33-0621-4514-93b9-631222c917bd
|
public String getEmailSubject() {
return emailSubject;
}
|
2b30e3ec-2c6a-4cff-b231-428d064a6679
|
public void setEmailSubject(String emailSubject) {
this.emailSubject = emailSubject;
}
|
68ae1e15-6e35-429f-a917-9fd77288bb9d
|
public String getEmailBody() {
return emailBody;
}
|
93f98d88-ebf2-428b-ba40-f824e290ec63
|
public void setEmailBody(String emailBody) {
this.emailBody = emailBody;
}
|
9470f20e-323a-469f-873b-24c6308b66a3
|
public String getEmailAux() {
return emailAux;
}
|
77f69ff0-3ce1-4075-9bd4-75b3ccd5f060
|
public void setEmailAux(String emailAux) {
this.emailAux = emailAux;
}
|
d4c6ff82-073d-4f68-b10c-6ad37faffa0a
|
public String getSensitiveInd() {
return sensitiveInd;
}
|
4ea8640f-bff5-4c2e-be54-25722c4ad1ce
|
public void setSensitiveInd(String sensitiveInd) {
this.sensitiveInd = sensitiveInd;
}
|
b48ff453-9f7a-4c86-aaae-89f4c6d9b79e
|
public Date getEmailDatetime() {
return emailDatetime;
}
|
3cdcd595-7c5a-4620-86b9-9908660e9e28
|
public void setEmailDatetime(Date emailDatetime) {
this.emailDatetime = emailDatetime;
}
|
49ec5bf5-fd6f-45cf-ac24-78b42d8330fb
|
public Date getCreatedDatetime() {
return createdDatetime;
}
|
beac1500-4fb9-4164-b632-88d5613c3aaf
|
public void setCreatedDatetime(Date createdDatetime) {
this.createdDatetime = createdDatetime;
}
|
6822df2e-8291-4a57-8835-6ebca23c48fb
|
@PrePersist
public void initTimestamp() {
emailDatetime = new Date();
createdDatetime = new Date();
}
|
bbaa8956-2628-4a89-bac2-ffe79166f7a3
|
public Long getId() {
return id;
}
|
2c4f9737-6ed8-4c2d-9801-08e622521584
|
public void setId(Long id) {
this.id = id;
}
|
dca32e1e-e1ef-4cd1-8718-971a5cd5b59f
|
public String getSysId() {
return sysId;
}
|
4a24df1e-6169-4841-aac9-d51c028ad3c1
|
public void setSysId(String sysId) {
this.sysId = sysId;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.