You can select features by feature id using ECQL - but that may not quite
be what you are asking for.

One thing you may consider is making use of the shapefile spatial index
which already partitions the shapefile contents, send each "extractor" down
a different branch of the index? For this level of access you will be using
some of the classes directly - rather than hanging back at the
ShapefileDataStore api.

--
Jody Garnett

2016-01-11 6:30 GMT-08:00 Ronald Gualán Saavedra <
ronald.gua...@ucuenca.edu.ec>:

> Hi geotools folks,
>
> I am working on an ETL experiment using a shapefile as a source data. The
> idea is to extract all the features and metadata from a shapefile to a HDFS
> repository, using Geotools, Sqoop and Hadoop.
>
> The first challenge is partitioning the data of a shapefile. Usually an id
> field is used as a partition column. However since CQL does not seem to
> support queries over the FeatureID, it is not an option.
>
> So, the question here is: What is the best way of partitioning the data of
> a shapefile, taking into consideration that several extractors will be
> concurrently accessing to the shapefile for extracting its corresponding
> partition?
>
> Thanks in advance;
> RonaldG
>
>
>   ­­
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to