Package org.terrier.structures.postings

Examples of org.terrier.structures.postings.FieldPostingImpl


        fieldFrequencies[fi] = postingSource.readUnary() -1;
      }
    }
   
    public WritablePosting asWritablePosting() {
      FieldPostingImpl bp = new FieldPostingImpl(docid, frequency, fieldFrequencies.length);
      System.arraycopy(fieldFrequencies, 0, bp.getFieldFrequencies(), 0, fieldFrequencies.length);
      return bp;
    }
View Full Code Here


      return null;
    }
   
    @Override
    public WritablePosting asWritablePosting() {
      FieldPostingImpl fbp = new FieldPostingImpl(termIds[i],getFrequency(), fieldCount);
      System.arraycopy(getFieldFrequencies(), 0, fbp.getFieldFrequencies(), 0, fieldCount);
      return fbp;
    }
View Full Code Here

TOP

Related Classes of org.terrier.structures.postings.FieldPostingImpl

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.