Codota Logo
FieldPostingImpl
Code IndexAdd Codota to your IDE (free)

How to use
FieldPostingImpl
in
org.terrier.structures.postings

Best Java code snippets using org.terrier.structures.postings.FieldPostingImpl (Showing top 14 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.terrier/terrier-integer-compression

@Override
public WritablePosting asWritablePosting() {
  return new FieldPostingImpl(id, tf, fields);
}
origin: terrier-org/terrier-core

public WritablePosting asWritablePosting() {
  FieldPostingImpl bp = new FieldPostingImpl(docid, frequency, fieldFrequencies.length);
  System.arraycopy(fieldFrequencies, 0, bp.getFieldFrequencies(), 0, fieldFrequencies.length);
  return bp;
}
    
origin: terrier-org/terrier-core

  /** {@inheritDoc} */
  @Override
  public WritablePosting asWritablePosting() {
    FieldPostingImpl bp = new FieldPostingImpl(getFieldFrequencies());
    bp.setId(getId());
    bp.setTf(getFrequency());
    return bp;
  }
}
origin: terrier-org/terrier-core

@Override
public WritablePosting asWritablePosting() {
  return new FieldPostingImpl(id, tf, fields);
}
origin: org.terrier/terrier-core

/** Get this posting as a WritablePosting */
@Override
public WritablePosting asWritablePosting()
{    
  FieldPostingImpl fbp = new FieldPostingImpl(id, tf, fieldCount);
  System.arraycopy(fieldFrequencies, 0, fbp.getFieldFrequencies(), 0, fieldCount);
  return fbp;
}
origin: org.terrier/terrier-core

/** {@inheritDoc} */
@Override
public WritablePosting asWritablePosting()
{    
  FieldPostingImpl fbp = new FieldPostingImpl(fieldFrequencies.length);
  fbp.id = id;
  fbp.tf = tf;
  System.arraycopy(fieldFrequencies, 0, fbp.fieldFrequencies, 0, fieldFrequencies.length);
  return fbp;
}

origin: terrier-org/terrier-core

/** Get this posting as a WritablePosting */
@Override
public WritablePosting asWritablePosting()
{    
  FieldPostingImpl fbp = new FieldPostingImpl(id, tf, fieldCount);
  System.arraycopy(fieldFrequencies, 0, fbp.getFieldFrequencies(), 0, fieldCount);
  return fbp;
}
origin: terrier-org/terrier-core

/** {@inheritDoc} */
@Override
public WritablePosting asWritablePosting()
{    
  FieldPostingImpl fbp = new FieldPostingImpl(fieldFrequencies.length);
  fbp.id = id;
  fbp.tf = tf;
  System.arraycopy(fieldFrequencies, 0, fbp.fieldFrequencies, 0, fieldFrequencies.length);
  return fbp;
}

origin: terrier-org/terrier-core

@Override
public WritablePosting asWritablePosting() {
  FieldPostingImpl fbp = new FieldPostingImpl(termIds[i],getFrequency(), fieldCount);
  System.arraycopy(getFieldFrequencies(), 0, fbp.getFieldFrequencies(), 0, fieldCount);
  return fbp;
}
origin: org.terrier/terrier-core

@Override
public WritablePosting asWritablePosting() {
  return new FieldPostingImpl(this.getId(), this.getFrequency(), this.getFieldFrequencies());
}
origin: terrier-org/terrier-core

@Override
public WritablePosting asWritablePosting() {
  return new FieldPostingImpl(this.getId(), this.getFrequency(), this.getFieldFrequencies());
}
origin: terrier-org/terrier-core

@SuppressWarnings("unchecked")
@Test public void testSingleEntrySeveralPostingsFields() throws Exception
{
  List<Posting> postings = new ArrayList<Posting>();
  postings.add(new FieldPostingImpl(1,1, new int[]{5}));
  postings.add(new FieldPostingImpl(2,1, new int[]{5}));
  postings.add(new FieldPostingImpl(10,1, new int[]{5}));
  postings.add(new FieldPostingImpl(100,1, new int[]{5}));
  List<BitIndexPointer> pointerList = new ArrayList<BitIndexPointer>();
  DataInput file = PostingTestUtils.writeFieldPostingsToData(new Iterator[]{postings.iterator()}, pointerList);
  BitInputStream bitIn = new BitInputStream(file);
  IterablePosting ip = new FieldIterablePosting(bitIn, postings.size(), null, 1);
  PostingTestUtils.comparePostings(postings, ip);
}

origin: terrier-org/terrier-core

  : new BlockPostingImpl(docids[di], 0, new int[0])
: fields
  ? new FieldPostingImpl(docids[di], 0, fieldCount)
  : new BasicPostingImpl(docids[di], 0);
origin: org.terrier/terrier-learning

  : new BlockPostingImpl(docids[di], 0, new int[0])
: fields
  ? new FieldPostingImpl(docids[di], 0, fieldCount)
  : new BasicPostingImpl(docids[di], 0);
org.terrier.structures.postingsFieldPostingImpl

Javadoc

Implementation of a posting containing fields

Most used methods

  • <init>
    constructor
  • getFieldFrequencies
  • setId
  • setTf

Popular in Java

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • setContentView (Activity)
  • getContentResolver (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now