congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FieldPostingImpl.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.terrier/terrier-integer-compression

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

@Override
public WritablePosting asWritablePosting() {
  return new FieldPostingImpl(id, tf, fields);
}
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

/** {@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

public WritablePosting asWritablePosting() {
  FieldPostingImpl bp = new FieldPostingImpl(docid, frequency, fieldFrequencies.length);
  System.arraycopy(fieldFrequencies, 0, bp.getFieldFrequencies(), 0, fieldFrequencies.length);
  return bp;
}
    
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: 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

@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

  /** {@inheritDoc} */
  @Override
  public WritablePosting asWritablePosting() {
    FieldPostingImpl bp = new FieldPostingImpl(getFieldFrequencies());
    bp.setId(getId());
    bp.setTf(getFrequency());
    return bp;
  }
}
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<init>

Javadoc

default constructor

Popular methods of FieldPostingImpl

  • getFieldFrequencies
  • setId
  • setTf

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now