Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

generated cassandra thrift interface with thrift 0.9.0

  • Loading branch information...
commit c529599392a3a19965b7a7ea0e79b41dc5a6a185 1 parent 4cd5b26
@nberardi nberardi authored
Showing with 2,420 additions and 77 deletions.
  1. +10 −1 src/Apache/Cassandra/AuthenticationException.cs
  2. +10 −1 src/Apache/Cassandra/AuthenticationRequest.cs
  3. +10 −1 src/Apache/Cassandra/AuthorizationException.cs
  4. +1,966 −38 src/Apache/Cassandra/Cassandra.cs
  5. +37 −1 src/Apache/Cassandra/CfDef.cs
  6. +14 −1 src/Apache/Cassandra/Column.cs
  7. +11 −1 src/Apache/Cassandra/ColumnDef.cs
  8. +22 −1 src/Apache/Cassandra/ColumnOrSuperColumn.cs
  9. +13 −1 src/Apache/Cassandra/ColumnParent.cs
  10. +17 −1 src/Apache/Cassandra/ColumnPath.cs
  11. +4 −1 src/Apache/Cassandra/Compression.cs
  12. +43 −1 src/Apache/Cassandra/ConsistencyLevel.cs
  13. +2 −1  src/Apache/Cassandra/Constants.cs
  14. +7 −1 src/Apache/Cassandra/CounterColumn.cs
  15. +7 −1 src/Apache/Cassandra/CounterSuperColumn.cs
  16. +7 −1 src/Apache/Cassandra/CqlMetadata.cs
  17. +7 −1 src/Apache/Cassandra/CqlPreparedResult.cs
  18. +11 −1 src/Apache/Cassandra/CqlResult.cs
  19. +1 −1  src/Apache/Cassandra/CqlResultType.cs
  20. +10 −1 src/Apache/Cassandra/CqlRow.cs
  21. +10 −1 src/Apache/Cassandra/Deletion.cs
  22. +7 −1 src/Apache/Cassandra/EndpointDetails.cs
  23. +10 −1 src/Apache/Cassandra/IndexClause.cs
  24. +11 −1 src/Apache/Cassandra/IndexExpression.cs
  25. +1 −1  src/Apache/Cassandra/IndexOperator.cs
  26. +1 −1  src/Apache/Cassandra/IndexType.cs
  27. +11 −1 src/Apache/Cassandra/InvalidRequestException.cs
  28. +7 −1 src/Apache/Cassandra/KeyCount.cs
  29. +15 −1 src/Apache/Cassandra/KeyRange.cs
  30. +14 −1 src/Apache/Cassandra/KeySlice.cs
  31. +10 −1 src/Apache/Cassandra/KsDef.cs
  32. +12 −1 src/Apache/Cassandra/Mutation.cs
  33. +8 −1 src/Apache/Cassandra/NotFoundException.cs
  34. +8 −1 src/Apache/Cassandra/SchemaDisagreementException.cs
  35. +19 −1 src/Apache/Cassandra/SlicePredicate.cs
  36. +23 −1 src/Apache/Cassandra/SliceRange.cs
  37. +13 −1 src/Apache/Cassandra/SuperColumn.cs
  38. +8 −1 src/Apache/Cassandra/TimedOutException.cs
  39. +15 −1 src/Apache/Cassandra/TokenRange.cs
  40. +8 −1 src/Apache/Cassandra/UnavailableException.cs
