Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] Seeing addfeatures change the fids in a collection

Nope.  I missed that.  Thanks.



On 4/11/17 1:09 PM, Emilio Lahr-Vivaz wrote:
Hi Dave,

Are you setting the provided FID hint? We follow the geotools convention, where we will only use the existing feature ID if the following hint is set in the feature user data:

http://docs.geotools.org/latest/javadocs/org/geotools/factory/Hints.html#USE_PROVIDED_FID

Thanks,

Emilio

On 04/10/2017 08:17 PM, David Boyd wrote:
All:

Another one of my off the wall questions. When I am creating features
I am specifying my own fid.    I gather these all in a collection, then
call addfeatures to persist them to the datastore.

But it looks like the call to: FeatureUtils.copyToWriter in addfeatures is changing the fid.

Below are my variables from an eclipse debugging session.

You can see that the collection as one feature with a fid of "73b6d329...."
in the pasted output below.

But in the fids list populated by toWrite.getIdentifier() has a different fid.

Why would copyToWriter change the fid?

Am I doing something wrong creating the features?

this    GeoMesaFeatureStore  (id=283)
collection    DefaultFeatureCollection  (id=234)
features    SimpleFeatureIteratorImpl  (id=293)
    collection    TreeMap$Values  (id=299)
        [0]    SimpleFeatureImpl  (id=236)
            attributeUserData    null
            featureType    SimpleFeatureTypeImpl  (id=233)
            id    FeatureIdImpl  (id=241)
                fid    "73b6d329-135f-4962-9716-daef5ad6896f" (id=244)
                origionalFid    null
            index    HashMap<K,V>  (id=242)
            userData    HashMap<K,V>  (id=330)
            validating    false
            values    Object[9]  (id=243)
    iterator    TreeMap$ValueIterator  (id=302)
writer    AccumuloAppendFeatureWriter  (id=311)
fids    ArrayList<E>  (id=315)
    [0]    FeatureIdImpl  (id=336)
        fid    "20fa2382-4120-4904-8fa0-b2fe4a71befd" (id=337)
        origionalFid    "1" (id=338)


_______________________________________________
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

--
========= mailto:dboyd@xxxxxxxxxxxxxxxxx ============
David W. Boyd
VP,  Data Solutions
10432 Balls Ford, Suite 240
Manassas, VA 20109
office:   +1-703-552-2862
cell:     +1-703-402-7908
============== http://www.incadencecorp.com/ ============
ISO/IEC JTC1 WG9, editor ISO/IEC 20547 Big Data Reference Architecture
Chair ANSI/INCITS TC Big Data
Co-chair NIST Big Data Public Working Group Reference Architecture
First Robotic Mentor - FRC, FTC - www.iliterobotics.org
Board Member- USSTEM Foundation - www.usstem.org

The information contained in this message may be privileged
and/or confidential and protected from disclosure.
If the reader of this message is not the intended recipient
or an employee or agent responsible for delivering this message
to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication
is strictly prohibited.  If you have received this communication
in error, please notify the sender immediately by replying to
this message and deleting the material from any computer.



Back to the top