[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [geomesa-users] Creating Attribute Indexes | 
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?