Package org.terrier.structures.seralization

Examples of org.terrier.structures.seralization.FixedSizeIntWritableFactory


  /** Test that skipping in a stream works as expected */
  @Test public void testStreamSkipping() throws Exception
  {   
    for(int i=0;i<TEST_INTEGERS.length;i++)
    {
      Iterator<IntWritable> iterator = new FSArrayFile.ArrayFileIterator<IntWritable>(arrayFile, new FixedSizeIntWritableFactory());
      ((Skipable)iterator).skip(i);
      int j=i;
      while(iterator.hasNext())
      {
        assertEquals(TEST_INTEGERS[j], iterator.next().get());
View Full Code Here

TOP

Related Classes of org.terrier.structures.seralization.FixedSizeIntWritableFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.