Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
public interface IPartialDataStore extends OnDemandStore {

    /**
     * To be used with any simple AIDA object that has no
     * internal structure, like: ICloud, IDataPointSet, IHstogram
     */

    IPatialData partialData(Object aidaObject, int row);


    /**
     * To be used with AIDA objects that has internal structure,
     * like: ITuple
     */

    IComplexPatialData complexPartialData(Object aidaObject, String pathInObject, int[] rows);

}

public interface IPatialData {

    int startRowstartIndex();
    int endRow endIndex();
    String type();
    Object data();

}

public interface IComplexPatialData {

    int[] startRowsstartIndices();
    int[] endRowsendIndices();
    String pathInObject();
    String type();
    Object data();

}

Wiki Markup
Main problem with this approach is that AIDA object that requested the partial data does not know what is it getting back - it would need to cast generic Object to something specific, like ICloud, double\[\], etc.