View
11 src/Apache/Cassandra/AuthenticationException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// invalid authentication request (invalid keyspace, user does not exist, or credentials invalid)
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class AuthenticationException : Exception, TBase
{
private string _why;
@@ -36,7 +43,9 @@ public string Why
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool why;
}
View
11 src/Apache/Cassandra/AuthenticationRequest.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Authentication requests can contain any data, dependent on the IAuthenticator used
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class AuthenticationRequest : TBase
{
private Dictionary<string, string> _credentials;
@@ -36,7 +43,9 @@ public partial class AuthenticationRequest : TBase
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool credentials;
}
View
11 src/Apache/Cassandra/AuthorizationException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// invalid authorization request (user does not have access to keyspace)
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class AuthorizationException : Exception, TBase
{
private string _why;
@@ -36,7 +43,9 @@ public string Why
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool why;
}
View
2,004 src/Apache/Cassandra/Cassandra.cs
1,966 additions, 38 deletions not shown
View
38 src/Apache/Cassandra/CfDef.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CfDef : TBase
{
private string _keyspace;
@@ -338,6 +342,9 @@ public double Dclocal_read_repair_chance
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public double Row_cache_size
{
get
@@ -351,6 +358,9 @@ public double Row_cache_size
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public double Key_cache_size
{
get
@@ -364,6 +374,9 @@ public double Key_cache_size
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public int Row_cache_save_period_in_seconds
{
get
@@ -377,6 +390,9 @@ public int Row_cache_save_period_in_seconds
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public int Key_cache_save_period_in_seconds
{
get
@@ -390,6 +406,9 @@ public int Key_cache_save_period_in_seconds
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public int Memtable_flush_after_mins
{
get
@@ -403,6 +422,9 @@ public int Memtable_flush_after_mins
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public int Memtable_throughput_in_mb
{
get
@@ -416,6 +438,9 @@ public int Memtable_throughput_in_mb
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public double Memtable_operations_in_millions
{
get
@@ -429,6 +454,9 @@ public double Memtable_operations_in_millions
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public double Merge_shards_chance
{
get
@@ -442,6 +470,9 @@ public double Merge_shards_chance
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public string Row_cache_provider
{
get
@@ -455,6 +486,9 @@ public string Row_cache_provider
}
}
+ /// <summary>
+ /// @deprecated
+ /// </summary>
public int Row_cache_keys_to_save
{
get
@@ -470,7 +504,9 @@ public int Row_cache_keys_to_save
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool keyspace;
public bool name;
View
15 src/Apache/Cassandra/Column.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,23 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Basic unit of data within a ColumnFamily.
+ /// @param name, the name by which this column is set and retrieved. Maximum 64KB long.
+ /// @param value. The data associated with the name. Maximum 2GB long, but in practice you should limit it to small numbers of MB (since Thrift must read the full value into memory to operate on it).
+ /// @param timestamp. The timestamp is used for conflict detection/resolution when two columns with same name need to be compared.
+ /// @param ttl. An optional, positive delay (in seconds) after which the column will be automatically deleted.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class Column : TBase
{
private byte[] _name;
@@ -78,7 +89,9 @@ public int Ttl
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool value;
View
12 src/Apache/Cassandra/ColumnDef.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class ColumnDef : TBase
{
private byte[] _name;
@@ -51,6 +55,10 @@ public string Validation_class
}
}
+ /// <summary>
+ ///
+ /// <seealso cref="IndexType"/>
+ /// </summary>
public IndexType Index_type
{
get
@@ -92,7 +100,9 @@ public string Index_name
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool validation_class;
View
23 src/Apache/Cassandra/ColumnOrSuperColumn.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,31 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Methods for fetching rows/records from Cassandra will return either a single instance of ColumnOrSuperColumn or a list
+ /// of ColumnOrSuperColumns (get_slice()). If you're looking up a SuperColumn (or list of SuperColumns) then the resulting
+ /// instances of ColumnOrSuperColumn will have the requested SuperColumn in the attribute super_column. For queries resulting
+ /// in Columns, those values will be in the attribute column. This change was made between 0.3 and 0.4 to standardize on
+ /// single query methods that may return either a SuperColumn or Column.
+ ///
+ /// If the query was on a counter column family, you will either get a counter_column (instead of a column) or a
+ /// counter_super_column (instead of a super_column)
+ ///
+ /// @param column. The Column returned by get() or get_slice().
+ /// @param super_column. The SuperColumn returned by get() or get_slice().
+ /// @param counter_column. The Counterolumn returned by get() or get_slice().
+ /// @param counter_super_column. The CounterSuperColumn returned by get() or get_slice().
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class ColumnOrSuperColumn : TBase
{
private Column _column;
@@ -78,7 +97,9 @@ public CounterSuperColumn Counter_super_column
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column;
public bool super_column;
View
14 src/Apache/Cassandra/ColumnParent.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,22 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// ColumnParent is used when selecting groups of columns from the same ColumnFamily. In directory structure terms, imagine
+ /// ColumnParent as ColumnPath + '/../'.
+ ///
+ /// See also <a href="cassandra.html#Struct_ColumnPath">ColumnPath</a>
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class ColumnParent : TBase
{
private string _column_family;
@@ -50,7 +60,9 @@ public byte[] Super_column
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column_family;
public bool super_column;
View
18 src/Apache/Cassandra/ColumnPath.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,26 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// The ColumnPath is the path to a single column in Cassandra. It might make sense to think of ColumnPath and
+ /// ColumnParent in terms of a directory structure.
+ ///
+ /// ColumnPath is used to looking up a single column.
+ ///
+ /// @param column_family. The name of the CF of the column being looked up.
+ /// @param super_column. The super column name.
+ /// @param column. The column name.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class ColumnPath : TBase
{
private string _column_family;
@@ -64,7 +78,9 @@ public byte[] Column
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column_family;
public bool super_column;
View
5 src/Apache/Cassandra/Compression.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,6 +7,9 @@
namespace Apache.Cassandra
{
+ /// <summary>
+ /// CQL query compression
+ /// </summary>
public enum Compression
{
GZIP = 1,
View
44 src/Apache/Cassandra/ConsistencyLevel.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -7,6 +7,48 @@
namespace Apache.Cassandra
{
+ /// <summary>
+ /// The ConsistencyLevel is an enum that controls both read and write
+ /// behavior based on the ReplicationFactor of the keyspace. The
+ /// different consistency levels have different meanings, depending on
+ /// if you're doing a write or read operation.
+ ///
+ /// If W + R > ReplicationFactor, where W is the number of nodes to
+ /// block for on write, and R the number to block for on reads, you
+ /// will have strongly consistent behavior; that is, readers will
+ /// always see the most recent write. Of these, the most interesting is
+ /// to do QUORUM reads and writes, which gives you consistency while
+ /// still allowing availability in the face of node failures up to half
+ /// of <ReplicationFactor>. Of course if latency is more important than
+ /// consistency then you can use lower values for either or both.
+ ///
+ /// Some ConsistencyLevels (ONE, TWO, THREE) refer to a specific number
+ /// of replicas rather than a logical concept that adjusts
+ /// automatically with the replication factor. Of these, only ONE is
+ /// commonly used; TWO and (even more rarely) THREE are only useful
+ /// when you care more about guaranteeing a certain level of
+ /// durability, than consistency.
+ ///
+ /// Write consistency levels make the following guarantees before reporting success to the client:
+ /// ANY Ensure that the write has been written once somewhere, including possibly being hinted in a non-target node.
+ /// ONE Ensure that the write has been written to at least 1 node's commit log and memory table
+ /// TWO Ensure that the write has been written to at least 2 node's commit log and memory table
+ /// THREE Ensure that the write has been written to at least 3 node's commit log and memory table
+ /// QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes
+ /// LOCAL_QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes, within the local datacenter (requires NetworkTopologyStrategy)
+ /// EACH_QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes in each datacenter (requires NetworkTopologyStrategy)
+ /// ALL Ensure that the write is written to <code>&lt;ReplicationFactor&gt;</code> nodes before responding to the client.
+ ///
+ /// Read consistency levels make the following guarantees before returning successful results to the client:
+ /// ANY Not supported. You probably want ONE instead.
+ /// ONE Returns the record obtained from a single replica.
+ /// TWO Returns the record with the most recent timestamp once two replicas have replied.
+ /// THREE Returns the record with the most recent timestamp once three replicas have replied.
+ /// QUORUM Returns the record with the most recent timestamp once a majority of replicas have replied.
+ /// LOCAL_QUORUM Returns the record with the most recent timestamp once a majority of replicas within the local datacenter have replied.
+ /// EACH_QUORUM Returns the record with the most recent timestamp once a majority of replicas within each datacenter have replied.
+ /// ALL Returns the record with the most recent timestamp once all replicas have replied (implies no replica may be down)..
+ /// </summary>
public enum ConsistencyLevel
{
ONE = 1,
View
3  src/Apache/Cassandra/Constants.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,6 +11,7 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
namespace Apache.Cassandra
{
View
8 src/Apache/Cassandra/CounterColumn.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CounterColumn : TBase
{
private byte[] _name;
@@ -50,7 +54,9 @@ public long Value
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool value;
View
8 src/Apache/Cassandra/CounterSuperColumn.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CounterSuperColumn : TBase
{
private byte[] _name;
@@ -50,7 +54,9 @@ public List<CounterColumn> Columns
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool columns;
View
8 src/Apache/Cassandra/CqlMetadata.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CqlMetadata : TBase
{
private Dictionary<byte[], string> _name_types;
@@ -78,7 +82,9 @@ public string Default_value_type
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name_types;
public bool value_types;
View
8 src/Apache/Cassandra/CqlPreparedResult.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CqlPreparedResult : TBase
{
private int _itemId;
@@ -78,7 +82,9 @@ public List<string> Variable_names
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool itemId;
public bool count;
View
12 src/Apache/Cassandra/CqlResult.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CqlResult : TBase
{
private CqlResultType _type;
@@ -24,6 +28,10 @@ public partial class CqlResult : TBase
private int _num;
private CqlMetadata _schema;
+ /// <summary>
+ ///
+ /// <seealso cref="CqlResultType"/>
+ /// </summary>
public CqlResultType Type
{
get
@@ -78,7 +86,9 @@ public CqlMetadata Schema
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool type;
public bool rows;
View
2  src/Apache/Cassandra/CqlResultType.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
View
11 src/Apache/Cassandra/CqlRow.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Row returned from a CQL query
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class CqlRow : TBase
{
private byte[] _key;
@@ -50,7 +57,9 @@ public List<Column> Columns
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool key;
public bool columns;
View
11 src/Apache/Cassandra/Deletion.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Note that the timestamp is only optional in case of counter deletion.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class Deletion : TBase
{
private long _timestamp;
@@ -64,7 +71,9 @@ public SlicePredicate Predicate
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool timestamp;
public bool super_column;
View
8 src/Apache/Cassandra/EndpointDetails.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class EndpointDetails : TBase
{
private string _host;
@@ -64,7 +68,9 @@ public string Rack
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool host;
public bool datacenter;
View
11 src/Apache/Cassandra/IndexClause.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// @Deprecated: use a KeyRange with row_filter in get_range_slices instead
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class IndexClause : TBase
{
private List<IndexExpression> _expressions;
@@ -64,7 +71,9 @@ public int Count
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool expressions;
public bool start_key;
View
12 src/Apache/Cassandra/IndexExpression.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class IndexExpression : TBase
{
private byte[] _column_name;
@@ -36,6 +40,10 @@ public byte[] Column_name
}
}
+ /// <summary>
+ ///
+ /// <seealso cref="IndexOperator"/>
+ /// </summary>
public IndexOperator Op
{
get
@@ -64,7 +72,9 @@ public byte[] Value
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column_name;
public bool op;
View
2  src/Apache/Cassandra/IndexOperator.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
View
2  src/Apache/Cassandra/IndexType.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
View
12 src/Apache/Cassandra/InvalidRequestException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,20 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Invalid request could mean keyspace or column family does not exist, required parameters are missing, or a parameter is malformed.
+ /// why contains an associated error message.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class InvalidRequestException : Exception, TBase
{
private string _why;
@@ -36,7 +44,9 @@ public string Why
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool why;
}
View
8 src/Apache/Cassandra/KeyCount.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class KeyCount : TBase
{
private byte[] _key;
@@ -50,7 +54,9 @@ public int Count
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool key;
public bool count;
View
16 src/Apache/Cassandra/KeyRange.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,24 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// The semantics of start keys and tokens are slightly different.
+ /// Keys are start-inclusive; tokens are start-exclusive. Token
+ /// ranges may also wrap -- that is, the end token may be less
+ /// than the start one. Thus, a range from keyX to keyX is a
+ /// one-element range, but a range from tokenY to tokenY is the
+ /// full ring.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class KeyRange : TBase
{
private byte[] _start_key;
@@ -106,7 +118,9 @@ public int Count
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool start_key;
public bool end_key;
View
15 src/Apache/Cassandra/KeySlice.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,23 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A KeySlice is key followed by the data it maps to. A collection of KeySlice is returned by the get_range_slice operation.
+ ///
+ /// @param key. a row key
+ /// @param columns. List of data represented by the key. Typically, the list is pared down to only the columns specified by
+ /// a SlicePredicate.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class KeySlice : TBase
{
private byte[] _key;
@@ -50,7 +61,9 @@ public List<ColumnOrSuperColumn> Columns
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool key;
public bool columns;
View
11 src/Apache/Cassandra/KsDef.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,16 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class KsDef : TBase
{
private string _name;
@@ -65,6 +69,9 @@ public string Strategy_class
}
}
+ /// <summary>
+ /// @deprecated, ignored
+ /// </summary>
public int Replication_factor
{
get
@@ -106,7 +113,9 @@ public bool Durable_writes
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool strategy_class;
View
13 src/Apache/Cassandra/Mutation.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,21 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A Mutation is either an insert (represented by filling column_or_supercolumn) or a deletion (represented by filling the deletion attribute).
+ /// @param column_or_supercolumn. An insert to a column or supercolumn (possibly counter column or supercolumn)
+ /// @param deletion. A deletion of a column or supercolumn
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class Mutation : TBase
{
private ColumnOrSuperColumn _column_or_supercolumn;
@@ -50,7 +59,9 @@ public Deletion Deletion
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column_or_supercolumn;
public bool deletion;
View
9 src/Apache/Cassandra/NotFoundException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A specific column was requested that does not exist.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class NotFoundException : Exception, TBase
{
View
9 src/Apache/Cassandra/SchemaDisagreementException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// schemas are not in agreement across all nodes
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class SchemaDisagreementException : Exception, TBase
{
View
20 src/Apache/Cassandra/SlicePredicate.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,28 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A SlicePredicate is similar to a mathematic predicate (see http://en.wikipedia.org/wiki/Predicate_(mathematical_logic)),
+ /// which is described as "a property that the elements of a set have in common."
+ ///
+ /// SlicePredicate's in Cassandra are described with either a list of column_names or a SliceRange. If column_names is
+ /// specified, slice_range is ignored.
+ ///
+ /// @param column_name. A list of column names to retrieve. This can be used similar to Memcached's "multi-get" feature
+ /// to fetch N known column names. For instance, if you know you wish to fetch columns 'Joe', 'Jack',
+ /// and 'Jim' you can pass those column names as a list to fetch all three at once.
+ /// @param slice_range. A SliceRange describing how to range, order, and/or limit the slice.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class SlicePredicate : TBase
{
private List<byte[]> _column_names;
@@ -50,7 +66,9 @@ public SliceRange Slice_range
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool column_names;
public bool slice_range;
View
24 src/Apache/Cassandra/SliceRange.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,32 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A slice range is a structure that stores basic range, ordering and limit information for a query that will return
+ /// multiple columns. It could be thought of as Cassandra's version of LIMIT and ORDER BY
+ ///
+ /// @param start. The column name to start the slice with. This attribute is not required, though there is no default value,
+ /// and can be safely set to '', i.e., an empty byte array, to start with the first column name. Otherwise, it
+ /// must a valid value under the rules of the Comparator defined for the given ColumnFamily.
+ /// @param finish. The column name to stop the slice at. This attribute is not required, though there is no default value,
+ /// and can be safely set to an empty byte array to not stop until 'count' results are seen. Otherwise, it
+ /// must also be a valid value to the ColumnFamily Comparator.
+ /// @param reversed. Whether the results should be ordered in reversed order. Similar to ORDER BY blah DESC in SQL.
+ /// @param count. How many columns to return. Similar to LIMIT in SQL. May be arbitrarily large, but Thrift will
+ /// materialize the whole result into memory before returning it to the client, so be aware that you may
+ /// be better served by iterating through slices by passing the last value of one call in as the 'start'
+ /// of the next instead of increasing 'count' arbitrarily large.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class SliceRange : TBase
{
private byte[] _start;
@@ -78,7 +98,9 @@ public int Count
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool start;
public bool finish;
View
14 src/Apache/Cassandra/SuperColumn.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,22 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A named list of columns.
+ /// @param name. see Column.name.
+ /// @param columns. A collection of standard Columns. The columns within a super column are defined in an adhoc manner.
+ /// Columns within a super column do not have to have matching structures (similarly named child columns).
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class SuperColumn : TBase
{
private byte[] _name;
@@ -50,7 +60,9 @@ public List<Column> Columns
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool name;
public bool columns;
View
9 src/Apache/Cassandra/TimedOutException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// RPC timeout was exceeded. either a node failed mid-operation, or load was too high, or the requested op was too large.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class TimedOutException : Exception, TBase
{
View
16 src/Apache/Cassandra/TokenRange.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,24 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// A TokenRange describes part of the Cassandra ring, it is a mapping from a range to
+ /// endpoints responsible for that range.
+ /// @param start_token The first token in the range
+ /// @param end_token The last token in the range
+ /// @param endpoints The endpoints responsible for the range (listed by their configured listen_address)
+ /// @param rpc_endpoints The endpoints responsible for the range (listed by their configured rpc_address)
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class TokenRange : TBase
{
private string _start_token;
@@ -92,7 +104,9 @@ public List<EndpointDetails> Endpoint_details
public Isset __isset;
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public struct Isset {
public bool start_token;
public bool end_token;
View
9 src/Apache/Cassandra/UnavailableException.cs
@@ -1,5 +1,5 @@
/**
- * Autogenerated by Thrift Compiler (0.8.0)
+ * Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
@@ -11,12 +11,19 @@
using System.IO;
using Thrift;
using Thrift.Collections;
+using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
+
namespace Apache.Cassandra
{
+ /// <summary>
+ /// Not all the replicas required could be created and/or read.
+ /// </summary>
+ #if !SILVERLIGHT
[Serializable]
+ #endif
public partial class UnavailableException : Exception, TBase
{
Please sign in to comment.
Something went wrong with that request. Please try again.