Exemple #1
0
 public LinksIterable(
     FieldDefinition link,
     List<Integer> shards,
     ObjectID continuation,
     boolean inclusive,
     Iterable<ObjectID> keys) {
   m_link = link;
   m_shards = shards;
   if (m_shards == null) {
     m_shards = new ArrayList<Integer>(1);
     m_shards.add(0);
     if (link.isSharded())
       m_shards.addAll(SpiderService.instance().getShards(link.getInverseTableDef()).keySet());
   }
   m_continuation = continuation;
   m_inclusive = inclusive;
   m_keys = keys;
 }