}
this.positions = new Long[(int) length];
RegionSegment<HardRegionIndexer> segment = region.getSegment(0);
RegionSegment linked = (RegionSegment) segment.getLinkedSegment();
RegionIndexer indexer = segment.getData();
for (int i = 0; i < length; i++) {
if (segment.checkBoundsGlobal(i) == false) {
segment = region.getSegment(i);
linked = (RegionSegment) segment.getLinkedSegment();
indexer = segment.getData();
}
long regional = segment.mapGlobalToRegional(i);
long position = linked.mapRegionalToGlobal(indexer
.mapIndexToPositionRegional((int) regional));
positions[i] = position;
}
}