Class MessageStore

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.ojai.store.DocumentStore

    public class MessageStore
    extends java.lang.Object
    implements org.ojai.store.DocumentStore
    • Constructor Summary

      Constructors 
      Constructor Description
      MessageStore​(java.lang.String streamPathInMapRFS, org.apache.hadoop.conf.Configuration conf, java.lang.String... topics)  
      MessageStore​(java.lang.String streamPathInMapRFS, org.apache.hadoop.conf.Configuration conf, java.util.regex.Pattern topicRegex)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beginTrackingWrites()  
      void beginTrackingWrites​(java.lang.String previousContext)  
      boolean checkAndDelete​(java.lang.String _id, org.ojai.store.QueryCondition condition)  
      boolean checkAndDelete​(org.ojai.Value _id, org.ojai.store.QueryCondition condition)  
      boolean checkAndMutate​(java.lang.String _id, org.ojai.store.QueryCondition condition, org.ojai.store.DocumentMutation mutation)  
      boolean checkAndMutate​(org.ojai.Value _id, org.ojai.store.QueryCondition condition, org.ojai.store.DocumentMutation m)  
      boolean checkAndReplace​(java.lang.String _id, org.ojai.store.QueryCondition condition, org.ojai.Document doc)  
      boolean checkAndReplace​(org.ojai.Value _id, org.ojai.store.QueryCondition condition, org.ojai.Document doc)  
      void clearTrackedWrites()  
      void close()  
      void delete​(java.lang.String _id)  
      void delete​(org.ojai.Document doc)  
      void delete​(org.ojai.Document doc, java.lang.String fieldAsKey)  
      void delete​(org.ojai.Document doc, org.ojai.FieldPath fieldAsKey)  
      void delete​(org.ojai.DocumentStream stream)  
      void delete​(org.ojai.DocumentStream stream, java.lang.String fieldAsKey)  
      void delete​(org.ojai.DocumentStream stream, org.ojai.FieldPath fieldAsKey)  
      void delete​(org.ojai.Value _id)  
      java.lang.String endTrackingWrites()  
      org.ojai.DocumentStream find()  
      org.ojai.DocumentStream find​(java.lang.String... paths)  
      org.ojai.DocumentStream find​(org.ojai.FieldPath... paths)  
      org.ojai.store.QueryResult find​(org.ojai.store.Query query)  
      org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c)  
      org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c, java.lang.String... paths)  
      org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c, org.ojai.FieldPath... paths)  
      org.ojai.Document findById​(java.lang.String _id)  
      org.ojai.Document findById​(java.lang.String _id, java.lang.String... fieldPaths)  
      org.ojai.Document findById​(java.lang.String _id, org.ojai.FieldPath... fieldPaths)  
      org.ojai.Document findById​(java.lang.String _id, org.ojai.store.QueryCondition condition)  
      org.ojai.Document findById​(java.lang.String _id, org.ojai.store.QueryCondition c, java.lang.String... fieldPaths)  
      org.ojai.Document findById​(java.lang.String _id, org.ojai.store.QueryCondition condition, org.ojai.FieldPath... fieldPaths)  
      org.ojai.Document findById​(org.ojai.Value _id)  
      org.ojai.Document findById​(org.ojai.Value _id, java.lang.String... fieldPaths)  
      org.ojai.Document findById​(org.ojai.Value _id, org.ojai.FieldPath... fieldPaths)  
      org.ojai.Document findById​(org.ojai.Value _id, org.ojai.store.QueryCondition condition)  
      org.ojai.Document findById​(org.ojai.Value _id, org.ojai.store.QueryCondition condition, java.lang.String... fieldPaths)  
      org.ojai.Document findById​(org.ojai.Value _id, org.ojai.store.QueryCondition condition, org.ojai.FieldPath... fieldPaths)  
      org.ojai.DocumentStream findQuery​(java.lang.String queryJSON)  
      org.ojai.DocumentStream findQuery​(org.ojai.store.Query query)  
      void flush()  
      int getNumSplits()  
      void increment​(java.lang.String _id, java.lang.String field, byte inc)  
      void increment​(java.lang.String _id, java.lang.String field, double inc)  
      void increment​(java.lang.String _id, java.lang.String field, float inc)  
      void increment​(java.lang.String _id, java.lang.String field, int inc)  
      void increment​(java.lang.String _id, java.lang.String field, long inc)  
      void increment​(java.lang.String _id, java.lang.String field, short inc)  
      void increment​(java.lang.String _id, java.lang.String field, java.math.BigDecimal inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, byte inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, double inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, float inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, int inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, long inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, short inc)  
      void increment​(org.ojai.Value _id, java.lang.String field, java.math.BigDecimal inc)  
      void insert​(java.lang.String _id, org.ojai.Document doc)  
      void insert​(org.ojai.Document doc)  
      void insert​(org.ojai.Document doc, java.lang.String fieldAsKey)  
      void insert​(org.ojai.Document doc, org.ojai.FieldPath fieldAsKey)  
      void insert​(org.ojai.DocumentStream stream)  
      void insert​(org.ojai.DocumentStream stream, java.lang.String fieldAsKey)  
      void insert​(org.ojai.DocumentStream stream, org.ojai.FieldPath fieldAsKey)  
      void insert​(org.ojai.Value _id, org.ojai.Document doc)  
      void insertOrReplace​(java.lang.String _id, org.ojai.Document r)  
      void insertOrReplace​(org.ojai.Document doc)  
      void insertOrReplace​(org.ojai.Document doc, java.lang.String fieldAsKey)  
      void insertOrReplace​(org.ojai.Document doc, org.ojai.FieldPath fieldAsKey)  
      void insertOrReplace​(org.ojai.DocumentStream stream)  
      void insertOrReplace​(org.ojai.DocumentStream stream, java.lang.String fieldAsKey)  
      void insertOrReplace​(org.ojai.DocumentStream stream, org.ojai.FieldPath fieldAsKey)  
      void insertOrReplace​(org.ojai.Value _id, org.ojai.Document doc)  
      boolean isReadOnly()  
      void replace​(java.lang.String _id, org.ojai.Document doc)  
      void replace​(org.ojai.Document doc)  
      void replace​(org.ojai.Document doc, java.lang.String fieldAsKey)  
      void replace​(org.ojai.Document doc, org.ojai.FieldPath fieldAsKey)  
      void replace​(org.ojai.DocumentStream stream)  
      void replace​(org.ojai.DocumentStream stream, java.lang.String fieldAsKey)  
      void replace​(org.ojai.DocumentStream stream, org.ojai.FieldPath fieldAsKey)  
      void replace​(org.ojai.Value _id, org.ojai.Document doc)  
      void update​(java.lang.String _id, org.ojai.store.DocumentMutation mutation)  
      void update​(org.ojai.Value _id, org.ojai.store.DocumentMutation m)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.ojai.store.DocumentStore

        checkAndUpdate, checkAndUpdate
    • Constructor Detail

      • MessageStore

        public MessageStore​(java.lang.String streamPathInMapRFS,
                            org.apache.hadoop.conf.Configuration conf,
                            java.lang.String... topics)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • MessageStore

        public MessageStore​(java.lang.String streamPathInMapRFS,
                            org.apache.hadoop.conf.Configuration conf,
                            java.util.regex.Pattern topicRegex)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • getNumSplits

        public int getNumSplits()
      • isReadOnly

        public boolean isReadOnly()
        Specified by:
        isReadOnly in interface org.ojai.store.DocumentStore
      • flush

        public void flush()
                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        flush in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find()
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find​(java.lang.String... paths)
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find​(org.ojai.FieldPath... paths)
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c)
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c,
                                            java.lang.String... paths)
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.DocumentStream find​(org.ojai.store.QueryCondition c,
                                            org.ojai.FieldPath... paths)
                                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • find

        public org.ojai.store.QueryResult find​(org.ojai.store.Query query)
                                        throws org.ojai.store.exceptions.StoreException
        Specified by:
        find in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findQuery

        public org.ojai.DocumentStream findQuery​(org.ojai.store.Query query)
                                          throws org.ojai.store.exceptions.StoreException
        Specified by:
        findQuery in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findQuery

        public org.ojai.DocumentStream findQuery​(java.lang.String queryJSON)
                                          throws org.ojai.store.exceptions.StoreException
        Specified by:
        findQuery in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • close

        public void close()
                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.Document doc)
                             throws org.ojai.store.exceptions.StoreException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.Value _id,
                                    org.ojai.Document doc)
                             throws org.ojai.store.exceptions.StoreException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.Document doc,
                                    org.ojai.FieldPath fieldAsKey)
                             throws org.ojai.store.exceptions.StoreException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.Document doc,
                                    java.lang.String fieldAsKey)
                             throws org.ojai.store.exceptions.StoreException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.DocumentStream stream)
                             throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.DocumentStream stream,
                                    org.ojai.FieldPath fieldAsKey)
                             throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • insertOrReplace

        public void insertOrReplace​(org.ojai.DocumentStream stream,
                                    java.lang.String fieldAsKey)
                             throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • update

        public void update​(org.ojai.Value _id,
                           org.ojai.store.DocumentMutation m)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        update in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(org.ojai.Value _id)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(org.ojai.Document doc)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(org.ojai.Document doc,
                           org.ojai.FieldPath fieldAsKey)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(org.ojai.Document doc,
                           java.lang.String fieldAsKey)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(org.ojai.DocumentStream stream)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • delete

        public void delete​(org.ojai.DocumentStream stream,
                           org.ojai.FieldPath fieldAsKey)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • delete

        public void delete​(org.ojai.DocumentStream stream,
                           java.lang.String fieldAsKey)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • insert

        public void insert​(org.ojai.Value _id,
                           org.ojai.Document doc)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insert

        public void insert​(org.ojai.Document doc)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insert

        public void insert​(org.ojai.Document doc,
                           org.ojai.FieldPath fieldAsKey)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insert

        public void insert​(org.ojai.Document doc,
                           java.lang.String fieldAsKey)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insert

        public void insert​(org.ojai.DocumentStream stream)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • insert

        public void insert​(org.ojai.DocumentStream stream,
                           org.ojai.FieldPath fieldAsKey)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • insert

        public void insert​(org.ojai.DocumentStream stream,
                           java.lang.String fieldAsKey)
                    throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • replace

        public void replace​(org.ojai.Value _id,
                            org.ojai.Document doc)
                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • replace

        public void replace​(org.ojai.Document doc)
                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • replace

        public void replace​(org.ojai.Document doc,
                            org.ojai.FieldPath fieldAsKey)
                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • replace

        public void replace​(org.ojai.Document doc,
                            java.lang.String fieldAsKey)
                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • replace

        public void replace​(org.ojai.DocumentStream stream)
                     throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • replace

        public void replace​(org.ojai.DocumentStream stream,
                            org.ojai.FieldPath fieldAsKey)
                     throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • replace

        public void replace​(org.ojai.DocumentStream stream,
                            java.lang.String fieldAsKey)
                     throws org.ojai.store.exceptions.MultiOpException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.MultiOpException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              byte inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              short inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              int inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              long inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              float inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              double inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(org.ojai.Value _id,
                              java.lang.String field,
                              java.math.BigDecimal inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndMutate

        public boolean checkAndMutate​(org.ojai.Value _id,
                                      org.ojai.store.QueryCondition condition,
                                      org.ojai.store.DocumentMutation m)
                               throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndMutate in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndDelete

        public boolean checkAndDelete​(org.ojai.Value _id,
                                      org.ojai.store.QueryCondition condition)
                               throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndDelete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndReplace

        public boolean checkAndReplace​(org.ojai.Value _id,
                                       org.ojai.store.QueryCondition condition,
                                       org.ojai.Document doc)
                                throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • endTrackingWrites

        public java.lang.String endTrackingWrites()
                                           throws org.ojai.store.exceptions.StoreException
        Specified by:
        endTrackingWrites in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • beginTrackingWrites

        public void beginTrackingWrites()
                                 throws org.ojai.store.exceptions.StoreException
        Specified by:
        beginTrackingWrites in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • beginTrackingWrites

        public void beginTrackingWrites​(java.lang.String previousContext)
                                 throws org.ojai.store.exceptions.StoreException
        Specified by:
        beginTrackingWrites in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • clearTrackedWrites

        public void clearTrackedWrites()
                                throws org.ojai.store.exceptions.StoreException
        Specified by:
        clearTrackedWrites in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insertOrReplace

        public void insertOrReplace​(java.lang.String _id,
                                    org.ojai.Document r)
                             throws org.ojai.store.exceptions.StoreException
        Specified by:
        insertOrReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • update

        public void update​(java.lang.String _id,
                           org.ojai.store.DocumentMutation mutation)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        update in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • delete

        public void delete​(java.lang.String _id)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        delete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • insert

        public void insert​(java.lang.String _id,
                           org.ojai.Document doc)
                    throws org.ojai.store.exceptions.StoreException
        Specified by:
        insert in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • replace

        public void replace​(java.lang.String _id,
                            org.ojai.Document doc)
                     throws org.ojai.store.exceptions.StoreException
        Specified by:
        replace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              byte inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              short inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              int inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              long inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              float inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              double inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • increment

        public void increment​(java.lang.String _id,
                              java.lang.String field,
                              java.math.BigDecimal inc)
                       throws org.ojai.store.exceptions.StoreException
        Specified by:
        increment in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndMutate

        public boolean checkAndMutate​(java.lang.String _id,
                                      org.ojai.store.QueryCondition condition,
                                      org.ojai.store.DocumentMutation mutation)
                               throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndMutate in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndDelete

        public boolean checkAndDelete​(java.lang.String _id,
                                      org.ojai.store.QueryCondition condition)
                               throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndDelete in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • checkAndReplace

        public boolean checkAndReplace​(java.lang.String _id,
                                       org.ojai.store.QueryCondition condition,
                                       org.ojai.Document doc)
                                throws org.ojai.store.exceptions.StoreException
        Specified by:
        checkAndReplace in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id,
                                          java.lang.String... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id,
                                          org.ojai.FieldPath... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id,
                                          java.lang.String... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id,
                                          org.ojai.FieldPath... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id,
                                          org.ojai.store.QueryCondition condition)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id,
                                          org.ojai.store.QueryCondition condition)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id,
                                          org.ojai.store.QueryCondition c,
                                          java.lang.String... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(java.lang.String _id,
                                          org.ojai.store.QueryCondition condition,
                                          org.ojai.FieldPath... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id,
                                          org.ojai.store.QueryCondition condition,
                                          java.lang.String... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException
      • findById

        public org.ojai.Document findById​(org.ojai.Value _id,
                                          org.ojai.store.QueryCondition condition,
                                          org.ojai.FieldPath... fieldPaths)
                                   throws org.ojai.store.exceptions.StoreException
        Specified by:
        findById in interface org.ojai.store.DocumentStore
        Throws:
        org.ojai.store.exceptions.StoreException