Splitting on Date/Calendar field

Date/Calendar properties can be split based on either the complete date (string value yyyy-mm-dd) or the yyyy -> mm --> dd format.
  • Split data belonging to a single date in one folder by default. Here nodes belonging to 2011-06-13 will go to a folder 2011-06-13/

  • Split data belonging to a year in one folder.
    <propertyAnnotations> 
        <property name="dataField"> 
            <fieldAnnotation> 
                <splitPattern>yyyy</splitPattern> 
            </fieldAnnotation> 
        </property> 
    </propertyAnnotations>

    Here nodes belonging to 2011-06-13 will go to a folder 2011/.

  • split data belonging to a month in a year in a folder. There is a folder for year and subfolders for month inside them.

    <propertyAnnotations> 
        <property name="dataField"> 
            <fieldAnnotation> 
                <splitPattern>yyyy-mm</splitPattern> 
            </fieldAnnotation> 
        </property> 
    </propertyAnnotations>

    Here nodes belonging to 2011-06-13 will go to a folder 2011/06/.

  • split data belonging to a date in folder that is subdivided to year, month, and day folders.

    <propertyAnnotations> 
        <property name="dataField"> 
            <fieldAnnotation> 
                <splitPattern>yyyy-mm-dd</splitPattern> 
            </fieldAnnotation> 
        </property> 
    </propertyAnnotations>

    Here nodes belonging to 2011-06-13 will go to a folder 2011/06/13/.

// Ethnio survey code removed