Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class HistogramQueryResult.
Histogram result that matches HistogramQuery specified in searches.
Generated from protobuf message google.cloud.talent.v4.HistogramQueryResult
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ histogram_query |
string
Requested histogram expression. |
↳ histogram |
array|Google\Protobuf\Internal\MapField
A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value. The key format is: * (for string histogram) string values stored in the field. * (for named numeric bucket) name specified in |
getHistogramQuery
Requested histogram expression.
Returns | |
---|---|
Type | Description |
string |
setHistogramQuery
Requested histogram expression.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getHistogram
A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.
The key format is:
- (for string histogram) string values stored in the field.
- (for named numeric bucket) name specified in
bucket()
function, like forbucket(0, MAX, "non-negative")
, the key will benon-negative
. - (for anonymous numeric bucket) range formatted as
<low>-<high>
, for example,0-1000
,MIN-0
, and0-MAX
.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\MapField |
setHistogram
A map from the values of the facet associated with distinct values to the number of matching entries with corresponding value.
The key format is:
- (for string histogram) string values stored in the field.
- (for named numeric bucket) name specified in
bucket()
function, like forbucket(0, MAX, "non-negative")
, the key will benon-negative
. - (for anonymous numeric bucket) range formatted as
<low>-<high>
, for example,0-1000
,MIN-0
, and0-MAX
.
Parameter | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |