Package uk.ac.starlink.ttools.moc
Class CdsMocBuilder
java.lang.Object
uk.ac.starlink.ttools.moc.CdsMocBuilder
- All Implemented Interfaces:
MocBuilder
MocBuilder implementation based on the CDS SMoc class.
- Since:
- 28 Jan 2025
- Author:
- Mark Taylor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MocBuilder
createCdsMocBuilder
(int maxOrder, int batchSize) Returns an instance of this class that may or may not use tile batching to affect performance.Returns an iterator over the UNIQ values represented by this MOC in sequence.long[]
Returns an array of the number of tiles present at each order of the normalised MOC.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.starlink.ttools.moc.MocBuilder
addTile, endTiles
-
Constructor Details
-
CdsMocBuilder
protected CdsMocBuilder(int maxOrder) Constructor.- Parameters:
maxOrder
- maximum order stored by this MOC
-
-
Method Details
-
createOrderedUniqIterator
Description copied from interface:MocBuilder
Returns an iterator over the UNIQ values represented by this MOC in sequence. That means that the lower-order ones come first.Should only be called after
MocBuilder.endTiles()
has been called.- Specified by:
createOrderedUniqIterator
in interfaceMocBuilder
-
getOrderCounts
public long[] getOrderCounts()Description copied from interface:MocBuilder
Returns an array of the number of tiles present at each order of the normalised MOC. The length of the array gives the number of orders present (the last element may not be zero, unless only one element is returned). The sum of the elements of this array gives the number of values that will be returned byMocBuilder.createOrderedUniqIterator()
.Should only be called after
MocBuilder.endTiles()
has been called.- Specified by:
getOrderCounts
in interfaceMocBuilder
-
createCdsMocBuilder
Returns an instance of this class that may or may not use tile batching to affect performance.- Parameters:
maxOrder
- maximum HEALPix order of the MOCbatchSize
- if >1, pixels are added in batches per order, which may result in improved performance
-