summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo/logging
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-04-14 14:09:45 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-04-14 14:09:45 +0000
commitc5028b6b2d70cd5ab1a051195ade47bd6fec72f9 (patch)
tree04c17aeea1c0c5e3863a46876f83c693b33ce73c /src/main/java/com/amazon/carbonado/repo/logging
parentacbacf8fe5550bad7d98c7a8b4aa5b05e91f1263 (diff)
Added "after" method and removed fetchAfter slice method.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/logging')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java
index 56e4e33..e737288 100644
--- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java
+++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java
@@ -129,6 +129,10 @@ class LoggingQuery<S extends Storable> implements Query<S> {
return newInstance(mQuery.orderBy(strings));
}
+ public Query<S> after(S start) throws FetchException {
+ return newInstance(mQuery.after(start));
+ }
+
public Cursor<S> fetch() throws FetchException {
Log log = mStorage.mLog;
if (log.isEnabled()) {
@@ -154,15 +158,6 @@ class LoggingQuery<S extends Storable> implements Query<S> {
return mQuery.fetchAfter(start);
}
- public Cursor<S> fetchAfter(S start, long from, Long to) throws FetchException {
- Log log = mStorage.mLog;
- if (log.isEnabled()) {
- log.write("Query.fetchAfter(start, from, to) on " + this + ", start: " + start +
- ", from: " + from + ", to: " + to);
- }
- return mQuery.fetchAfter(start);
- }
-
public S loadOne() throws FetchException {
Log log = mStorage.mLog;
if (log.isEnabled()) {