Convert a Point3D with cartesian coordinates in a Point3D with spherical coordinates.
Convert a Point3D with cartesian coordinates in a Point3D with spherical coordinates.
: (Point3D) Input Point3D with cartesian coordinates.
(Point3D) The same point but with spherical coordinates.
Convert declination into theta
Convert declination into theta
: (Double) declination coordinate in degree
: (Boolean) If true, assume the input is in radian. Otherwise make the conversion deg2rad. Default is false.
(Double) theta coordinate in radian
Get sample size to be taken from the RDD.
Get sample size to be taken from the RDD. This is required in order to avoid the drive Out of Memory (OOM) when the the data size in itself is very large. The min 5000 totalNumRecords bound is added in order to ensure a sufficiently deep Octree construction.
Convert right ascension into phi
Convert right ascension into phi
: (Double) RA coordinate in degree
: (Boolean) If true, assume the input is in radian. Otherwise make the conversion deg2rad. Default is false.
(Double) phi coordinate in radian
Convert a Point3D with spherical coordinates in a Point3D with cartesian coordinates.
Convert a Point3D with spherical coordinates in a Point3D with cartesian coordinates.
: (Point3D) Input Point3D with spherical coordinates.
(Point3D) The same point but with cartesian coordinates.
Custom takeOrdered function to take unique top k elements from the RDD based on the priority of the elements relative to the queryObject defined by the custom Ordering.
Custom takeOrdered function to take unique top k elements from the RDD based on the priority of the elements relative to the queryObject defined by the custom Ordering. In case, the unique elements are not needed, fallback to using the RDD's takeOrdered function.
RDD from which the elements are to be taken
number of elements to be taken from the RDD
elements relative to which the priority is to be defined
true/false based on whether unique elements should be returned or not
custom Ordering based on which the top k elements are to be taken
array of top k elements based on the Ordering relative to the queryObject from the input RDD