@@ -23,27 +23,6 @@ import org.apache.spark.sql.catalyst.InternalRow
2323import org .apache .spark .sql .types ._
2424import org .apache .spark .unsafe .types .{CalendarInterval , UTF8String }
2525
26- object GenericArrayData {
27- def allocate (array : Array [Any ]): GenericRefArrayData = new GenericRefArrayData (array)
28- def allocate (seq : Seq [Any ]): GenericRefArrayData = new GenericRefArrayData (seq)
29- def allocate (list : java.util.List [Any ]): GenericRefArrayData = new GenericRefArrayData (list)
30- def allocate (seqOrArray : Any ): GenericRefArrayData = new GenericRefArrayData (seqOrArray)
31- def allocate (primitiveArray : Array [Int ]): GenericIntArrayData =
32- new GenericIntArrayData (primitiveArray)
33- def allocate (primitiveArray : Array [Long ]): GenericLongArrayData =
34- new GenericLongArrayData (primitiveArray)
35- def allocate (primitiveArray : Array [Float ]): GenericFloatArrayData =
36- new GenericFloatArrayData (primitiveArray)
37- def allocate (primitiveArray : Array [Double ]): GenericDoubleArrayData =
38- new GenericDoubleArrayData (primitiveArray)
39- def allocate (primitiveArray : Array [Short ]): GenericShortArrayData =
40- new GenericShortArrayData (primitiveArray)
41- def allocate (primitiveArray : Array [Byte ]): GenericByteArrayData =
42- new GenericByteArrayData (primitiveArray)
43- def allocate (primitiveArray : Array [Boolean ]): GenericBooleanArrayData =
44- new GenericBooleanArrayData (primitiveArray)
45- }
46-
4726private object GenericArrayData {
4827
4928 // SPARK-16634: Workaround for JVM bug present in some 1.7 versions.
@@ -80,7 +59,7 @@ class GenericArrayData(val array: Array[Any],
8059
8160 def this (array : Array [Any ]) = this (array, null , null , null , null , null , null , null )
8261
83- def this (seqOrArray : Any ) = this (GenericRefArrayData .anyToSeq(seqOrArray))
62+ def this (seqOrArray : Any ) = this (GenericArrayData .anyToSeq(seqOrArray))
8463
8564 override def copy (): ArrayData = {
8665 if (booleanArray != null ) new GenericArrayData (booleanArray.clone())
0 commit comments