public class DataPosSequence extends Object implements CoordSequence
Modifier and Type | Class and Description |
---|---|
static interface |
DataPosSequence.PositionCloud
Adaptor interface defining a cloud of positions for use with
DataPosSequence.
|
Constructor and Description |
---|
DataPosSequence(int ndim,
DataPosSequence.PositionCloud[] clouds,
DataStore dataStore)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getCoords()
Returns the array used to store the coordinates for the current
position in this sequence.
|
boolean |
next()
Advances to the next entry.
|
DataPosSequence |
split()
Attempts to partition this object into two halves,
ideally of similar size.
|
long |
splittableSize()
Provides an estimate of the number of processable items in this object.
|
public DataPosSequence(int ndim, DataPosSequence.PositionCloud[] clouds, DataStore dataStore)
ndim
- coordinate dimensionalityclouds
- list of point clouds providing positions over
which to iteratedataStore
- data storage objectpublic double[] getCoords()
CoordSequence
CoordSequence.next()
method. Its contents before the first call
or after a call returning false are undefined.
This method returns the same value throughout the lifetime of this sequence, it's only the contents that change to reflect the current state of the iteration.
getCoords
in interface CoordSequence
public boolean next()
CoordSequence
next
in interface CoordSequence
next
in interface Sequence
public DataPosSequence split()
Splittable
Following a successful call, the two parts may be processed in different threads.
split
in interface Splittable<CoordSequence>
Spliterator.trySplit()
public long splittableSize()
Splittable
If no estimate for the size is available, a negative value should be returned.
splittableSize
in interface Splittable<CoordSequence>
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.