Package gaiasky.data.group
Interface IParticleGroupDataProvider
- All Known Subinterfaces:
IStarGroupDataProvider
- All Known Implementing Classes:
AbstractStarGroupDataProvider
,BinaryDataProvider
,CsvCatalogDataProvider
,PointDataProvider
,SDSSDataProvider
,SerializedDataProvider
,STILDataProvider
,UncertaintiesProvider
public interface IParticleGroupDataProvider
Data provider for a particle group.
-
Method Summary
Modifier and Type Method Description java.util.List<IParticleRecord>
loadData(java.io.InputStream is, double factor)
Loads the data applying a factor.java.util.List<IParticleRecord>
loadData(java.lang.String file)
Loads the data as it is.java.util.List<IParticleRecord>
loadData(java.lang.String file, double factor)
Loads the data applying a factor.java.util.List<IParticleRecord>
loadDataMapped(java.lang.String file, double factor)
Loads the data applying a factor using a memory mapped file for improved speed.void
setFileNumberCap(int cap)
Sets a cap on the number of files to load.void
setStarNumberCap(int cap)
Sets the maximum number of stars to be processed per file.
-
Method Details
-
loadData
Loads the data as it is.- Parameters:
file
- The file to load- Returns:
- Array of particle beans
-
loadDataMapped
Loads the data applying a factor using a memory mapped file for improved speed.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
Loads the data applying a factor.- Parameters:
file
- The file to loadfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
loadData
Loads the data applying a factor.- Parameters:
is
- Input stream to load the data fromfactor
- Factor to apply to the positions- Returns:
- Array of particle beans
-
setFileNumberCap
void setFileNumberCap(int cap)Sets a cap on the number of files to load. Set to negative for unlimited- Parameters:
cap
- The file cap number
-
setStarNumberCap
void setStarNumberCap(int cap)Sets the maximum number of stars to be processed per file. Set to negative for unlimited- Parameters:
cap
- The star cap number
-