Record Class SearchStats.EmptySearchStats
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.esql.stats.SearchStats.EmptySearchStats
- All Implemented Interfaces:
SearchStats
- Enclosing interface:
SearchStats
When there are no search stats available, for example when there are no search contexts, we have static results.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.esql.stats.SearchStats
SearchStats.EmptySearchStats -
Field Summary
Fields inherited from interface org.elasticsearch.xpack.esql.stats.SearchStats
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongcount()longcount(FieldAttribute.FieldName field) longcount(FieldAttribute.FieldName field, org.apache.lucene.util.BytesRef value) final booleanIndicates whether some other object is "equal to" this one.booleanexists(FieldAttribute.FieldName field) booleanbooleanfinal inthashCode()Returns a hash code value for this object.booleanbooleanbyte[]max(FieldAttribute.FieldName field, DataType dataType) byte[]min(FieldAttribute.FieldName field, DataType dataType) final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.esql.stats.SearchStats
constantValue
-
Constructor Details
-
EmptySearchStats
public EmptySearchStats()Creates an instance of aEmptySearchStatsrecord class.
-
-
Method Details
-
exists
- Specified by:
existsin interfaceSearchStats
-
isIndexed
- Specified by:
isIndexedin interfaceSearchStats
-
hasDocValues
- Specified by:
hasDocValuesin interfaceSearchStats
-
hasExactSubfield
- Specified by:
hasExactSubfieldin interfaceSearchStats
-
count
public long count()- Specified by:
countin interfaceSearchStats
-
count
- Specified by:
countin interfaceSearchStats
-
count
- Specified by:
countin interfaceSearchStats
-
min
- Specified by:
minin interfaceSearchStats
-
max
- Specified by:
maxin interfaceSearchStats
-
isSingleValue
- Specified by:
isSingleValuein interfaceSearchStats
-
canUseEqualityOnSyntheticSourceDelegate
- Specified by:
canUseEqualityOnSyntheticSourceDelegatein interfaceSearchStats
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal.
-