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.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransportVersion
static final TransportVersion
static final Processors
static final Processors
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Method Summary
Modifier and TypeMethodDescriptionint
double
count()
boolean
static boolean
static Processors
fromXContent
(XContentParser parser) boolean
int
hashCode()
multiply
(int value) static Processors
plus
(Processors other) static Processors
readFrom
(StreamInput in) int
int
roundUp()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
fromXContent
- Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
plus
-
multiply
-
count
public double count() -
roundUp
public int roundUp() -
roundDown
public int roundDown() -
hasDecimals
public boolean hasDecimals() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Processors>
-
equalsOrCloseTo
-
equals
-
hashCode
public int hashCode() -
toString
-