Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geowave-dev] How to create DataAdapter instance

Hi Whitney,

yes. with you suggestions i think it worked and not any exceptions throws. But all the objects returned by AccumuloUtils.decodeRow() was NULL. i will looking to that and let you know.

code is available here[1].

[1] https://github.com/ruks/geowave/blob/GEOWAVE-Monitor-GSOC15/services/webapp/src/main/java/mil/nga/giat/geowave/service/healthimpl/GeospatialExtent.java#L216

Thanks and Regards.


Rukshan Chathuranga.
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa. Sri Lanka.

On Sat, Jul 25, 2015 at 1:08 AM, Whitney O'Meara <james.w.omeara@xxxxxxxxx> wrote:
That's just the interface...  If you inspect the code just a little, you'll see that there is an Accumulo implementation: AccumuloAdapterStore 

Does that make sense?

On Fri, Jul 24, 2015 at 3:31 PM, Rukshan Chathuranga <rcrukshan17@xxxxxxxxx> wrote:
Hi,

i can get the adapter id. but get the adapter i was unable to create AdapterStore. instance.

Thanks and Regards.


Rukshan Chathuranga.
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa. Sri Lanka.

On Sat, Jul 25, 2015 at 12:51 AM, Whitney O'Meara <james.w.omeara@xxxxxxxxx> wrote:
Why are you creating a feature type manually if you're scanning the table?  If you are scanning the table, you should use the data adapter id present in the row to retrieve the data adapter (using the data adapter store) from the geowave metadata table.  Then, if you wanted to, you could get the actual feature type definition for your data from the feature data adapter. 

On Fri, Jul 24, 2015 at 3:08 PM, Rukshan Chathuranga <rcrukshan17@xxxxxxxxx> wrote:
Hi Whitney,

nope. i used this code scanned data from accumulo table. 

Thanks and Regards.


Rukshan Chathuranga.
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa. Sri Lanka.

On Fri, Jul 24, 2015 at 11:50 PM, Whitney O'Meara <james.w.omeara@xxxxxxxxx> wrote:
Also, are you doing this just to generate some fake data?  You definitely are going to want to use the approach I mentioned previously when it comes to generating simple features from the rows returned by Accumulo (i.e. for the part where you compute the convex hull). 

On Fri, Jul 24, 2015 at 2:17 PM, Whitney O'Meara <james.w.omeara@xxxxxxxxx> wrote:

On Fri, Jul 24, 2015 at 2:03 PM, Rukshan Chathuranga <rcrukshan17@xxxxxxxxx> wrote:
Hi Whitney,

i create AdapterStore using following code. but it give me an exception.

AdapterStore s = (AdapterStore) new FeatureDataAdapter(createPointFeatureType());

protected static SimpleFeatureType createPointFeatureType() {

final SimpleFeatureTypeBuilder builder = new SimpleFeatureTypeBuilder();
final AttributeTypeBuilder ab = new AttributeTypeBuilder();

builder.setName("Point");

builder.add(ab.binding(Geometry.class).nillable(false).buildDescriptor("geometry"));
builder.add(ab.binding(Date.class).nillable(true).buildDescriptor("TimeStamp"));
builder.add(ab.binding(Double.class).nillable(false).buildDescriptor("Latitude"));
builder.add(ab.binding(Double.class).nillable(false).buildDescriptor("Longitude"));
builder.add(ab.binding(String.class).nillable(true).buildDescriptor("TrajectoryID"));
builder.add(ab.binding(String.class).nillable(true).buildDescriptor("Comment"));

return builder.buildFeatureType();
}

Thanks and Regards.


Rukshan Chathuranga.
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa. Sri Lanka.

On Thu, Jul 23, 2015 at 9:34 PM, Whitney O'Meara <james.w.omeara@xxxxxxxxx> wrote:
For your particular situation, you need to use AccumuloRowId on the entries that are returned by your scan.  Using this you can get the data adapter id for each particular entry that you're processing.  Using that data adapter id, you can recall the data adapter using AdapterStore

Make sense?

On Thu, Jul 23, 2015 at 11:23 AM, Rukshan Chathuranga <rcrukshan17@xxxxxxxxx> wrote:
Hi,

does any one know how to create DataAdapter instance for AccumuloUtils.decodeRow(key,value,adaptor,index)

Thanks and Regards.

Rukshan Chathuranga.
Department Of Computer Science & Engineering,
Faculty Of Engineering,
University Of Moratuwa. Sri Lanka.










Back to the top