Class LongByteTuple
- All Implemented Interfaces:
CanonicalizableTuple<LongByteTuple>
,StreamingExternalizable
,Externalizable
,Serializable
,Comparable<LongByteTuple>
2-Tuple (double) key class composed of long and byte elements.
Generated by io.deephaven.replicators.TupleCodeGenerator.
- See Also:
-
Constructor Summary
ConstructorDescriptionPublic no-arg constructor forExternalizable
support only.LongByteTuple
(long element1, byte element2) -
Method Summary
Modifier and TypeMethodDescriptioncanonicalize
(@NotNull UnaryOperator<Object> canonicalizer) Canonicalize this tuple.final int
compareTo
(@NotNull LongByteTuple other) final boolean
final long
final byte
final int
hashCode()
void
readExternal
(@NotNull ObjectInput in) void
readExternalStreaming
(@NotNull ObjectInput in, @NotNull gnu.trove.map.TIntObjectMap<SerializationUtils.Reader> cachedReaders) Alternative toExternalizable.readExternal(ObjectInput)
for use when a series of tuples of the same type with the same element types are being read in iterative fashion.toString()
void
writeExternal
(@NotNull ObjectOutput out) void
writeExternalStreaming
(@NotNull ObjectOutput out, @NotNull gnu.trove.map.TIntObjectMap<SerializationUtils.Writer> cachedWriters) Alternative toExternalizable.writeExternal(ObjectOutput)
for use when a series of tuples of the same type with the same element types are being written in iterative fashion.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.deephaven.tuple.serialization.StreamingExternalizable
initializeExternalStreaming
-
Constructor Details
-
LongByteTuple
public LongByteTuple(long element1, byte element2) -
LongByteTuple
public LongByteTuple()Public no-arg constructor forExternalizable
support only. Application code should not use this!
-
-
Method Details
-
getFirstElement
public final long getFirstElement() -
getSecondElement
public final byte getSecondElement() -
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<LongByteTuple>
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(@NotNull @NotNull ObjectInput in) throws IOException, ClassNotFoundException - Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternalStreaming
public void writeExternalStreaming(@NotNull @NotNull ObjectOutput out, @NotNull @NotNull gnu.trove.map.TIntObjectMap<SerializationUtils.Writer> cachedWriters) throws IOException Description copied from interface:StreamingExternalizable
Alternative to
Externalizable.writeExternal(ObjectOutput)
for use when a series of tuples of the same type with the same element types are being written in iterative fashion.Primitive elements should be written with their primitive write methods (e.g.
DataOutput.writeInt(int)
).Object elements are preceded by a boolean, true if null, false otherwise. The first non-null value for a given Object element is then preceded by the name of the class. All non-null values are then written with a writer method from
SerializationUtils.getWriter(Class, ObjectOutput)
, cached in cachedWriters.- Specified by:
writeExternalStreaming
in interfaceStreamingExternalizable
- Parameters:
out
- The outputcachedWriters
- The cached writers- Throws:
IOException
-
readExternalStreaming
public void readExternalStreaming(@NotNull @NotNull ObjectInput in, @NotNull @NotNull gnu.trove.map.TIntObjectMap<SerializationUtils.Reader> cachedReaders) throws Exception Description copied from interface:StreamingExternalizable
Alternative to
Externalizable.readExternal(ObjectInput)
for use when a series of tuples of the same type with the same element types are being read in iterative fashion.Primitive elements should be read with their primitive read methods (e.g.
DataInput.readInt()
).Object elements are preceded by a boolean, true if null, false otherwise. The first non-null value for a given Object element is then preceded by the name of the class. All non-null values are then read with a reader method from
SerializationUtils.getReader(Class, ObjectInput)
, cached in cachedReaders.- Specified by:
readExternalStreaming
in interfaceStreamingExternalizable
- Parameters:
in
- The inputcachedReaders
- The cached readers- Throws:
Exception
-
toString
-
canonicalize
Description copied from interface:CanonicalizableTuple
Canonicalize this tuple.- Specified by:
canonicalize
in interfaceCanonicalizableTuple<LongByteTuple>
- Parameters:
canonicalizer
- The canonicalization operator to use on each object element.- Returns:
- This tuple if already canonical, else a new, canonical tuple of the same type
-