private static GrainId GetGrainID(string indexName)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.HASH_INDEX_PARTITIONED_PER_SILO_BUCKET_SYSTEM_TARGET_TYPE_CODE,
                                           IndexUtils.GetIndexGrainID(typeof(V), indexName)));
 }
示例#2
0
 public static GrainId CreateIndexWorkflowQueueGrainId(Type grainInterfaceType, int queueSeqNum)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.INDEX_WORKFLOW_QUEUE_SYSTEM_TARGET_TYPE_CODE,
                                           CreateIndexWorkflowQueuePrimaryKey(grainInterfaceType, queueSeqNum)));
 }
示例#3
0
 public static GrainId GetIndexWorkflowQueueGrainIdFromGrainHashCode(Type grainInterfaceType, int grainHashCode)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.INDEX_WORKFLOW_QUEUE_SYSTEM_TARGET_TYPE_CODE,
                                           CreateIndexWorkflowQueuePrimaryKey(grainInterfaceType, StorageProviderUtils.PositiveHash(grainHashCode, NUM_AVAILABLE_INDEX_WORKFLOW_QUEUES))));
 }
示例#4
0
 private static GrainId GetAHashIndexPartitionedPerSiloGrainID(string indexName, Type iGrainType)
 {
     return(GrainId.GetSystemTargetGrainId(Constants.HASH_INDEX_PARTITIONED_PER_SILO_BUCKET_SYSTEM_TARGET_TYPE_CODE,
                                           IndexUtils.GetIndexGrainID(iGrainType, indexName)));
 }