Tabnine Logo
ObjectBigList.get
Code IndexAdd Tabnine to your IDE (free)

How to use
get
method
in
it.unimi.dsi.fastutil.objects.ObjectBigList

Best Java code snippets using it.unimi.dsi.fastutil.objects.ObjectBigList.get (Showing top 17 results out of 315)

origin: it.unimi.dsi/fastutil

@Override
public K get(final long i) {
  return list.get(i);
}
@Override
origin: it.unimi.dsi/fastutil

@Override
public K get(final long i) {
  synchronized (sync) {
    return list.get(i);
  }
}
@Override
origin: uk.ac.gate.mimir/mimir-core

/**
 * Gets the term string for a given direct term ID. The term ID must have been 
 * obtained from the direct index of this index.
 * @param termId the ID for the term being sought.
 * @return the string for the given term.
 */
public CharSequence getDirectTerm(long termId) {
 return directTerms.get(termId);
}

origin: it.unimi.dsi/fastutil

@Override
public K previous() {
  if (!hasPrevious())
    throw new NoSuchElementException();
  return l.get(from + (last = --pos));
}
@Override
origin: it.unimi.dsi/fastutil

@Override
public K get(long index) {
  ensureRestrictedIndex(index);
  return l.get(from + index);
}
@Override
origin: it.unimi.dsi/fastutil

@Override
public K next() {
  if (!hasNext())
    throw new NoSuchElementException();
  return l.get(from + (last = pos++));
}
@Override
origin: it.unimi.dsi/dsiutils

@Deprecated
@Override
public Long get(final Object o) {
  final CharSequence s = (CharSequence)o;
  final long index = function.getLong(s);
  return index >= 0 && index < size && list.get((int)index).equals(s) ? Long.valueOf(index) : null;
}
origin: uk.ac.gate.mimir/mimir-core

@Override
public List<Binding> getDocumentHits(long rank) throws IndexOutOfBoundsException, IOException {
 long documentIndex = getDocumentIndex(rank);
 List<Binding> hits = documentHits.get(documentIndex);
 if(hits == null) {
  // hits not collected yet
  try {
   // find the Future working on it, or start a new one, 
   // then wait for it to complete
   collectHits(new long[]{rank, rank + 1}).get();
   hits = documentHits.get(documentIndex);
  } catch(Exception e) {
   logger.error("Exception while waiting for hits collection", e);
   throw new RuntimeException(
    "Exception while waiting for hits collection", e); 
  }
 }
 return hits;
}

origin: it.unimi.dsi/dsiutils

/** Creates a new shift-add-xor signed string map using a given hash map.
 *
 * @param function a function mapping each string in <code>list</code> to its ordinal position.
 * @param list a list of strings.
 */
public LiterallySignedStringMap(final Object2LongFunction<? extends CharSequence> function, final ObjectBigList<? extends MutableString> list) {
  this.function = function;
  this.list = list;
  size = list.size64();
  for(long i = 0; i < size; i++) if (function.getLong(list.get(i)) != i) throw new IllegalArgumentException("Function and list do not agree");
  defRetValue = -1;
}
origin: it.unimi.dsi/fastutil

/**
 * Shuffles the specified big list using the specified pseudorandom number
 * generator.
 *
 * @param l
 *            the big list to be shuffled.
 * @param random
 *            a pseudorandom number generator.
 * @return {@code l}.
 */
public static <K> ObjectBigList<K> shuffle(final ObjectBigList<K> l, final Random random) {
  for (long i = l.size64(); i-- != 0;) {
    final long p = (random.nextLong() & 0x7FFFFFFFFFFFFFFFL) % (i + 1);
    final K t = l.get(i);
    l.set(i, l.get(p));
    l.set(p, t);
  }
  return l;
}
/**
origin: it.unimi.dsi/dsiutils

@Override
public long getLong(final Object o) {
  final CharSequence s = (CharSequence)o;
  final long index = function.getLong(s);
  return index >= 0 && index < size && list.get((int)index).equals(s) ? index : defRetValue;
}
origin: it.unimi.dsi/mg4j-big

new MutableString( termMap.list().get( inputStream.readInt() ) ).writeSelfDelimUTF8( (OutputStream)outputStream );
outputStream.flush();
break;
origin: it.unimi.dsi/mg4j-big

new MutableString( prefixMap.list().get( inputStream.readLong() ) ).writeSelfDelimUTF8( (OutputStream)outputStream );
outputStream.flush();
break;
origin: it.unimi.di/mg4j-big

if ( termMap == null ) throw new IllegalStateException( "Index " + index + " has no term map" );
cutPointTerm[ 0 ] = termMap.list().get( 0 );
cutPointTerm[ numberOfLocalIndices ] = "\uFFFF";
      LOGGER.info( "New term interval [" + left + ".." + i + "] (\"" + termMap.list().get( left ) + "\" -> " + ( i == terms ? "" : "\"" + termMap.list().get( i ) + "\"" ) + ")" );
      cutPoint[ ++k ] = i;
      if ( i != terms ) cutPointTerm[ k ] = termMap.list().get( i );
      left = i;
      count = 0;
origin: it.unimi.dsi/mg4j-big

if ( termMap == null ) throw new IllegalStateException( "Index " + index + " has no term map" );
cutPointTerm[ 0 ] = termMap.list().get( 0 );
cutPointTerm[ numberOfLocalIndices ] = "\uFFFF";
      LOGGER.info( "New term interval [" + left + ".." + i + "] (" + termMap.list().get( left ) + " -> " + ( i == terms ? "" : termMap.list().get( i ) ) + ")" );
      cutPoint[ ++k ] = i;
      if ( i != terms ) cutPointTerm[ k ] = termMap.list().get( i );
      left = i;
      count = 0;
origin: uk.ac.gate.mimir/mimir-core

/**
 * Gets the occurrence count in the whole index for a given direct term,
 * specified by a direct term ID (which must have been obtained from the 
 * direct index of this index).
 * 
 * @param directTermId
 * @return
 * @throws IOException
 */
public long getDirectTermOccurenceCount(long directTermId) throws IOException {
 String termStr = directTerms.get(directTermId);
 // we need to sum up all the counts for this term in the inverted index
 long count = 0;
 IndexIterator idxItr = invertedIndex.documents(termStr);
 long docId = idxItr.nextDocument();
 while(docId != IndexIterator.END_OF_LIST) {
  count += idxItr.count();
  docId = idxItr.nextDocument();
 }
 return count;
}

origin: uk.ac.gate.mimir/mimir-core

String termString = directTerms.get(directTermId);
termMS.replace(termString);
PostingsList termPostings = termMap.get(termMS);
String termString = directTerms.get(directTermId);
termMS.replace(termString);
PostingsList termPostings = termMap.get(termMS);
it.unimi.dsi.fastutil.objectsObjectBigListget

Javadoc

Copies (hopefully quickly) elements of this type-specific big list into the given big array.

Popular methods of ObjectBigList

  • add
  • size64
  • set
  • addAll
  • addElements
    Add (hopefully quickly) elements to this type-specific big list.
  • compareTo
  • getElements
    Copies (hopefully quickly) elements of this type-specific big list into the given big array.
  • indexOf
  • lastIndexOf
  • listIterator
  • remove
  • removeElements
    Removes (hopefully quickly) elements of this type-specific big list.
  • remove,
  • removeElements,
  • size,
  • subList

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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