[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [geomesa-users] Are both start time and end time used for efficient storage/retrieval?
|
Thanks Mike for the quick response!
-----Original Message-----
From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Michael Ronquest
Sent: Friday, June 13, 2014 11:36 AM
To: Geomesa User discussions
Subject: Re: [geomesa-users] Are both start time and end time used for efficient storage/retrieval?
Hi Beau,
Actually, only one time is used in the index: the one SF_PROPERTY_START_TIME points to.
The end time is not used in any special way.
You are absolutely correct regarding the usage:
simpleFeatureType.getUserData().put(Constants.SF_PROPERTY_START_TIME,
"myStartTimeAttribute");
is the thing to do.
Cheers,
Mike
On 06/13/2014 11:13 AM, Beau Lalonde wrote:
> 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
>
> _______________________________________________
> geomesa-users mailing list
> geomesa-users@xxxxxxxxxxxxxxxx
> http://www.locationtech.org/mailman/listinfo/geomesa-users
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
http://www.locationtech.org/mailman/listinfo/geomesa-users