Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-34

Lazy loading for maps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 1.0
    • gora-hbase
    • None

    Description

      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>

      Attachments

        Activity

          People

            Unassigned Unassigned
            ylangisc Yves Langisch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: