David
There is a utility class in geomesa-util called SftBuilder that allows you to programmatically set indexes. Here's a sample use:
Under the hood, it's setting hints on AttributeDescriptors. You could do that yourself if you didn't want to use the helper class.
Anthony. This is probably a simple question and may be stupid.We are programmatically creating SimpleFeatureTypes from our data structuresat 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 anindex. But in the usage text it states that it runs a mapreduce job to create theindex 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?-- ========= mailto:dboyd@xxxxxxxxxxxxxxxxx ============David W. BoydVP, Data Solutions10432 Balls Ford, Suite 240Manassas, VA 20109office: +1-703-552-2862cell: +1-703-402-7908============== http://www.incadencecorp.com/ ============ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference ArchitectureChair ANSI/INCITS TC Big DataCo-chair NIST Big Data Public Working Group Reference ArchitectureFirst Robotic Mentor - FRC, FTC - www.iliterobotics.orgBoard Member- USSTEM Foundation - www.usstem.orgThe information contained in this message may be privilegedand/or confidential and protected from disclosure.If the reader of this message is not the intended recipientor an employee or agent responsible for delivering this messageto the intended recipient, you are hereby notified that anydissemination, distribution or copying of this communicationis strictly prohibited. If you have received this communicationin error, please notify the sender immediately by replying tothis message and deleting the material from any computer. _______________________________________________geomesa-users mailing listgeomesa-users@xxxxxxxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visithttps://dev.locationtech.org/mailman/listinfo/geomesa-users
|