Class BinaryEnumArray
- java.lang.Object
-
- org.apache.ignite.internal.binary.BinaryArray
-
- org.apache.ignite.internal.binary.BinaryEnumArray
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Comparable<BinaryArray>,BinaryObject,BinaryObjectEx
public class BinaryEnumArray extends BinaryArray
Ignite distinguishes between array of objects and array of enums. This extension ofBinaryArrayintended to keep correct typeId for binary enum arrays.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.ignite.internal.binary.BinaryArray
arr, compClsName, compTypeId, ctx, deserialized, DFLT_IGNITE_USE_BINARY_ARRAYS
-
-
Constructor Summary
Constructors Constructor Description BinaryEnumArray()Externalizablesupport.BinaryEnumArray(BinaryContext ctx, int compTypeId, @Nullable String compClsName, Object[] arr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryObjectclone()Copies this binary object.StringtoString()inttypeId()-
Methods inherited from class org.apache.ignite.internal.binary.BinaryArray
array, compareTo, componentClassName, componentTypeId, deserialize, deserialize, enumName, enumOrdinal, equals, field, hasField, hashCode, initUseBinaryArrays, isFlagSet, rawType, readExternal, size, toBuilder, type, useBinaryArrays, writeExternal
-
-
-
-
Constructor Detail
-
BinaryEnumArray
public BinaryEnumArray()
Externalizablesupport.
-
BinaryEnumArray
public BinaryEnumArray(BinaryContext ctx, int compTypeId, @Nullable @Nullable String compClsName, Object[] arr)
- Parameters:
ctx- Context.compTypeId- Component type id.compClsName- Component class name.arr- Array.
-
-
Method Detail
-
typeId
public int typeId()
- Specified by:
typeIdin interfaceBinaryObjectEx- Overrides:
typeIdin classBinaryArray- Returns:
- Type ID.
-
clone
public BinaryObject clone() throws CloneNotSupportedException
Copies this binary object.- Specified by:
clonein interfaceBinaryObject- Overrides:
clonein classBinaryArray- Returns:
- Copy of this binary object.
- Throws:
CloneNotSupportedException
-
toString
public String toString()
- Overrides:
toStringin classBinaryArray
-
-