File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/data Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2222 */
2323package com .oracle .truffle .r .runtime .data ;
2424
25+ import com .oracle .truffle .api .CompilerDirectives ;
2526import com .oracle .truffle .api .interop .TruffleObject ;
2627import com .oracle .truffle .api .library .CachedLibrary ;
2728import com .oracle .truffle .api .library .ExportLibrary ;
@@ -111,8 +112,18 @@ public Object materialize(@CachedLibrary("this.data") VectorDataLibrary dataLib)
111112 switch (getType ()) {
112113 case Integer :
113114 return new RIntArrayVectorData (getIntDataCopy (dataLib ), dataLib .getNACheck (data ).neverSeenNA ());
115+ case Double :
116+ return new RDoubleArrayVectorData (getDoubleDataCopy (dataLib ), dataLib .getNACheck (data ).neverSeenNA ());
117+ case Raw :
118+ return new RRawArrayVectorData (getRawDataCopy (dataLib ));
119+ case Logical :
120+ return new RLogicalArrayVectorData (getLogicalDataCopy (dataLib ), dataLib .getNACheck (data ).neverSeenNA ());
121+ case Complex :
122+ return new RComplexArrayVectorData (getComplexDataCopy (dataLib ), dataLib .getNACheck (data ).neverSeenNA ());
123+ case Character :
124+ return new RStringArrayVectorData (getStringDataCopy (dataLib ), dataLib .getNACheck (data ).neverSeenNA ());
114125 default :
115- throw RInternalError . unimplemented ( "TODO" );
126+ throw CompilerDirectives . shouldNotReachHere ( getType (). toString () );
116127 }
117128 }
118129
You can’t perform that action at this time.
0 commit comments