edu.yale.cs.hadoopdb.catalog.xml
Class Relation

java.lang.Object
  extended by edu.yale.cs.hadoopdb.catalog.xml.Relation

public class Relation
extends java.lang.Object

Java class for Relation complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Relation">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence maxOccurs="unbounded">
         <element name="Partitions" type="{http://edu.yale.cs.db.hadoop/DBConfigurationSchema}Partition"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.lang.String id
           
protected  java.util.List<Partition> partitions
           
 
Constructor Summary
Relation()
           
 
Method Summary
 java.lang.String getId()
          Gets the value of the id property.
 java.util.List<Partition> getPartitions()
          Gets the value of the partitions property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected java.lang.String id

partitions

protected java.util.List<Partition> partitions
Constructor Detail

Relation

public Relation()
Method Detail

getId

public java.lang.String getId()
Gets the value of the id property.

Returns:
possible object is String

getPartitions

public java.util.List<Partition> getPartitions()
Gets the value of the partitions property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the partitions property.

For example, to add a new item, do as follows:

    getPartitions().add(newItem);
 

Objects of the following type(s) are allowed in the list Partition


setId

public void setId(java.lang.String value)
Sets the value of the id property.

Parameters:
value - allowed object is String