// get_range_slice public static IEnumerable <IFluentSuperColumnFamily <CompareWith, CompareSubcolumnWith> > Get <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType startKey, BytesType endKey, string startToken, string endToken, int keyCount, IEnumerable <CompareWith> columnNames) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new GetSuperColumnFamilyRangeSlices <CompareWith, CompareSubcolumnWith>(new CassandraKeyRange(startKey, endKey, startToken, endToken, keyCount), new ColumnSlicePredicate(columnNames)); return(family.ExecuteOperation(op)); }
public static IEnumerable <IFluentSuperColumnFamily <CompareWith, CompareSubcolumnWith> > Get <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, IEnumerable <BytesType> keys, CompareWith columnStart, CompareWith columnEnd, bool columnsReversed = false, int columnCount = 100) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new MultiGetSuperColumnFamilySlice <CompareWith, CompareSubcolumnWith>(keys, new RangeSlicePredicate(columnStart, columnEnd, columnsReversed, columnCount)); return(family.ExecuteOperation(op)); }
public static int SuperColumnCount <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, CompareWith superColumnName, CompareWith columnStart, CompareWith columnEnd, bool reversed = false, int count = 100) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new ColumnCount(key, superColumnName, new RangeSlicePredicate(columnStart, columnEnd, reversed, count)); return(family.ExecuteOperation(op)); }
// multi_get_slice public static IEnumerable <IFluentSuperColumnFamily <CompareWith, CompareSubcolumnWith> > Get <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, IEnumerable <BytesType> keys, IEnumerable <CompareWith> columnNames) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new MultiGetSuperColumnFamilySlice <CompareWith, CompareSubcolumnWith>(keys, new ColumnSlicePredicate(columnNames)); return(family.ExecuteOperation(op)); }
public static IEnumerable <IFluentSuperColumn <CompareWith, CompareSubcolumnWith> > GetSuperColumns <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType startKey, int keyCount, Expression <Func <IFluentRecordHasFluentColumns <CompareSubcolumnWith>, bool> > expression, CompareWith superColumnName, CompareWith columnStart, CompareWith columnEnd, bool columnsReversed = false, int columnCount = 100) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new GetSuperColumnIndexedSlices <CompareWith, CompareSubcolumnWith>(new CassandraIndexClause <CompareSubcolumnWith>(startKey, keyCount, expression), superColumnName, new RangeSlicePredicate(columnStart, columnEnd, columnsReversed, columnCount)); return(family.ExecuteOperation(op)); }
public static int SuperColumnCount <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, CompareWith superColumnName, IEnumerable <CompareWith> columnNames) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new ColumnCount(key, superColumnName, new ColumnSlicePredicate(columnNames)); return(family.ExecuteOperation(op)); }
public static IEnumerable <IFluentSuperColumnFamily <CompareWith, CompareSubcolumnWith> > Get <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType startKey, BytesType endKey, string startToken, string endToken, int keyCount, CompareWith columnStart, CompareWith columnEnd, bool columnsReversed = false, int columnCount = 100) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new GetSuperColumnFamilyRangeSlices <CompareWith, CompareSubcolumnWith>(new CassandraKeyRange(startKey, endKey, startToken, endToken, keyCount), new RangeSlicePredicate(columnStart, columnEnd, columnsReversed, columnCount)); return(family.ExecuteOperation(op)); }
public static void InsertColumn <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, CompareWith superColumnName, CompareSubcolumnWith name, BytesType value, DateTimeOffset timestamp, int timeToLive) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new InsertColumn(key, superColumnName, name, value, timestamp, timeToLive); family.ExecuteOperation(op); }
public static IFluentSuperColumn <CompareWith, CompareSubcolumnWith> GetSuperColumn <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, CompareWith superColumnName) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new GetSuperColumn <CompareWith, CompareSubcolumnWith>(key, superColumnName); return(family.ExecuteOperation(op)); }
public static void RemoveKey <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var op = new RemoveKey(key); family.ExecuteOperation(op); }
public static void InsertColumn(this CassandraSuperColumnFamily family, CassandraObject key, FluentColumnPath path) { var superColumnName = path.SuperColumn.ColumnName; var name = path.Column.ColumnName; var value = path.Column.ColumnValue; var timestamp = path.Column.ColumnTimestamp; var timeToLive = path.Column.ColumnSecondsUntilDeleted; var op = new InsertColumn(key, superColumnName, name, value, timestamp, timeToLive); family.ExecuteOperation(op); }
public static void InsertColumn <CompareWith, CompareSubcolumnWith>(this CassandraSuperColumnFamily <CompareWith, CompareSubcolumnWith> family, BytesType key, FluentColumnPath path) where CompareWith : CassandraType where CompareSubcolumnWith : CassandraType { var superColumnName = path.SuperColumn.ColumnName; var name = path.Column.ColumnName; var value = path.Column.ColumnValue; var timestamp = path.Column.ColumnTimestamp; var timeToLive = path.Column.ColumnTimeToLive; var op = new InsertColumn(key, superColumnName, name, value, timestamp, timeToLive); family.ExecuteOperation(op); }
public static FluentColumn GetColumn(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, CassandraObject columnName) { var op = new GetColumn(key, superColumnName, columnName); return(family.ExecuteOperation(op)); }
public static void InsertCounterColumn(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, CassandraObject columnName, long columnValue) { var op = new AddColumn(key, superColumnName, columnName, columnValue); family.ExecuteOperation(op); }
public static void InsertColumn(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, CassandraObject name, BytesType value, DateTimeOffset timestamp, int?timeToLive) { var op = new InsertColumn(key, superColumnName, name, value, timestamp, timeToLive); family.ExecuteOperation(op); }
public static int SuperColumnCount(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, CassandraObject columnStart, CassandraObject columnEnd, bool reversed = false, int count = 100) { var op = new ColumnCount(key, superColumnName, new CassandraRangeSlicePredicate(columnStart, columnEnd, reversed, count)); return(family.ExecuteOperation(op)); }
public static int SuperColumnCount(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, IEnumerable <CassandraObject> columnNames) { var op = new ColumnCount(key, superColumnName, new CassandraColumnSlicePredicate(columnNames)); return(family.ExecuteOperation(op)); }
public static FluentSuperColumnFamily GetSingle(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject columnStart, CassandraObject columnEnd, bool reversed = false, int count = 100) { var op = new GetSuperColumnFamilySlice(key, new CassandraRangeSlicePredicate(columnStart, columnEnd, reversed, count)); return(family.ExecuteOperation(op)); }
public static FluentSuperColumnFamily GetSingle(this CassandraSuperColumnFamily family, CassandraObject key, IEnumerable <CassandraObject> columnNames) { var op = new GetSuperColumnFamilySlice(key, new CassandraColumnSlicePredicate(columnNames)); return(family.ExecuteOperation(op)); }
public static void RemoveColumn(this CassandraSuperColumnFamily family, CassandraObject key, CassandraObject superColumnName, CassandraObject columnName) { var op = new Remove(key, superColumnName, columnName); family.ExecuteOperation(op); }