public enum WritableType extends Enum<WritableType>
| Enum Constant and Description |
|---|
Arrow |
Boolean |
Byte |
Bytes |
Double |
Float |
Image |
Int |
Long |
NDArray |
Null |
Text |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Writable> |
getWritableClass()
Return the class of the implementation corresponding to each WritableType.
|
boolean |
isCoreWritable() |
short |
typeIdx()
Return a unique type index for the given writable
|
static WritableType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WritableType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WritableType Boolean
public static final WritableType Byte
public static final WritableType Double
public static final WritableType Float
public static final WritableType Int
public static final WritableType Long
public static final WritableType Null
public static final WritableType Text
public static final WritableType NDArray
public static final WritableType Image
public static final WritableType Arrow
public static final WritableType Bytes
public static WritableType[] values()
for (WritableType c : WritableType.values()) System.out.println(c);
public static WritableType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isCoreWritable()
public short typeIdx()
public Class<? extends Writable> getWritableClass()
isCoreWritable() returns false, null will be returned by this method.Copyright © 2019. All rights reserved.