Package org.terrier.structures.postings

Examples of org.terrier.structures.postings.BlockFieldPostingImpl


    public int[] getPositions() {
      return blockIds;
    }
   
    public WritablePosting asWritablePosting() {
      BlockFieldPostingImpl bp = new BlockFieldPostingImpl(docid, frequency, blockIds, fieldFrequencies.length);
      System.arraycopy(fieldFrequencies, 0, bp.getFieldFrequencies(), 0, fieldFrequencies.length);
      return bp;
    }
View Full Code Here


      return blockIds;
    }

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

TOP

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

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.