[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [geomesa-users] Creating Attribute Indexes | 
Yeah, it took me a while to find it myself. This question has come up a 
few times recently - we'll reorganize the docs a bit to make it easier 
to find.
Thanks,
On 02/14/2017 05:34 PM, David Boyd wrote:
Emilio:
   Thanks.  Don't know how I missed that example.
Wasn't expecting to find that information under Data Management.
On 2/14/17 5:22 PM, Emilio Lahr-Vivaz wrote:
Hi David,
You can set the index hint as user data for the attribute you want 
indexed. Since you're using a SimpleFeatureType builder, you can set 
the hints after building the simple feature type, but before calling 
createSchema. The process is described here (your use case would be 
the second example):
http://www.geomesa.org/documentation/user/accumulo/data_management.html#adding-attribute-indices 
Thanks,
Emilio
On 02/14/2017 05:04 PM, David Boyd wrote:
This is probably a simple question and may be stupid.
We are programmatically creating SimpleFeatureTypes from our data 
structures
at run time.  Right now we are using SimpleFeatureTypeBuilder.
In the code we specify the geometry and date fields for that indexing.
We want to create an index on an attribute when we create that 
feature type.
I see where I can use the CLI add-attribute-index command to create 
such an
index.  But in the usage text it states that it runs a mapreduce job 
to create the
index which implies that it can only be created after all data is 
ingested.
Is there a way to programmatically create an index when the 
FeatureType is created?
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or 
unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users