support DataType.Object array factory method

This commit is contained in:
wyq 2021-03-17 16:40:09 +08:00
parent cb48f4dd85
commit b59ee6f724

View File

@ -188,6 +188,8 @@ public abstract class Array {
return ArrayObject.factory(dtype, StructureDataIterator.class, false, index, (Object[]) storage);
case OPAQUE:
return ArrayObject.factory(dtype, ByteBuffer.class, false, index, (Object[]) storage);
case OBJECT:
return ArrayObject.factory(dtype, Object.class, false, index, (Object[]) storage);
}
throw new RuntimeException("Cant use this method for datatype " + dtype);