Class Version
java.lang.Object
org.elasticsearch.xpack.versionfield.Version
- All Implemented Interfaces:
Comparable<Version>,BytesRefProducer,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment
public class Version
extends Object
implements org.elasticsearch.xcontent.ToXContentFragment, BytesRefProducer, Comparable<Version>
Version value class, also exposed to scripting consumers.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintorg.apache.lucene.util.BytesReftoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
version
-
bytes
protected org.apache.lucene.util.BytesRef bytes
-
-
Constructor Details
-
Version
-
Version
public Version(org.apache.lucene.util.BytesRef bytes)
-
-
Method Details
-
toString
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
toBytesRef
public org.apache.lucene.util.BytesRef toBytesRef()- Specified by:
toBytesRefin interfaceBytesRefProducer
-
compareTo
- Specified by:
compareToin interfaceComparable<Version>
-