java.lang.Object
org.elasticsearch.common.unit.Processors
- All Implemented Interfaces:
Comparable<Processors>,Writeable,ToXContent,ToXContentFragment
public class Processors
extends Object
implements Writeable, Comparable<Processors>, ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransportVersionstatic final TransportVersionstatic final Processorsstatic final ProcessorsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionintdoublecount()booleanstatic booleanstatic ProcessorsfromXContent(XContentParser parser) booleaninthashCode()multiply(int value) static Processorsplus(Processors other) static ProcessorsreadFrom(StreamInput in) intintroundUp()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
ZERO
-
MAX_PROCESSORS
-
FLOAT_PROCESSORS_SUPPORT_TRANSPORT_VERSION
-
DOUBLE_PROCESSORS_SUPPORT_TRANSPORT_VERSION
-
-
Method Details
-
of
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
plus
-
multiply
-
count
public double count() -
roundUp
public int roundUp() -
roundDown
public int roundDown() -
hasDecimals
public boolean hasDecimals() -
compareTo
- Specified by:
compareToin interfaceComparable<Processors>
-
equalsOrCloseTo
-
equals
-
hashCode
public int hashCode() -
toString
-