private static class DynamicQueryHelper.QueryCacheKey
extends java.lang.Object
LFUAgingCache
caches of
DynamicQueryHelper
.Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?>[] |
bufferDMOs
The DMO classes of the buffers
|
private java.lang.String[] |
bufferNames
The names of the buffers
TODO: Normally this should be removed, or better said, replaced with a buffer matching
algorithm because there are the same queries, only the name of the buffer differ.
|
private int |
hashCode
Hash code
|
private java.lang.String |
query
The query that generated a JAST tree.
|
Constructor and Description |
---|
QueryCacheKey(java.lang.String query,
java.util.List<Buffer> buffers)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Checks whether some other object is "equal to" this one.
|
int |
hashCode()
Returns a pre-computed hash code value for the object.
|
java.lang.String |
toString()
Return a string representation of this object.
|
private final java.lang.String query
private final java.lang.Class<?>[] bufferDMOs
private final java.lang.String[] bufferNames
private final int hashCode
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- Another object to compare to.true
if this object is the same as the obj argument.public int hashCode()
HashMap
.hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object