Module org.elasticsearch.server
Record Class IndexFieldCapabilities
java.lang.Object
java.lang.Record
org.elasticsearch.action.fieldcaps.IndexFieldCapabilities
- Record Components:
name
- The name of the field.type
- The type associated with the field.isSearchable
- Whether this field is indexed for search.isAggregatable
- Whether this field can be aggregated on.meta
- Metadata about the field.
- All Implemented Interfaces:
Writeable
public record IndexFieldCapabilities(String name, String type, boolean isMetadatafield, boolean isSearchable, boolean isAggregatable, boolean isDimension, TimeSeriesParams.MetricType metricType, Map<String,String> meta)
extends Record
implements Writeable
Describes the capabilities of a field in a single index.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionIndexFieldCapabilities
(String name, String type, boolean isMetadatafield, boolean isSearchable, boolean isAggregatable, boolean isDimension, TimeSeriesParams.MetricType metricType, Map<String, String> meta) Creates an instance of aIndexFieldCapabilities
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisAggregatable
record component.boolean
Returns the value of theisDimension
record component.boolean
Returns the value of theisMetadatafield
record component.boolean
Returns the value of theisSearchable
record component.meta()
Returns the value of themeta
record component.Returns the value of themetricType
record component.name()
Returns the value of thename
record component.static IndexFieldCapabilities
readFrom
(StreamInput in) final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.void
writeTo
(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
IndexFieldCapabilities
public IndexFieldCapabilities(String name, String type, boolean isMetadatafield, boolean isSearchable, boolean isAggregatable, boolean isDimension, TimeSeriesParams.MetricType metricType, Map<String, String> meta) Creates an instance of aIndexFieldCapabilities
record class.- Parameters:
name
- the value for thename
record componenttype
- the value for thetype
record componentisMetadatafield
- the value for theisMetadatafield
record componentisSearchable
- the value for theisSearchable
record componentisAggregatable
- the value for theisAggregatable
record componentisDimension
- the value for theisDimension
record componentmetricType
- the value for themetricType
record componentmeta
- the value for themeta
record component
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
isMetadatafield
public boolean isMetadatafield()Returns the value of theisMetadatafield
record component.- Returns:
- the value of the
isMetadatafield
record component
-
isSearchable
public boolean isSearchable()Returns the value of theisSearchable
record component.- Returns:
- the value of the
isSearchable
record component
-
isAggregatable
public boolean isAggregatable()Returns the value of theisAggregatable
record component.- Returns:
- the value of the
isAggregatable
record component
-
isDimension
public boolean isDimension()Returns the value of theisDimension
record component.- Returns:
- the value of the
isDimension
record component
-
metricType
Returns the value of themetricType
record component.- Returns:
- the value of the
metricType
record component
-
meta
Returns the value of themeta
record component.- Returns:
- the value of the
meta
record component
-