cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r791058 - in /incubator/cassandra/trunk/interface: cassandra.thrift gen-java/org/apache/cassandra/service/Cassandra.java
Date Sat, 04 Jul 2009 05:45:50 GMT
Author: jbellis
Date: Sat Jul  4 05:45:49 2009
New Revision: 791058

URL: http://svn.apache.org/viewvc?rev=791058&view=rev
Log:
default all count args to 100.  patch by jbellis for CASSANDRA-262

Modified:
    incubator/cassandra/trunk/interface/cassandra.thrift
    incubator/cassandra/trunk/interface/gen-java/org/apache/cassandra/service/Cassandra.java

Modified: incubator/cassandra/trunk/interface/cassandra.thrift
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/interface/cassandra.thrift?rev=791058&r1=791057&r2=791058&view=diff
==============================================================================
--- incubator/cassandra/trunk/interface/cassandra.thrift (original)
+++ incubator/cassandra/trunk/interface/cassandra.thrift Sat Jul  4 05:45:49 2009
@@ -101,13 +101,13 @@
 
 
 service Cassandra {
-  list<column_t> get_slice_by_name_range(1:string tablename, 2:string key, 3:string
columnParent, 4:string start, 5:string finish, 6:i32 count=-1)
+  list<column_t> get_slice_by_name_range(1:string tablename, 2:string key, 3:string
columnParent, 4:string start, 5:string finish, 6:i32 count=100)
   throws (1: InvalidRequestException ire, 2: NotFoundException nfe),
   
   list<column_t> get_slice_by_names(1:string tablename, 2:string key, 3:string columnParent,
4:list<string> columnNames)
   throws (1: InvalidRequestException ire, 2: NotFoundException nfe),
   
-  list<column_t> get_slice(1:string tablename, 2:string key, 3:string columnParent,
4:bool isAscending, 5:i32 count)
+  list<column_t> get_slice(1:string tablename, 2:string key, 3:string columnParent,
4:bool isAscending, 5:i32 count=100)
   throws (1: InvalidRequestException ire, 2: NotFoundException nfe),
 
   column_t       get_column(1:string tablename, 2:string key, 3:string columnPath)
@@ -128,7 +128,7 @@
   list<column_t> get_columns_since(1:string tablename, 2:string key, 3:string columnParent,
4:i64 timeStamp)
   throws (1: InvalidRequestException ire, 2: NotFoundException nfe),
 
-  list<superColumn_t> get_slice_super(1:string tablename, 2:string key, 3:string columnFamily,
4:bool isAscending, 5:i32 count)
+  list<superColumn_t> get_slice_super(1:string tablename, 2:string key, 3:string columnFamily,
4:bool isAscending, 5:i32 count=100)
   throws (1: InvalidRequestException ire),
 
   list<superColumn_t> get_slice_super_by_names(1:string tablename, 2:string key, 3:string
columnFamily, 4:list<string> superColumnNames)
@@ -141,7 +141,7 @@
   throws (1: InvalidRequestException ire, 2: UnavailableException ue),
 
   # range query: returns matching keys
-  list<string>   get_key_range(1:string tablename, 2:list<string> columnFamilies=[],
3:string startWith="", 4:string stopAt="", 5:i32 maxResults=1000) throws (1: InvalidRequestException
ire),
+  list<string>   get_key_range(1:string tablename, 2:list<string> columnFamilies=[],
3:string startWith="", 4:string stopAt="", 5:i32 maxResults=100) throws (1: InvalidRequestException
ire),
 
   /////////////////////////////////////////////////////////////////////////////////////
   // The following are beta APIs being introduced for CLI and/or CQL support.        //

Modified: incubator/cassandra/trunk/interface/gen-java/org/apache/cassandra/service/Cassandra.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/interface/gen-java/org/apache/cassandra/service/Cassandra.java?rev=791058&r1=791057&r2=791058&view=diff
==============================================================================
--- incubator/cassandra/trunk/interface/gen-java/org/apache/cassandra/service/Cassandra.java
(original)
+++ incubator/cassandra/trunk/interface/gen-java/org/apache/cassandra/service/Cassandra.java
Sat Jul  4 05:45:49 2009
@@ -1376,7 +1376,7 @@
     }
 
     public get_slice_by_name_range_args() {
-      this.count = -1;
+      this.count = 100;
 
     }
 
@@ -3173,6 +3173,8 @@
     }
 
     public get_slice_args() {
+      this.count = 100;
+
     }
 
     public get_slice_args(
@@ -8325,6 +8327,8 @@
     }
 
     public get_slice_super_args() {
+      this.count = 100;
+
     }
 
     public get_slice_super_args(
@@ -11144,7 +11148,7 @@
 
       this.stopAt = "";
 
-      this.maxResults = 1000;
+      this.maxResults = 100;
 
     }
 



Mime
View raw message