本文整理汇总了C#中Apache.Cassandra.SlicePredicate类的典型用法代码示例。如果您正苦于以下问题:C# SlicePredicate类的具体用法?C# SlicePredicate怎么用?C# SlicePredicate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SlicePredicate类属于Apache.Cassandra命名空间,在下文中一共展示了SlicePredicate类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: Main
private static void Main()
{
TTransport framedTransport = new TFramedTransport(new TSocket("localhost", 9160));
TTransport socketTransport = new TSocket("localhost", 9160);
TProtocol framedProtocol = new TBinaryProtocol(framedTransport);
TProtocol socketProtocol = new TBinaryProtocol(socketTransport);
var client = new Cassandra.Client(framedProtocol, framedProtocol); // all framed
//var client = new Cassandra.Client(socketProtocol, socketProtocol); // all socket
//var client = new Cassandra.Client(framedProtocol, socketProtocol); // in: framed out: socket
//var client = new Cassandra.Client(socketProtocol, framedProtocol); // in: socket out: framed
framedTransport.Open();
socketTransport.Open();
Console.WriteLine("Start");
client.set_keyspace("Keyspace1");
Console.WriteLine("Count Key");
var key = Encoding.ASCII.GetBytes("MyKey");
var columns = new List<byte[]>(new[] { Encoding.ASCII.GetBytes("MyColumn") });
var column_parent = new ColumnParent {
Column_family = "Standard1"
};
var predicate = new SlicePredicate {
Column_names = columns
};
client.get_count(key, column_parent, predicate, ConsistencyLevel.ALL);
Console.WriteLine("Done");
Console.Read();
}
开发者ID:KevinT,项目名称:fluentcassandra,代码行数:32,代码来源:Program.cs
示例2: send_multiget_count
public IAsyncResult send_multiget_count(AsyncCallback callback, object state, List<byte[]> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
开发者ID:Jacky1,项目名称:cassandra-sharp,代码行数:1,代码来源:Cassandra.cs
示例3: get_count
public int get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
{
send_get_count(key, column_parent, predicate, consistency_level);
return recv_get_count();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:5,代码来源:Cassandra.cs
示例4: Read
public void Read(TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 1:
if (field.Type == TType.String) {
Key = iprot.ReadBinary();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.Struct) {
Column_parent = new ColumnParent();
Column_parent.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 3:
if (field.Type == TType.Struct) {
Predicate = new SlicePredicate();
Predicate.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 4:
if (field.Type == TType.I32) {
Consistency_level = (ConsistencyLevel)iprot.ReadI32();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:50,代码来源:Cassandra.cs
示例5: send_get_range_slices
public void send_get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level)
{
oprot_.WriteMessageBegin(new TMessage("get_range_slices", TMessageType.Call, seqid_));
get_range_slices_args args = new get_range_slices_args();
args.Column_parent = column_parent;
args.Predicate = predicate;
args.Range = range;
args.Consistency_level = consistency_level;
args.Write(oprot_);
oprot_.WriteMessageEnd();
oprot_.Transport.Flush();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:12,代码来源:Cassandra.cs
示例6: send_get_count
public void send_get_count(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
{
oprot_.WriteMessageBegin(new TMessage("get_count", TMessageType.Call, seqid_));
get_count_args args = new get_count_args();
args.Key = key;
args.Column_parent = column_parent;
args.Predicate = predicate;
args.Consistency_level = consistency_level;
args.Write(oprot_);
oprot_.WriteMessageEnd();
oprot_.Transport.Flush();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:12,代码来源:Cassandra.cs
示例7: multiget_count
public Dictionary<byte[], int> multiget_count(List<byte[]> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
{
send_multiget_count(keys, column_parent, predicate, consistency_level);
return recv_multiget_count();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:5,代码来源:Cassandra.cs
示例8: get_range_slices
public List<KeySlice> get_range_slices(ColumnParent column_parent, SlicePredicate predicate, KeyRange range, ConsistencyLevel consistency_level)
{
send_get_range_slices(column_parent, predicate, range, consistency_level);
return recv_get_range_slices();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:5,代码来源:Cassandra.cs
示例9: FindItemParentFolderId
public Guid FindItemParentFolderId(UUID itemId)
{
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = ITEMPARENTS_CF;
SlicePredicate pred = new SlicePredicate();
SliceRange range = new SliceRange();
range.Start = new byte[0];
range.Finish = new byte[0];
range.Reversed = false;
range.Count = int.MaxValue;
pred.Slice_range = range;
byte[] itemIdArray = ByteEncoderHelper.GuidEncoder.ToByteArray(itemId.Guid);
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object val =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.get_slice(itemIdArray, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
List<ColumnOrSuperColumn> indexCols = (List<ColumnOrSuperColumn>)val;
//no index means the item doesnt exist
if (indexCols.Count == 0)
{
return Guid.Empty;
}
var indexedColsByName = this.IndexColumnsByUTF8Name(indexCols);
return ByteEncoderHelper.GuidEncoder.FromByteArray(indexedColsByName["parent"].Value);
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:36,代码来源:InventoryStorage.cs
示例10: RetrieveRowsInChunks
/// <summary>
/// Retrieves all the rows for the given list of keys in chunkSize chunks
/// </summary>
/// <param name="chunkSize"></param>
/// <param name="allKeys"></param>
/// <param name="colParent"></param>
/// <param name="pred"></param>
/// <param name="consistencyLevel"></param>
/// <returns></returns>
private Dictionary<byte[], List<ColumnOrSuperColumn>> RetrieveRowsInChunks(int chunkSize, List<byte[]> allKeys,
ColumnParent colParent, SlicePredicate pred, ConsistencyLevel consistencyLevel)
{
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
if (allKeys.Count <= chunkSize)
{
object val =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.multiget_slice(allKeys, colParent, pred, consistencyLevel);
}), KEYSPACE);
return (Dictionary<byte[], List<ColumnOrSuperColumn>>)val;
}
else
{
Dictionary<byte[], List<ColumnOrSuperColumn>> ret = new Dictionary<byte[], List<ColumnOrSuperColumn>>();
for (int i = 0; i < allKeys.Count; i += chunkSize)
{
int remaining = allKeys.Count - i;
List<byte[]> keys = allKeys.GetRange(i, remaining >= chunkSize ? chunkSize : remaining);
object val =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.multiget_slice(keys, colParent, pred, consistencyLevel);
}), KEYSPACE);
Dictionary<byte[], List<ColumnOrSuperColumn>> chunk = (Dictionary<byte[], List<ColumnOrSuperColumn>>)val;
foreach(KeyValuePair<byte[], List<ColumnOrSuperColumn>> kvp in chunk)
{
ret.Add(kvp.Key, kvp.Value);
}
}
return ret;
}
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:52,代码来源:InventoryStorage.cs
示例11: GetItem
public InventoryItemBase GetItem(UUID itemId, UUID parentFolderHint)
{
//Retrieving an item requires a lookup of the parent folder followed by
//a retrieval of the item. This was a consious decision made since the
//inventory item data currently takes up the most space and a
//duplication of this data to prevent the index lookup
//would be expensive in terms of space required
try
{
Guid parentId;
if (parentFolderHint != UUID.Zero)
{
parentId = parentFolderHint.Guid;
}
else
{
parentId = FindItemParentFolderId(itemId);
}
if (parentId == Guid.Empty)
{
throw new InventoryObjectMissingException(String.Format("Item with ID {0} could not be found", itemId), "Item was not found in the index");
}
//try to retrieve the item. note that even though we have an index there is a chance we will
//not have the item data due to a race condition between index mutation and item mutation
byte[] itemIdBytes = ByteEncoderHelper.GuidEncoder.ToByteArray(itemId.Guid);
byte[] folderIdBytes = ByteEncoderHelper.GuidEncoder.ToByteArray(parentId);
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = FOLDERS_CF;
columnParent.Super_column = itemIdBytes;
SlicePredicate pred = new SlicePredicate();
SliceRange range = new SliceRange();
range.Start = new byte[0];
range.Finish = new byte[0];
range.Reversed = false;
range.Count = int.MaxValue;
pred.Slice_range = range;
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object itemDataObj =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.get_slice(folderIdBytes, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
List<ColumnOrSuperColumn> itemCols = (List<ColumnOrSuperColumn>)itemDataObj;
if (itemCols.Count == 0)
{
throw new InventoryObjectMissingException(String.Format("Item with ID {0} could not be found", itemId), "Item was not found in its folder");
}
InventoryItemBase item = this.DecodeInventoryItem(itemCols, itemId.Guid, parentId);
return item;
}
catch (InventoryStorageException)
{
throw;
}
catch (Exception e)
{
_log.ErrorFormat("[Inworldz.Data.Inventory.Cassandra] Unable to retrieve item {0}: {1}", itemId, e);
throw new InventoryStorageException(e.Message, e);
}
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:73,代码来源:InventoryStorage.cs
示例12: GetItemsInSameFolder
/// <summary>
/// Retrieves a set of items in the same folder. This should be efficient compared to
/// retrieving each item separately regardless of parent. This will be mostly used
/// for gestures which are usually all in the same folder anyways
/// </summary>
/// <param name="folderId"></param>
/// <param name="itemIds"></param>
/// <returns></returns>
private List<InventoryItemBase> GetItemsInSameFolder(UUID folderId, IEnumerable<UUID> itemIds, bool throwOnItemMissing)
{
byte[] folderIdBytes = ByteEncoderHelper.GuidEncoder.ToByteArray(folderId.Guid);
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = FOLDERS_CF;
SlicePredicate pred = new SlicePredicate();
pred.Column_names = new List<byte[]>();
foreach (UUID id in itemIds)
{
pred.Column_names.Add(ByteEncoderHelper.GuidEncoder.ToByteArray(id.Guid));
}
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object itemDataObj =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.get_slice(folderIdBytes, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
List<ColumnOrSuperColumn> itemCols = (List<ColumnOrSuperColumn>)itemDataObj;
if (throwOnItemMissing && itemCols.Count != pred.Column_names.Count)
{
throw new InventoryObjectMissingException("One or more items requested could not be found");
}
List<InventoryItemBase> retItems = new List<InventoryItemBase>();
foreach (ColumnOrSuperColumn superCol in itemCols)
{
Guid itemId = ByteEncoderHelper.GuidEncoder.FromByteArray(superCol.Super_column.Name);
InventoryItemBase item = this.DecodeInventoryItem(superCol.Super_column.Columns, itemId, folderId.Guid);
retItems.Add(item);
}
return retItems;
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:48,代码来源:InventoryStorage.cs
示例13: GetInventorySkeleton
public List<InventoryFolderBase> GetInventorySkeleton(UUID userId)
{
try
{
Dictionary<Guid, InventoryFolderBase> index = GetFolderIndex(userId);
if (index.Count == 0)
{
return new List<InventoryFolderBase>();
}
List<byte[]> keys = new List<byte[]>(index.Count);
foreach (KeyValuePair<Guid, InventoryFolderBase> indexInfo in index)
{
keys.Add(ByteEncoderHelper.GuidEncoder.ToByteArray(indexInfo.Value.ID.Guid));
}
//retrieve the versions for all folders
ColumnParent versionParent = new ColumnParent
{
Column_family = FOLDERVERSIONS_CF,
};
SlicePredicate versionPred = new SlicePredicate();
versionPred.Column_names = new List<byte[]> { ByteEncoderHelper.UTF8Encoder.ToByteArray("count") };
Dictionary<byte[], List<ColumnOrSuperColumn>> verColumns =
this.RetrieveRowsInChunks(FOLDER_VERSION_CHUNK_SZ, keys, versionParent, versionPred, DEFAULT_CONSISTENCY_LEVEL);
foreach (KeyValuePair<byte[], List<ColumnOrSuperColumn>> kvp in verColumns)
{
Guid fid = ByteEncoderHelper.GuidEncoder.FromByteArray(kvp.Key);
InventoryFolderBase f;
if (index.TryGetValue(fid, out f))
{
if (kvp.Value.Count == 1)
{
f.Version = (ushort)(kvp.Value[0].Counter_column.Value % (long)ushort.MaxValue);
}
}
}
return new List<InventoryFolderBase>(index.Values);
}
catch (Exception e)
{
_log.ErrorFormat("[Inworldz.Data.Inventory.Cassandra] Unable to retrieve folder skeleton: {0}", e);
throw new InventoryStorageException(e.Message, e);
}
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:51,代码来源:InventoryStorage.cs
示例14: Read
public void Read(TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 1:
if (field.Type == TType.I64) {
Timestamp = iprot.ReadI64();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.String) {
Super_column = iprot.ReadBinary();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 3:
if (field.Type == TType.Struct) {
Predicate = new SlicePredicate();
Predicate.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:42,代码来源:Deletion.cs
示例15: GetFolderAttributes
public InventoryFolderBase GetFolderAttributes(UUID folderId)
{
if (folderId == UUID.Zero) throw new InventorySecurityException("Not returning folder with ID UUID.Zero");
try
{
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = FOLDERS_CF;
columnParent.Super_column = ByteEncoderHelper.UTF8Encoder.ToByteArray("properties");
SlicePredicate pred = new SlicePredicate();
SliceRange range = new SliceRange();
range.Start = new byte[0];
range.Finish = new byte[0];
range.Reversed = false;
range.Count = int.MaxValue;
pred.Slice_range = range;
byte[] folderIdArray = ByteEncoderHelper.GuidEncoder.ToByteArray(folderId.Guid);
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object val =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.get_slice(folderIdArray, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
List<ColumnOrSuperColumn> cols = (List<ColumnOrSuperColumn>)val;
if (cols.Count == 0)
{
throw new InventoryObjectMissingException(String.Format("Folder with ID {0} could not be found", folderId));
}
InventoryFolderBase folder = DecodeFolderBase(folderId.Guid, cols);
//grab the folder version
ColumnPath path = new ColumnPath
{
Column = ByteEncoderHelper.UTF8Encoder.ToByteArray("count"),
Column_family = FOLDERVERSIONS_CF
};
object verVal =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.get(folderIdArray, path, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
ColumnOrSuperColumn verColumn = (ColumnOrSuperColumn)verVal;
folder.Version = (ushort)(verColumn.Counter_column.Value % (long)ushort.MaxValue);
return folder;
}
catch (InventoryObjectMissingException e)
{
// _log.ErrorFormat("[Inworldz.Data.Inventory.Cassandra] Unable to retrieve folder attributes: {0}", e);
throw; // produces a duplicate error farther up with more context
}
catch (Exception e)
{
// _log.ErrorFormat("[Inworldz.Data.Inventory.Cassandra] Unable to retrieve folder attributes: {0}", e);
throw new InventoryStorageException(e.Message, e); // produces another error farther up with more context
}
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:68,代码来源:InventoryStorage.cs
示例16: Read
public void Read(TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 1:
if (field.Type == TType.Struct) {
this.clock = new Clock();
this.clock.Read(iprot);
this.__isset.clock = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.String) {
this.super_column = iprot.ReadBinary();
this.__isset.super_column = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 3:
if (field.Type == TType.Struct) {
this.predicate = new SlicePredicate();
this.predicate.Read(iprot);
this.__isset.predicate = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
开发者ID:chak71,项目名称:CassandraWorkbench,代码行数:46,代码来源:Deletion.cs
示例17: FindItemParentFolderIds
/// <summary>
/// Returns a dictionary of parents with a list of items Dictionary[FolderID, List[Items]]
/// </summary>
/// <param name="itemIds"></param>
/// <returns></returns>
public Dictionary<UUID, List<UUID>> FindItemParentFolderIds(IEnumerable<UUID> itemIds)
{
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = ITEMPARENTS_CF;
SlicePredicate pred = new SlicePredicate();
pred.Column_names = new List<byte[]>();
pred.Column_names.Add(ByteEncoderHelper.UTF8Encoder.ToByteArray("parent"));
List<byte[]> allItemIdBytes = new List<byte[]>();
foreach (UUID id in itemIds)
{
allItemIdBytes.Add(ByteEncoderHelper.GuidEncoder.ToByteArray(id.Guid));
}
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object val =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
return client.multiget_slice(allItemIdBytes, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
Dictionary<byte[], List<ColumnOrSuperColumn>> itemParentCols = (Dictionary<byte[], List<ColumnOrSuperColumn>>)val;
Dictionary<UUID, List<UUID>> retParents = new Dictionary<UUID, List<UUID>>();
foreach (KeyValuePair<byte[], List<ColumnOrSuperColumn>> kvp in itemParentCols)
{
if (kvp.Value.Count == 1)
{
Column col = kvp.Value[0].Column;
UUID parentId = new UUID(ByteEncoderHelper.GuidEncoder.FromByteArray(col.Value));
if (!retParents.ContainsKey(parentId))
{
retParents.Add(parentId, new List<UUID>());
}
retParents[parentId].Add(new UUID(ByteEncoderHelper.GuidEncoder.FromByteArray(kvp.Key)));
}
}
return retParents;
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:51,代码来源:InventoryStorage.cs
示例18: get_slice
public List<ColumnOrSuperColumn> get_slice(byte[] key, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
{
send_get_slice(key, column_parent, predicate, consistency_level);
return recv_get_slice();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:5,代码来源:Cassandra.cs
示例19: GetActiveGestureItemIds
private List<UUID> GetActiveGestureItemIds(UUID userId)
{
try
{
ColumnParent columnParent = new ColumnParent();
columnParent.Column_family = USERACTIVEGESTURES_CF;
SlicePredicate pred = new SlicePredicate();
SliceRange range = new SliceRange();
range.Start = new byte[0];
range.Finish = new byte[0];
range.Reversed = false;
range.Count = int.MaxValue;
pred.Slice_range = range;
ICluster cluster = AquilesHelper.RetrieveCluster(_clusterName);
object retobj =
cluster.Execute(new ExecutionBlock(delegate(Apache.Cassandra.Cassandra.Client client)
{
byte[] userIdBytes = ByteEncoderHelper.GuidEncoder.ToByteArray(userId.Guid);
return client.get_slice(userIdBytes, columnParent, pred, DEFAULT_CONSISTENCY_LEVEL);
}), KEYSPACE);
List<ColumnOrSuperColumn> cols = (List<ColumnOrSuperColumn>)retobj;
List<UUID> ret = new List<UUID>();
foreach (ColumnOrSuperColumn col in cols)
{
ret.Add(new UUID(ByteEncoderHelper.GuidEncoder.FromByteArray(col.Column.Name)));
}
return ret;
}
catch (Exception e)
{
throw new InventoryStorageException(e.Message, e);
}
}
开发者ID:emperorstarfinder,项目名称:halcyon,代码行数:40,代码来源:InventoryStorage.cs
示例20: multiget_slice
public Dictionary<byte[], List<ColumnOrSuperColumn>> multiget_slice(List<byte[]> keys, ColumnParent column_parent, SlicePredicate predicate, ConsistencyLevel consistency_level)
{
send_multiget_slice(keys, column_parent, predicate, consistency_level);
return recv_multiget_slice();
}
开发者ID:razzmatazz,项目名称:cassandra-sharp-client,代码行数:5,代码来源:Cassandra.cs
注:本文中的Apache.Cassandra.SlicePredicate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论