Class OnDemandQuery

    • Constructor Detail

      • OnDemandQuery

        public OnDemandQuery()
    • Method Detail

      • query

        public static OnDemandQuery query()
        Builder method to get a new on-demand query instance
        Returns:
        a new OnDemandQuery instance
      • from

        public OnDemandQuery from​(InputStore inputStore)
        Builder method to set input store to the on-demand query
        Parameters:
        inputStore - inputStore for the on-demand query
        Returns:
        updated on-demand query
      • getInputStore

        public InputStore getInputStore()
        Getter for the input store
        Returns:
        inputStore
      • select

        public OnDemandQuery select​(Selector selector)
        Builder method to set a selector to the on-demand query
        Parameters:
        selector - selector for the on-demand query
        Returns:
        updated on-demand query
      • outStream

        public OnDemandQuery outStream​(OutputStream outputStream)
        Builder method to set an outPutStream to the on-demand query
        Parameters:
        outputStream - outPutStream for the on-demand query
        Returns:
        updated on-demand query
      • deleteBy

        public void deleteBy​(String outputTableId,
                             Expression onDeletingExpression)
        Method to set a deleteStream as the outputStream of the on-demand query
        Parameters:
        outputTableId - id of the table which is going to be queried
        onDeletingExpression - expression for the delete operation defined in the on-demand query
      • updateBy

        public void updateBy​(String outputTableId,
                             Expression onUpdateExpression)
        Method to set an updateStream as the outputStream of the on-demand query
        Parameters:
        outputTableId - id of the table which is going to be queried
        onUpdateExpression - expression for the update operation defined in the on-demand query
      • updateBy

        public void updateBy​(String outputTableId,
                             UpdateSet updateSetAttributes,
                             Expression onUpdateExpression)
        Method to set an updateStream as the outputStream of the on-demand query
        Parameters:
        outputTableId - id of the table which is going to be queried
        updateSetAttributes - updateSet for the attributes which are going to be updated.
        onUpdateExpression - expression for the update operation defined in the on-demand query
      • updateOrInsertBy

        public void updateOrInsertBy​(String outputTableId,
                                     UpdateSet updateSetAttributes,
                                     Expression onUpdateExpression)
        Method to set an updateOrInsertStream as the outputStream of the on-demand query
        Parameters:
        outputTableId - id of the table which is going to be queried
        updateSetAttributes - updateSet for the attributes which are going to be updated.
        onUpdateExpression - expression for the update or insert operation defined in the on-demand query
      • getSelector

        public Selector getSelector()
        Getter method to get the selector of the on-demand query
        Returns:
        selector of the on-demand query
      • getOutputStream

        public OutputStream getOutputStream()
        Getter method to get the outputStream of the on-demand query
        Returns:
        outputStream of the on-demand query
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object