public class FieldCapabilities extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName()
The name of the field.
|
java.lang.String |
getType()
The type of the field.
|
int |
hashCode() |
java.lang.String[] |
indices()
The list of indices where this field name is defined as
type ,
or null if all indices have the same type for the field. |
boolean |
isAggregatable()
Whether this field is indexed for search on all indices.
|
boolean |
isSearchable()
Whether this field can be aggregated on all indices.
|
java.lang.String[] |
nonAggregatableIndices()
The list of indices where this field is not aggregatable,
or null if the field is aggregatable in all indices.
|
java.lang.String[] |
nonSearchableIndices()
The list of indices where this field is not searchable,
or null if the field is searchable in all indices.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String getName()
public boolean isAggregatable()
public boolean isSearchable()
public java.lang.String getType()
public java.lang.String[] indices()
type
,
or null if all indices have the same type
for the field.public java.lang.String[] nonSearchableIndices()
public java.lang.String[] nonAggregatableIndices()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object