public class RDBDocumentStoreJDBC extends Object
RDBDocumentStore.| Constructor and Description |
|---|
RDBDocumentStoreJDBC(RDBDocumentStoreDB dbInfo,
RDBDocumentSerializer ser,
int queryHitsLimit,
int queryTimeLimit) |
public RDBDocumentStoreJDBC(RDBDocumentStoreDB dbInfo, RDBDocumentSerializer ser, int queryHitsLimit, int queryTimeLimit)
public boolean appendingUpdate(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String id, Long modified, boolean setModifiedConditionally, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String appendData) throws SQLException
SQLExceptionpublic int delete(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, List<String> allIds) throws SQLException
SQLExceptionpublic int delete(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, Map<String,Long> toDelete) throws SQLException
SQLExceptionpublic int deleteWithCondition(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, List<RDBDocumentStore.QueryCondition> conditions) throws SQLException, DocumentStoreException
SQLExceptionDocumentStoreExceptionpublic long determineServerTimeDifferenceMillis(Connection connection)
public <T extends Document> Set<String> insert(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, List<T> documents) throws SQLException
SQLExceptionpublic <T extends Document> Set<String> update(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, List<T> documents, boolean upsert) throws SQLException
If the upsert parameter is set to true, the method will also try to insert new documents, those
which modcount equals to 1.
The order of applying updates will be different than order of the passed list, so there shouldn't be two
updates related to the same document. An IllegalArgumentException will be thrown if there are.
connection - JDBC connectiontmd - Table metadatadocuments - List of documents to updateupsert - Insert new documentsSQLException@NotNull public @NotNull List<RDBRow> query(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String minId, String maxId, List<String> excludeKeyPatterns, List<RDBDocumentStore.QueryCondition> conditions, int limit) throws SQLException
SQLExceptionpublic long getLong(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String aggregate, String field, String minId, String maxId, List<String> excludeKeyPatterns, List<RDBDocumentStore.QueryCondition> conditions) throws SQLException
SQLException@NotNull public @NotNull Iterator<RDBRow> queryAsIterator(RDBConnectionHandler ch, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String minId, String maxId, List<String> excludeKeyPatterns, List<RDBDocumentStore.QueryCondition> conditions, int limit, String sortBy) throws SQLException
SQLExceptionpublic List<RDBRow> read(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, Collection<String> allKeys) throws SQLException
SQLException@Nullable public @Nullable RDBRow read(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String id, long lastmodcount, long lastmodified) throws SQLException
SQLExceptionpublic boolean update(Connection connection, org.apache.jackrabbit.oak.plugins.document.rdb.RDBDocumentStore.RDBTableMetaData tmd, String id, Long modified, Number hasBinary, Boolean deletedOnce, Long modcount, Long cmodcount, Long oldmodcount, String data) throws SQLException
SQLExceptionCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.