Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[geomesa-users] Are both start time and end time used for efficient storage/retrieval?

Hi,

I am just starting to use a newer version of GeoMesa.  I was previously using a January version of GeoMesa.  In the past, I was always indexing data with both a start time and an end time.
For example:
	feature.setAttribute(Constants.SF_PROPERTY_START_TIME, startTime); 
	feature.setAttribute(Constants.SF_PROPERTY_END_TIME,   endTime);


Looking over all of the new examples, I see code analogous to the following:
	simpleFeatureType.getUserData().put(Constants.SF_PROPERTY_START_TIME, "When");
                  ...
	feature.setAttribute("When", someTime);


I understand that time is used for efficiently storing/querying data.  My questions are:
1) if I want to index both a start time and an end time for my data, is the end time actually used in a special way by GeoMesa? 
2) Or, is the start time attribute the only time attribute that is used in a special way?
3) If both start and end time are used, just for clarity, if I want to use both start time and end time, I would do something analogous to the following, correct?
	simpleFeatureType.getUserData().put(Constants.SF_PROPERTY_START_TIME, "myStartTimeAttribute");
	simpleFeatureType.getUserData().put(Constants.SF_PROPERTY_END_TIME, "myEndTimeAttribute");
                  ...
	feature.setAttribute("myStartTimeAttribute ", startTime);
	feature.setAttribute("myEndTimeAttribute ", endTime);


Thanks,

Beau



Back to the top