public static Op.Type getTypeFromByte(byte type) {
        switch (type) {
            case OpType.SCALAR:
                return Op.Type.SCALAR;
            case OpType.BROADCAST:
                return Op.Type.BROADCAST;
            case OpType.TRANSFORM:
                return Op.Type.TRANSFORM;
            case OpType.ACCUMULATION:
                return Op.Type.REDUCE;
            case OpType.ACCUMULATION3:
                return Op.Type.REDUCE3;
            case OpType.INDEX_ACCUMULATION:
                return Op.Type.INDEXREDUCE;
            case OpType.RANDOM:
                return Op.Type.RANDOM;
            case OpType.LOGIC:
                return Op.Type.META;
            case OpType.CUSTOM:
                return Op.Type.CUSTOM;
            case OpType.SHAPE:
                return Op.Type.SHAPE;
            case OpType.PAIRWISE:
                return Op.Type.PAIRWISE;
            case OpType.SUMMARYSTATS:
                return Op.Type.SUMMARYSTATS;
            default:
                throw new UnsupportedOperationException("Unknown op type passed in: " + type);
        }
    }
public static Op.Type getTypeFromByte(byte type) {
        switch (type) {
            case OpType.SCALAR:
                return Op.Type.SCALAR;
            case OpType.BROADCAST:
                return Op.Type.BROADCAST;
            case OpType.TRANSFORM:
                return Op.Type.TRANSFORM;
            case OpType.ACCUMULATION:
                return Op.Type.REDUCE;
            case OpType.ACCUMULATION3:
                return Op.Type.REDUCE3;
            case OpType.INDEX_ACCUMULATION:
                return Op.Type.INDEXREDUCE;
            case OpType.RANDOM:
                return Op.Type.RANDOM;
            case OpType.LOGIC:
                return Op.Type.META;
            case OpType.CUSTOM:
                return Op.Type.CUSTOM;
            case OpType.SHAPE:
                return Op.Type.SHAPE;
            case OpType.PAIRWISE:
                return Op.Type.PAIRWISE;
            case OpType.SUMMARYSTATS:
                return Op.Type.SUMMARYSTATS;
            default:
                throw new UnsupportedOperationException("Unknown op type passed in: " + type);
        }
    }
public static Op . Type getTypeFromByte ( byte type ) { switch ( type ) { case OpType . SCALAR : return Op . Type . SCALAR ; case OpType . BROADCAST : return Op . Type . BROADCAST ; case OpType . TRANSFORM : return Op . Type . TRANSFORM ; case OpType . ACCUMULATION : return Op . Type . REDUCE ; case OpType . ACCUMULATION3 : return Op . Type . REDUCE3 ; case OpType . INDEX_ACCUMULATION : return Op . Type . INDEXREDUCE ; case OpType . RANDOM : return Op . Type . RANDOM ; case OpType . LOGIC : return Op . Type . META ; case OpType . CUSTOM : return Op . Type . CUSTOM ; case OpType . SHAPE : return Op . Type . SHAPE ; case OpType . PAIRWISE : return Op . Type . PAIRWISE ; case OpType . SUMMARYSTATS : return Op . Type . SUMMARYSTATS ; default : throw new UnsupportedOperationException ( "Unknown op type passed in: " + type ) ; } }
This method converts enums for DataType

@param type
@return
This method converts enums for DataType