public static int[] getIds(final IterablePosting ip) throws IOException
{
final TIntArrayList ids = new TIntArrayList();
while(ip.next() != IterablePosting.EOL)
ids.add(ip.getId());
return ids.toNativeArray();
}
/** Get an array of all the ids in a given IterablePosting stream,
* where the length of the stream is known */
public static int[] getIds(final IterablePosting ip, final int numPointers) throws IOException