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))); }
public static GrainId CreateIndexWorkflowQueueGrainId(Type grainInterfaceType, int queueSeqNum) { return(GrainId.GetSystemTargetGrainId(Constants.INDEX_WORKFLOW_QUEUE_SYSTEM_TARGET_TYPE_CODE, CreateIndexWorkflowQueuePrimaryKey(grainInterfaceType, queueSeqNum))); }
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)))); }
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))); }