|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.aitools.aq.invertedindex.value.triple.IntFloatFloat
public class IntFloatFloat
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface de.aitools.aq.invertedindex.value.Value |
---|
Value.Check, Value.InvalidArgumentException |
Field Summary |
---|
Fields inherited from interface de.aitools.aq.invertedindex.value.Value |
---|
SEPARATOR |
Constructor Summary | |
---|---|
IntFloatFloat()
|
|
IntFloatFloat(IntFloatFloat triple)
|
|
IntFloatFloat(int e1,
float e2,
float e3)
|
Method Summary | |
---|---|
int |
byteSize()
Returns the serialized size of this value. |
boolean |
equals(java.lang.Object obj)
|
int |
getE1()
|
float |
getE2()
|
float |
getE3()
|
int |
hashCode()
|
TokenStream |
parseFrom(TokenStream in)
Parses all elements from a TokenStream . |
java.io.PrintStream |
printTo(java.io.PrintStream out)
Prints all elements to a . |
java.io.PrintWriter |
printTo(java.io.PrintWriter out)
Prints all elements to a . |
void |
set(int e1,
float e2,
float e3)
|
void |
setE1(int e1)
|
void |
setE2(float e2)
|
void |
setE3(float e3)
|
void |
toBytes(java.nio.ByteBuffer buffer)
Serializes all elements into a ByteBuffer . |
void |
wrap(java.nio.ByteBuffer buffer)
Deserializes the value from a ByteBuffer . |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntFloatFloat()
public IntFloatFloat(int e1, float e2, float e3)
public IntFloatFloat(IntFloatFloat triple)
Method Detail |
---|
public int getE1()
public float getE2()
public float getE3()
public TokenStream parseFrom(TokenStream in) throws java.io.IOException
Value
TokenStream
.
parseFrom
in interface Value
in
- the token stream to read the value from.
java.io.IOException
public java.io.PrintWriter printTo(java.io.PrintWriter out)
Value
#toString()
, but for serialization purposes this method is
much faster since no temporal variables are needed.
printTo
in interface Value
out
- the print writer to write the value to.
public java.io.PrintStream printTo(java.io.PrintStream out)
Value
#toString()
, but for serialization purposes this method is
much faster since no temporal variables are needed.
printTo
in interface Value
out
- the print stream to write the value to.
public void setE1(int e1)
public void setE2(float e2)
public void setE3(float e3)
public void set(int e1, float e2, float e3)
public int byteSize()
Value
ByteBuffer
when calling Value.toBytes(ByteBuffer)
.
byteSize
in interface Value
Value.wrap(ByteBuffer)
,
Value.toBytes(ByteBuffer)
public void toBytes(java.nio.ByteBuffer buffer)
Value
ByteBuffer
.
Note that the given buffer has the correct ByteOrder
,
which is by default, but has to be
ByteOrder.LITTLE_ENDIAN
on Intel machines because of JNI.
TODO check automatic buffer resizing if possible ...
otherwise there has to be a precondition: buffer.capacity() >= size()
toBytes
in interface Value
buffer
- a byte buffer to serialize the value to.Value.wrap(ByteBuffer)
public void wrap(java.nio.ByteBuffer buffer)
Value
ByteBuffer
.
All elements of this value are read from the current get position.
wrap
in interface Value
buffer
- a byte buffer that contains all elements of this value.Value.toBytes(ByteBuffer)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |