You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@gora.apache.org by "Yves Langisch (JIRA)" <ji...@apache.org> on 2011/04/07 08:27:05 UTC
[jira] [Created] (GORA-34) Lazy loading for maps
Lazy loading for maps
---------------------
Key: GORA-34
URL: https://issues.apache.org/jira/browse/GORA-34
Project: Gora
Issue Type: Improvement
Components: storage-hbase
Reporter: Yves Langisch
I mainly use a big map for each row in my hbase project. So my avro schema looks as follows:
{
"type": "record",
"name": "Request",
"namespace": "ch.test.generated",
"fields" : [
{
"name": "data",
"type": {
"type": "map",
"values": "long"
}
}
]
}
As far as I could see the whole map is read from hbase whenever I get a row. Since I'm adding many map entries over time I would like to see some kind of lazy loading when accessing the map. A good place to specify this behavior would be the mapping file:
<gora-orm>
<class name="ch.test.generated.Request" keyClass="java.lang.Long" table="RequestLog">
<field name="data" family="dimension" lazy="true"/>
</class>
</gora-orm>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GORA-34) Lazy loading for maps
Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris A. Mattmann updated GORA-34:
----------------------------------
Fix Version/s: 0.2-incubating
> Lazy loading for maps
> ---------------------
>
> Key: GORA-34
> URL: https://issues.apache.org/jira/browse/GORA-34
> Project: Gora
> Issue Type: Improvement
> Components: storage-hbase
> Reporter: Yves Langisch
> Fix For: 0.2-incubating
>
>
> I mainly use a big map for each row in my hbase project. So my avro schema looks as follows:
> {
> "type": "record",
> "name": "Request",
> "namespace": "ch.test.generated",
> "fields" : [
> {
> "name": "data",
> "type": {
> "type": "map",
> "values": "long"
> }
> }
> ]
> }
> As far as I could see the whole map is read from hbase whenever I get a row. Since I'm adding many map entries over time I would like to see some kind of lazy loading when accessing the map. A good place to specify this behavior would be the mapping file:
> <gora-orm>
> <class name="ch.test.generated.Request" keyClass="java.lang.Long" table="RequestLog">
> <field name="data" family="dimension" lazy="true"/>
> </class>
> </gora-orm>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (GORA-34) Lazy loading for maps
Posted by "Chris A. Mattmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/GORA-34?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris A. Mattmann updated GORA-34:
----------------------------------
Fix Version/s: (was: 0.2-incubating)
0.3-incubating
- push to 0.3
> Lazy loading for maps
> ---------------------
>
> Key: GORA-34
> URL: https://issues.apache.org/jira/browse/GORA-34
> Project: Gora
> Issue Type: Improvement
> Components: storage-hbase
> Reporter: Yves Langisch
> Fix For: 0.3-incubating
>
>
> I mainly use a big map for each row in my hbase project. So my avro schema looks as follows:
> {
> "type": "record",
> "name": "Request",
> "namespace": "ch.test.generated",
> "fields" : [
> {
> "name": "data",
> "type": {
> "type": "map",
> "values": "long"
> }
> }
> ]
> }
> As far as I could see the whole map is read from hbase whenever I get a row. Since I'm adding many map entries over time I would like to see some kind of lazy loading when accessing the map. A good place to specify this behavior would be the mapping file:
> <gora-orm>
> <class name="ch.test.generated.Request" keyClass="java.lang.Long" table="RequestLog">
> <field name="data" family="dimension" lazy="true"/>
> </class>
> </gora-orm>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira