Tabnine Logo
Reference2ReferenceMaps.singleton
Code IndexAdd Tabnine to your IDE (free)

How to use
singleton
method
in
it.unimi.dsi.fastutil.objects.Reference2ReferenceMaps

Best Java code snippets using it.unimi.dsi.fastutil.objects.Reference2ReferenceMaps.singleton (Showing top 20 results out of 315)

origin: it.unimi.dsi/mg4j

public Reference2ReferenceMap<Index, IntervalIterator> intervalIterators() {
  return Reference2ReferenceMaps.singleton( soleIndex, IntervalIterators.TRUE );
}
origin: it.unimi.dsi/mg4j-big

public Reference2ReferenceMap<Index, IntervalIterator> intervalIterators() {
  return Reference2ReferenceMaps.singleton( soleIndex, IntervalIterators.TRUE );
}
origin: it.unimi.di/mg4j-big

protected AbstractQuasiSuccinctIndexIterator( final QuasiSuccinctIndexReader indexReader ) {
  this.indexReader = indexReader;
  index = indexReader.index;
  keyIndex = index.keyIndex;
  hasPositions = index.hasPositions;
  hasCounts = index.hasCounts;
  numberOfDocuments = index.numberOfDocuments;
  pointersList = indexReader.pointersList;
  countsList = indexReader.countsList;
  positionsList = indexReader.positionsList;
  intervalIterator = hasPositions ? new IndexIntervalIterator( this ) : IntervalIterators.FALSE; 
  singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, hasPositions ? intervalIterator : IntervalIterators.FALSE );
  currentTerm = frequency = -1;
}
origin: it.unimi.di/mg4j-big

protected TrueDocumentIterator( final Index index ) {
  indices = ReferenceSets.singleton( soleIndex = index );
  intervalIterators = Reference2ReferenceMaps.singleton( soleIndex, IntervalIterators.TRUE );
}
origin: it.unimi.di/mg4j

protected TrueDocumentIterator( final Index index ) {
  indices = ReferenceSets.singleton( soleIndex = index );
  intervalIterators = Reference2ReferenceMaps.singleton( soleIndex, IntervalIterators.TRUE );
}
origin: it.unimi.di/mg4j

protected AbstractQuasiSuccinctIndexIterator( final QuasiSuccinctIndexReader indexReader ) {
  this.indexReader = indexReader;
  index = indexReader.index;
  keyIndex = index.keyIndex;
  hasPositions = index.hasPositions;
  hasCounts = index.hasCounts;
  numberOfDocuments = index.numberOfDocuments;
  pointersList = indexReader.pointersList;
  countsList = indexReader.countsList;
  positionsList = indexReader.positionsList;
  intervalIterator = hasPositions ? new IndexIntervalIterator( this ) : null;
  singletonIntervalIterator = hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
  currentTerm = frequency = -1;
}
origin: it.unimi.di/mg4j-big

public BitStreamIndexReaderIndexIterator( final GammaDeltaGammaDeltaBitStreamIndexReader parent, final InputBitStream ibs ) {
 this.parent = parent;
 this.ibs = ibs;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 if ( index.hasPayloads ) throw new IllegalStateException();
 if ( ! index.hasCounts ) throw new IllegalStateException();
 countCoding = index.countCoding;
 if ( ! index.hasPositions ) throw new IllegalStateException();
 positionCoding = index.positionCoding;
 positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
 intervalIterator = index.hasPositions ? new it.unimi.di.big.mg4j.index.IndexIntervalIterator( this ) : null;
 singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
}
origin: it.unimi.di/mg4j

public BitStreamIndexReaderIndexIterator( final GammaDeltaGammaDeltaBitStreamIndexReader parent, final InputBitStream ibs ) {
 this.parent = parent;
 this.ibs = ibs;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 if ( index.hasPayloads ) throw new IllegalStateException();
 if ( ! index.hasCounts ) throw new IllegalStateException();
 countCoding = index.countCoding;
 if ( ! index.hasPositions ) throw new IllegalStateException();
 positionCoding = index.positionCoding;
 positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
 intervalIterator = index.hasPositions ? new it.unimi.di.mg4j.index.IndexIntervalIterator( this ) : null;
 singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
}
/** Positions the index on the inverted list of a given term.
origin: it.unimi.di/mg4j-big

singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
origin: it.unimi.di/mg4j

positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
intervalIterator = index.hasPositions ? new it.unimi.di.mg4j.index.IndexIntervalIterator( this ) : null;
singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
if ( ( index.quantum == -1 ) != ( index.height == -1 ) ) throw new IllegalArgumentException();
height = index.height;
origin: it.unimi.dsi/mg4j

public BitStreamHPIndexReaderIndexIterator( final BitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new IndexIntervalIterator();
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new int[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new int[ height + 1 ];
}
origin: it.unimi.di/mg4j-big

public BitStreamHPIndexReaderIndexIterator( final GammaDeltaGammaDeltaBitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new it.unimi.di.big.mg4j.index.IndexIntervalIterator( this );
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new long[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new long[ height + 1 ];
}
origin: it.unimi.di/mg4j-big

public BitStreamHPIndexReaderIndexIterator( final BitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new it.unimi.di.big.mg4j.index.IndexIntervalIterator( this );
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new long[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new long[ height + 1 ];
}
origin: it.unimi.dsi/mg4j-big

public BitStreamHPIndexReaderIndexIterator( final BitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new IndexIntervalIterator();
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new long[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new long[ height + 1 ];
}
origin: it.unimi.di/mg4j

public BitStreamHPIndexReaderIndexIterator( final BitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new it.unimi.di.mg4j.index.IndexIntervalIterator( this );
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new int[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new int[ height + 1 ];
}
/** Debug variable, usually unused, that keeps track of the end of the positions stream for the current term (but not for term 0!). */
origin: it.unimi.di/mg4j

public BitStreamHPIndexReaderIndexIterator( final GammaDeltaGammaDeltaBitStreamHPIndexReader parent, final InputBitStream ibs, final InputBitStream positions ) {
 this.parent = parent;
 this.ibs = ibs;
 this.positions = positions;
 index = parent.index;
 keyIndex = index.keyIndex;
 pointerCoding = index.pointerCoding;
 countCoding = index.countCoding;
 positionCoding = index.positionCoding;
 intervalIterator = new it.unimi.di.mg4j.index.IndexIntervalIterator( this );
 singletonIntervalIterator = Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator );
 height = index.height;
 if ( ! ( variableQuanta = index.quantum == 0 ) ) {
 quantum = index.quantum;
 quantumModuloMask = quantum - 1;
 quantumDivisionShift = Fast.mostSignificantBit( quantum );
 w = ( 1L << height ) * quantum;
 wModuloMask = w - 1;
 wDivisionShift = Fast.mostSignificantBit( w );
 }
 bitSkip = new long[ height + 1 ];
 positionsBitSkip = new long[ height + 1 ];
 pointerSkip = new int[ height + 1 ];
 towerTopB = new int[ height + 1 ];
 towerTopLog2B = new int[ height + 1 ];
 towerLowerB = new int[ height + 1 ];
 towerLowerLog2B = new int[ height + 1 ];
 pointerPrediction = new int[ height + 1 ];
}
/** Debug variable, usually unused, that keeps track of the end of the positions stream for the current term (but not for term 0!). */
origin: it.unimi.dsi/mg4j

if ( hasPositions ) positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
intervalIterator = index.hasPositions ? new IndexIntervalIterator() : null;
singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
if ( ( index.quantum == -1 ) != ( index.height == -1 ) ) throw new IllegalArgumentException();
height = index.height;
origin: it.unimi.di/mg4j

if ( hasPositions ) positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
intervalIterator = index.hasPositions ? new it.unimi.di.mg4j.index.IndexIntervalIterator( this ) : null;
singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
if ( ( index.quantum == -1 ) != ( index.height == -1 ) ) throw new IllegalArgumentException();
height = index.height;
origin: it.unimi.dsi/mg4j-big

if ( hasPositions ) positionCache = new int[ POSITION_CACHE_INITIAL_SIZE ];
intervalIterator = index.hasPositions ? new IndexIntervalIterator() : null;
singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
if ( ( index.quantum == -1 ) != ( index.height == -1 ) ) throw new IllegalArgumentException();
height = index.height;
origin: it.unimi.di/mg4j-big

singletonIntervalIterator = index.hasPositions ? Reference2ReferenceMaps.singleton( keyIndex, (IntervalIterator)intervalIterator ) : null;
it.unimi.dsi.fastutil.objectsReference2ReferenceMapssingleton

Javadoc

Returns a type-specific immutable map containing only the specified pair. The returned map is serializable and cloneable.

Note that albeit the returned map is immutable, its default return value may be changed.

Popular methods of Reference2ReferenceMaps

  • unmodifiable
    Returns an unmodifiable type-specific map backed by the given type-specific map.
  • fastIterator
    Returns an iterator that will be FastEntrySet, if possible, on the Map#entrySet() of the provided ma

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setContentView (Activity)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Runner (org.openjdk.jmh.runner)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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