@Override public DoubleBigArrayBigList clone() { DoubleBigArrayBigList c = new DoubleBigArrayBigList(size); DoubleBigArrays.copy(a, 0, c.a, 0, size); c.size = size; return c; } /**
/** * Wraps a given big array into a big-array list of given size. * * @param a * a big array to wrap. * @param length * the length of the resulting big-array list. * @return a new big-array list of the given size, wrapping the given big array. */ public static DoubleBigArrayBigList wrap(final double a[][], final long length) { if (length > DoubleBigArrays.length(a)) throw new IllegalArgumentException("The specified length (" + length + ") is greater than the array size (" + DoubleBigArrays.length(a) + ")"); final DoubleBigArrayBigList l = new DoubleBigArrayBigList(a, false); l.size = length; return l; } /**
final DataInputStream dis = new DataInputStream( new FastBufferedInputStream( is ) ); if ( gzip ) { final DoubleBigArrayBigList score = new DoubleBigArrayBigList( 2 * n ); // Very wild approximation try { if ( type.equals( "int" ) ) for(;;) score.add( dis.readInt() );
documentHits = new ObjectBigArrayBigList<List<Binding>>(); if(scorer != null) { documentScores = new DoubleBigArrayBigList(); documentsOrder = new LongBigArrayBigList(docBlockSize);