public class LongType extends DataType<java.lang.Long> implements FixedWidthType, Streamer<java.lang.Long>
DataType.Precedence
Constructor and Description |
---|
LongType() |
Modifier and Type | Method and Description |
---|---|
int |
compareValueTo(java.lang.Long val1,
java.lang.Long val2) |
boolean |
equals(java.lang.Object o) |
int |
fixedSize()
The fixed amount of memory a value object instance of type t requires.
|
java.lang.String |
getName() |
int |
id() |
DataType.Precedence |
precedence()
Returns the precedence of the type which determines whether the
type should be preferred (higher precedence) or converted (lower
precedence) during type conversions.
|
java.lang.Long |
readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) |
Streamer<java.lang.Long> |
streamer() |
java.lang.Long |
value(java.lang.Object value) |
void |
writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out,
java.lang.Long v) |
public static final LongType INSTANCE
public static final int ID
public DataType.Precedence precedence()
DataType
precedence
in class DataType<java.lang.Long>
public Streamer<java.lang.Long> streamer()
public java.lang.Long value(java.lang.Object value)
public int compareValueTo(java.lang.Long val1, java.lang.Long val2)
compareValueTo
in class DataType<java.lang.Long>
public java.lang.Long readValueFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readValueFrom
in interface Streamer<java.lang.Long>
java.io.IOException
public void writeValueTo(org.elasticsearch.common.io.stream.StreamOutput out, java.lang.Long v) throws java.io.IOException
writeValueTo
in interface Streamer<java.lang.Long>
java.io.IOException
public int fixedSize()
FixedWidthType
Implementations here may not be 100% accurate because sizes may vary between JVM implementations and then there is also stuff like padding and other JVM magic.
See also: https://blogs.oracle.com/jrose/entry/fixnums_in_the_vm http://www.javaworld.com/article/2077496/testing-debugging/java-tip-130--do-you-know-your-data-size-.html
fixedSize
in interface FixedWidthType