Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4948

FIWARE.Question.Tech.Data.BigData-Analysis.How to balance out row mode and column mode in cygnus?

    Details

      Description

      Created question in FIWARE Q/A platform on 22-05-2015 at 16:05
      Please, ANSWER this question AT http://stackoverflow.com/questions/30398783/how-to-balance-out-row-mode-and-column-mode-in-cygnus

      Question:
      How to balance out row mode and column mode in cygnus?

      Description:
      I have a weather-station that transmits data each hour. During that hour it makes four recordings (one every 15 minutes). In my current situation I am using attr_persistence=row to store data in my MySql database.

      With row mode I get the default generated columns:

      recvTimeTs | recvTime | entityId | entityType | attrName | attrType | attrValue | attrMd

      But my weather station sends me the following data:

      attrName attrValue

      timeRecorded 14:30:0,22.5.2015
      measurement1 18.799
      measurement2 94.0
      measurement3 1.19

      These attrValue are represented in the database as string.

      Is there a way to leave the three measurements in row mode and switch the timeRecorded to column mode? And if not, then what is my alternative?

      The point of all this is to query the time recorded value, but I cannot query date as long as it is string.

      As a side note: having the weather station send the data as soon as it is recorded (every 15 minutes) is out of the question, firstly because I need to conserve battery power and more importantly because in the case of a problem with the post, it will send all of the recordings at once.

      So if an entire day went without sending any data, the weather station will send all 24*4 readings at once...

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 03:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 03:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 06:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 06:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-24 09:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-24 09:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

          People

          • Assignee:
            frb Francisco Romero
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: