Package de.cerus.cneoswrapper.fireball
Class FireballQueryBuilder
- java.lang.Object
-
- de.cerus.cneoswrapper.fireball.FireballQueryBuilder
-
public class FireballQueryBuilder extends java.lang.ObjectA helper method for creating Fireball API queries- Author:
- Maximilian Dorn
-
-
Constructor Summary
Constructors Constructor Description FireballQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FireballQueryBuilderaltitudeMax(double a)Exclude data from objects with an altitude greater than this (e.g., 17.75 meaning objects larger than this)FireballQueryBuilderaltitudeMin(double a)Exclude data from objects with an altitude less than this (e.g., 22 meaning objects smaller than this)FireballQueryBuilderaltitudeRequired()Exclude data without an altitudeQuerybuild()FireballQueryBuilderenergyMax(double e)Exclude data with total-radiated-energy greater than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)FireballQueryBuilderenergyMin(double e)Exclude data with total-radiated-energy less than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)FireballQueryBuilderfrom(QueryTime time)Minimum date and time Excludes fireballs earlier than the specified date and time.FireballQueryBuilderimpactEnergyMax(double e)Exclude data with estimated impact energy greater than this positive value in kilotons (kt) (e.g., 0.08 kt)FireballQueryBuilderimpactEnergyMin(double e)Exclude data with estimated impact energy less than this positive value in kilotons (kt) (e.g., 0.08 kt)FireballQueryBuilderincludeVelocityComponents()Include velocity componentsFireballQueryBuilderlimit(int limit)Limit to N resultsFireballQueryBuilderlocationRequired()Exclude data without a locationFireballQueryBuildermaxDate(QueryTime time)Maximum date and time Excludes fireballs later than the specified date and time.FireballQueryBuilderminDate(QueryTime time)Minimum date and time Excludes fireballs earlier than the specified date and time.FireballQueryBuildersort(SortField sortField, boolean descending)Sort by the specific fieldFireballQueryBuilderuntil(QueryTime time)Maximum date and time Excludes fireballs later than the specified date and time.FireballQueryBuildervelocityComponentsRequired()Exclude data without velocity componentsFireballQueryBuildervelocityMax(double v)Exclude data with velocity-at-peak-brightness greater than this positive value in km/s (e.g., 18.5)FireballQueryBuildervelocityMin(double v)Exclude data with velocity-at-peak-brightness less than this positive value in km/s (e.g., 18.5)FireballQueryBuildervelocityRequired()Exclude data without a velocity
-
-
-
Method Detail
-
minDate
public FireballQueryBuilder minDate(QueryTime time)
Minimum date and time Excludes fireballs earlier than the specified date and time.- Parameters:
time- Date and time- Returns:
- The builder instance
-
from
public FireballQueryBuilder from(QueryTime time)
Minimum date and time Excludes fireballs earlier than the specified date and time.- Parameters:
time- Date and time- Returns:
- The builder instance
-
maxDate
public FireballQueryBuilder maxDate(QueryTime time)
Maximum date and time Excludes fireballs later than the specified date and time.- Parameters:
time- Date and time- Returns:
- The builder instance
-
until
public FireballQueryBuilder until(QueryTime time)
Maximum date and time Excludes fireballs later than the specified date and time.- Parameters:
time- Date and time- Returns:
- The builder instance
-
energyMin
public FireballQueryBuilder energyMin(double e)
Exclude data with total-radiated-energy less than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)- Parameters:
e- The energy- Returns:
- The builder instance
-
energyMax
public FireballQueryBuilder energyMax(double e)
Exclude data with total-radiated-energy greater than this positive value in joules ×10^10 (e.g., 0.3 = 0.3×10^10 joules)- Parameters:
e- The energy- Returns:
- The builder instance
-
impactEnergyMin
public FireballQueryBuilder impactEnergyMin(double e)
Exclude data with estimated impact energy less than this positive value in kilotons (kt) (e.g., 0.08 kt)- Parameters:
e- The energy- Returns:
- The builder instance
-
impactEnergyMax
public FireballQueryBuilder impactEnergyMax(double e)
Exclude data with estimated impact energy greater than this positive value in kilotons (kt) (e.g., 0.08 kt)- Parameters:
e- The energy- Returns:
- The builder instance
-
velocityMin
public FireballQueryBuilder velocityMin(double v)
Exclude data with velocity-at-peak-brightness less than this positive value in km/s (e.g., 18.5)- Parameters:
v- The velocity- Returns:
- The builder instance
-
velocityMax
public FireballQueryBuilder velocityMax(double v)
Exclude data with velocity-at-peak-brightness greater than this positive value in km/s (e.g., 18.5)- Parameters:
v- The velocity- Returns:
- The builder instance
-
altitudeMin
public FireballQueryBuilder altitudeMin(double a)
Exclude data from objects with an altitude less than this (e.g., 22 meaning objects smaller than this)- Parameters:
a- The altitude- Returns:
- The builder instance
-
altitudeMax
public FireballQueryBuilder altitudeMax(double a)
Exclude data from objects with an altitude greater than this (e.g., 17.75 meaning objects larger than this)- Parameters:
a- The altitude- Returns:
- The builder instance
-
locationRequired
public FireballQueryBuilder locationRequired()
Exclude data without a location- Returns:
- The builder instance
-
altitudeRequired
public FireballQueryBuilder altitudeRequired()
Exclude data without an altitude- Returns:
- The builder instance
-
velocityRequired
public FireballQueryBuilder velocityRequired()
Exclude data without a velocity- Returns:
- The builder instance
-
velocityComponentsRequired
public FireballQueryBuilder velocityComponentsRequired()
Exclude data without velocity components- Returns:
- The builder instance
-
includeVelocityComponents
public FireballQueryBuilder includeVelocityComponents()
Include velocity components- Returns:
- The builder instance
-
sort
public FireballQueryBuilder sort(SortField sortField, boolean descending)
Sort by the specific field- Parameters:
sortField- The field to sort bydescending- Descending or not- Returns:
- The builder instance
-
limit
public FireballQueryBuilder limit(int limit)
Limit to N results- Parameters:
limit- The limit- Returns:
- The builder instance
-
build
public Query build()
-
-