public final class TotalHits extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TotalHits.Relation
How the
value should be interpreted. |
Modifier and Type | Field and Description |
---|---|
TotalHits.Relation |
relation
Whether
value is the exact hit count, in which case
relation is equal to TotalHits.Relation.EQUAL_TO , or a lower bound
of the total hit count, in which case relation is equal to
TotalHits.Relation.GREATER_THAN_OR_EQUAL_TO . |
long |
value
The value of the total hit count.
|
Constructor and Description |
---|
TotalHits(long value,
TotalHits.Relation relation)
Sole constructor.
|
public final long value
relation
.public final TotalHits.Relation relation
value
is the exact hit count, in which case
relation
is equal to TotalHits.Relation.EQUAL_TO
, or a lower bound
of the total hit count, in which case relation
is equal to
TotalHits.Relation.GREATER_THAN_OR_EQUAL_TO
.public TotalHits(long value, TotalHits.Relation relation)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.