psReplication

来源:互联网 发布:北京精雕平面编程教程 编辑:程序博客网 时间:2024/05/20 11:50

DBArray::DBArray ID=2, UAID=1, ps=1, desc=foo@1<val:double> [x=1:10 (4611686018427387903:-4611686018427387903),10,0] ArrayId: 2 UnversionedArrayId: 1 Version: 1 Flags: 0 PartitioningSchema: 1 <val:double,EmptyTag:indicator>

enum PartitioningSchema
{
    psUninitialized = -1, // e.g. _ps after ArrayDesc::ArrayDesc()
    psMIN = 0,
    psReplication = psMIN,
    psHashPartitioned,
    psLocalInstance,
    psByRow,
    psByCol,
    psUndefined,        // a range of meanings, including sometimes "wildcard"
                        // TODO: replace with psWildcard and others as required
    psGroupby,
    psScaLAPACK,
    // A newly introduced partitioning schema should be added before this line.
    psEND
};


inline PartitioningSchema defaultPartitioning()
{
    // you MAY NOT change this from psHashPartitioned at this time
    // this is scaffolding code that is locating all the places where
    // psHashPartitioned is assumed which need to be generalized.
    // there are further changes in the optimizer that must be planned first
    // and then we can decide which PartitioningSchema variable is the
    // definitive one.  Until then, the code will read "defaultParitioning()"
    // and the reader should think "psHashPartitioned"


    return psHashPartitioned;


}


std::shared_ptr<Array> replicated = redistributeToRandomAccess(input1, query, psReplication,
                                                                  ALL_INSTANCE_MASK,
                                                                  std::shared_ptr<CoordinateTranslator>(),
                                                                  0,
                                                                  std::shared_ptr<PartitioningSchemaData>());


0 0
原创粉丝点击