You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Ramesh Reddy <ra...@redhat.com> on 2017/02/06 16:54:59 UTC
Re: Does Olingo (V - 4.3.0) support Group By operation ?
Checkout the Data Aggregation framework [1], and Olingo 4.3 does support this extension.
[1] http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/odata-data-aggregation-ext-v4.0.html
Ramesh..
http://teiid.org
----- Original Message -----
> Hi All,
> I am using Olingo V - 4.3.0. I have implemented basic service with filter
> operation successfully. But however I don't see any support for Group By
> operation in current version.
> So does Olingo provides any support or we have to implement on our own ?
> --
> Thank you.
> Prathamesh Joshi.
> +91 9960 414 777
Re: Does Olingo (V - 4.3.0) support Group By operation ?
Posted by Ramesh Reddy <ra...@redhat.com>.
When I said Olingo supports the Data Aggregation, that means the library support is there to receive the necessary $apply parameters and provide the input to the service to take action.. What you do with it is depends on your service implementation. Olingo is framework to develop your service, not a drop in service. The below what you are showing an annotation that service can use to tell a client if the service supports the aggregation or not.
Ramesh..
http://teiid.org
----- Original Message -----
> Thanks Ramesh,
> I have went through the link. OData says that to enable Aggregation
> Capabilities we need to include certain annotations,
> <EntityContainer Name="SalesData">
> <Annotation Term="Aggregation.ApplySupported" />
> ...
> </EntityContainer>
> And for properties to include in it we need to add PropertyRestrictions
> Something like this,
> <Annotation Term="Aggregation.ApplySupported">
> <Record>
> <PropertyValue Property="PropertyRestrictions" Bool="true" />
> </Record>
> </Annotation>
> But however I am unable to add them using Olingo my code is
> List<CsdlAnnotation> list = new ArrayList<CsdlAnnotation>();
> CsdlAnnotation annotationAttribute = new CsdlAnnotation();
> annotationAttribute.setTerm(" Aggregation.ApplySupported ");
> annotationAttribute.setExpression(new
> CsdlConstantExpression(CsdlConstantExpression.ConstantExpressionType.String,
> "true" ));
> list.add(annotationAttribute);
> entityContainer.etAnnotations(list);
> Can not figure out where I am missing.
> --
> Thank you.
> Prathamesh Joshi.
> +91 9960 414 777
> ________________________________________________
> From:"Ramesh Reddy" <ra...@redhat.com>
> Sent:user@olingo.apache.org
> Date:Mon, February 6, 2017 10:24 pm
> Subject:Re: Does Olingo (V - 4.3.0) support Group By operation ?
> Checkout the Data Aggregation framework [1], and Olingo 4.3 does support this
> extension.
> [1]
> http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/odata-data-aggregation-ext-v4.0.html
> Ramesh..
> http://teiid.org
> ----- Original Message -----
> > Hi All,
>
> > I am using Olingo V - 4.3.0. I have implemented basic service with filter
> > operation successfully. But however I don't see any support for Group By
> > operation in current version.
>
> > So does Olingo provides any support or we have to implement on our own ?
>
> > --
>
> > Thank you.
>
> > Prathamesh Joshi.
>
> > +91 9960 414 777
>
Re: Does Olingo (V - 4.3.0) support Group By operation ?
Posted by "Prathamesh Joshi." <pr...@vrhythmstech.com>.
Thanks Ramesh,
I have went through the link. OData says that to enable Aggregation
Capabilities we need to include certain annotations,<EntityContainer
Name="SalesData"> <Annotation Term="Aggregation.ApplySupported"
/> ...</EntityContainer>
And for
properties to include in it we need to add PropertyRestrictions
Something like
this,<Annotation
Term="Aggregation.ApplySupported">
<Record> <PropertyValue
Property="PropertyRestrictions" Bool="true"
/>
</Record>
</Annotation>
But however I am
unable to add them using Olingo my code is
List<CsdlAnnotation> list = new
ArrayList<CsdlAnnotation>();
CsdlAnnotation annotationAttribute = new CsdlAnnotation();
annotationAttribute.setTerm("Aggregation.ApplySupported");
annotationAttribute.setExpression(new
CsdlConstantExpression(CsdlConstantExpression.ConstantExpressionType.String,
"true"));
list.add(annotationAttribute);
entityContainer.etAnnotations(list);
Can not figure out where I am missing.
--
Thank you.
Prathamesh Joshi.
+91 9960 414 777
________________________________________________
From:"Ramesh Reddy" <ra...@redhat.com>
Sent:user@olingo.apache.org
Date:Mon, February 6, 2017 10:24 pm
Subject:Re: Does Olingo (V - 4.3.0) support Group By operation ?
Checkout the Data Aggregation framework [1], and Olingo 4.3 does
support this extension.
[1] http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/odata-data-aggregation-ext-v4.0.html
Ramesh..
http://teiid.org
Hi All,
I am using Olingo V - 4.3.0. I have implemented basic
service with filter operation successfully. But however I don't see any
support for Group By operation in current version.
So does Olingo provides any support or we have to implement on our own
?
--
Thank you.
Prathamesh Joshi.
+91 9960 414 777