Package com.atlan.model.fields
Class NumericRankField
java.lang.Object
com.atlan.model.fields.AtlanField
com.atlan.model.fields.SearchableField
com.atlan.model.fields.NumericRankField
- All Implemented Interfaces:
INumericallySearchable
,IRankSearchable
,ISearchable
public class NumericRankField
extends SearchableField
implements INumericallySearchable, IRankSearchable
Represents any field in Atlan that can be searched using only numeric search operations,
but also has a rank-orderable index.
-
Field Summary
Fields inherited from interface com.atlan.model.fields.ISearchable
EMBEDDED_SOURCE_VALUE
-
Constructor Summary
ConstructorDescriptionNumericRankField
(String atlan, String numeric, String rank) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionco.elastic.clients.elasticsearch._types.aggregations.Aggregation
avg()
Return criteria to calculate the average value of the field across all results.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Querybetween
(T min, T max) Returns a query that will match all assets whose provided field has a value between the minimum and maximum specified values, inclusive.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Queryeq
(T value) Returns a query that will match all assets whose provided field has a value that exactly matches the provided numeric value.Returns the name of the numeric field index for this attribute in Elastic.Returns the name of the numeric rank field index for this attribute in Elastic.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Querygt
(T value) Returns a query that will match all assets whose provided field has a value that is strictly greater than the provided numeric value.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Querygte
(T value) Returns a query that will match all assets whose provided field has a value that is greater than or equal to the provided numeric value.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Querylt
(T value) Returns a query that will match all assets whose provided field has a value that is strictly less than the provided numeric value.<T extends Number>
co.elastic.clients.elasticsearch._types.query_dsl.Querylte
(T value) Returns a query that will match all assets whose provided field has a value that is less than or equal to the provided numeric value.co.elastic.clients.elasticsearch._types.aggregations.Aggregation
max()
Return criteria to calculate the maximum value of the field across all results.co.elastic.clients.elasticsearch._types.aggregations.Aggregation
min()
Return criteria to calculate the minimum value of the field across all results.co.elastic.clients.elasticsearch._types.aggregations.Aggregation
sum()
Return criteria to calculate a sum of the values of the field across all results.Methods inherited from class com.atlan.model.fields.SearchableField
bucketBy, bucketBy, count, distinct, distinct, getElasticFieldName, hasAnyValue, order
Methods inherited from class com.atlan.model.fields.AtlanField
getAtlanFieldName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlan.model.fields.ISearchable
bucketBy, bucketBy
-
Field Details
-
inLineage
-
-
Constructor Details
-
NumericRankField
Default constructor.- Parameters:
atlan
- name of the attribute in the metastorenumeric
- name of the numeric field in the search indexrank
- name of the rank orderable field in the search index
-
-
Method Details
-
getRankFieldName
Returns the name of the numeric rank field index for this attribute in Elastic.- Specified by:
getRankFieldName
in interfaceIRankSearchable
- Returns:
- the field name for the numeric rank index on this attribute
-
getNumericFieldName
Returns the name of the numeric field index for this attribute in Elastic.- Specified by:
getNumericFieldName
in interfaceINumericallySearchable
- Returns:
- the field name for the numeric index on this attribute
-
eq
Returns a query that will match all assets whose provided field has a value that exactly matches the provided numeric value.- Specified by:
eq
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
value
- the numeric value to exactly match- Returns:
- a query that will only match assets whose value for the field is exactly the numeric value provided
-
gt
Returns a query that will match all assets whose provided field has a value that is strictly greater than the provided numeric value.- Specified by:
gt
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
value
- the numeric value to compare against- Returns:
- a query that will only match assets whose value for the field is strictly greater than the numeric value provided
-
gte
Returns a query that will match all assets whose provided field has a value that is greater than or equal to the provided numeric value.- Specified by:
gte
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
value
- the numeric value to compare against- Returns:
- a query that will only match assets whose value for the field is greater than or equal to the numeric value provided
-
lt
Returns a query that will match all assets whose provided field has a value that is strictly less than the provided numeric value.- Specified by:
lt
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
value
- the numeric value to compare against- Returns:
- a query that will only match assets whose value for the field is strictly less than the numeric value provided
-
lte
Returns a query that will match all assets whose provided field has a value that is less than or equal to the provided numeric value.- Specified by:
lte
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
value
- the numeric value to compare against- Returns:
- a query that will only match assets whose value for the field is less than or equal to the numeric value provided
-
between
public <T extends Number> co.elastic.clients.elasticsearch._types.query_dsl.Query between(T min, T max) Returns a query that will match all assets whose provided field has a value between the minimum and maximum specified values, inclusive.- Specified by:
between
in interfaceINumericallySearchable
- Type Parameters:
T
- numeric values- Parameters:
min
- minimum value of the field that will match (inclusive)max
- maximum value of the field that will match (inclusive)- Returns:
- a query that will only match assets whose value for the field is between the min and max (both inclusive)
-
sum
public co.elastic.clients.elasticsearch._types.aggregations.Aggregation sum()Return criteria to calculate a sum of the values of the field across all results.- Specified by:
sum
in interfaceINumericallySearchable
- Returns:
- criteria to calculate the sum of the values of the provided field across the results
-
avg
public co.elastic.clients.elasticsearch._types.aggregations.Aggregation avg()Return criteria to calculate the average value of the field across all results.- Specified by:
avg
in interfaceINumericallySearchable
- Returns:
- criteria to calculate the average value of the provided field across the results
-
min
public co.elastic.clients.elasticsearch._types.aggregations.Aggregation min()Return criteria to calculate the minimum value of the field across all results.- Specified by:
min
in interfaceINumericallySearchable
- Returns:
- criteria to calculate the minimum value of the provided field across the results
-
max
public co.elastic.clients.elasticsearch._types.aggregations.Aggregation max()Return criteria to calculate the maximum value of the field across all results.- Specified by:
max
in interfaceINumericallySearchable
- Returns:
- criteria to calculate the maximum value of the provided field across the results
-