diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2008-05-24 19:11:23 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2008-05-24 19:11:23 +0000 |
commit | ba9be47830210ca040a7245ac0753a6efe865430 (patch) | |
tree | 52f09a02ec0499b3e2e304d3bc9713d973179df8 /src | |
parent | 74fd3c55ee0a6d380b51e84ca9697d4d50cbf654 (diff) |
Standard exists implementation fetches a one record slice.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/amazon/carbonado/qe/StandardQuery.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java index e2081d6..736f31f 100644 --- a/src/main/java/com/amazon/carbonado/qe/StandardQuery.java +++ b/src/main/java/com/amazon/carbonado/qe/StandardQuery.java @@ -340,7 +340,7 @@ public abstract class StandardQuery<S extends Storable> extends AbstractQuery<S> }
public boolean exists() throws FetchException {
- Cursor<S> cursor = fetch();
+ Cursor<S> cursor = fetchSlice(0L, 1L);
try {
return cursor.skipNext(1) > 0;
} finally {
|