alfonsonishikawa commented on pull request #231:
URL: https://github.com/apache/gora/pull/231#issuecomment-719066358


   > Since MongoDB has collections instead of tables and these collections do 
not necessarily have a schema, I decided to use random collection document's 
key set.
   
   I see that in the gora-mongodb-mapping.xml from tests we have:
   ```
       <class name="org.apache.gora.examples.generated.Employee" 
keyClass="java.lang.String" document="frontier">
           <field name="name" docfield="name" type="string"/>
           <field name="dateOfBirth" docfield="dateOfBirth" type="int64"/>
           <field name="ssn" docfield="ssn" type="string"/>
           <field name="value" docfield="value" type="string"/>
           <field name="salary" docfield="salary" type="int32"/>
           <field name="boss" docfield="boss" type="document"/>
           <field name="webpage" docfield="webpage" type="document"/>
       </class>
   
       <class name="org.apache.gora.examples.generated.WebPage" 
keyClass="java.lang.String" document="webpage">
           <field name="url" docfield="url" type="string"/>
           <field name="content" docfield="content" type="binary"/>
           <field name="parsedContent" docfield="pContent" type="list"/>
           <field name="outlinks" docfield="links.out" type="document"/>
           <field name="headers" docfield="headers" type="document"/>
           <field name="metadata" docfield="metadata" type="document"/>
           <field name="byteData" docfield="byteData" type="document"/>
           <field name="stringData" docfield="stringData" type="document"/>
       </class>
   
       <class name="org.apache.gora.examples.generated.TokenDatum" 
keyClass="java.lang.String" document="TokenDatum">
           <field name="count" docfield="count" type="int32"/>
       </class>
   ```
   so, there is something like "fields" with type? The document keyset you get 
are those names in "docfield="? is it possible to get the "type" too, if any?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to