Tabnine Logo
HollowMapTypeDataAccess.size
Code IndexAdd Tabnine to your IDE (free)

How to use
size
method
in
com.netflix.hollow.core.read.dataaccess.HollowMapTypeDataAccess

Best Java code snippets using com.netflix.hollow.core.read.dataaccess.HollowMapTypeDataAccess.size (Showing top 9 results out of 315)

origin: Netflix/hollow

@Override
public int size(int ordinal) {
  return dataAccess.size(ordinal);
}
origin: Netflix/hollow

public HollowMapEntryOrdinalIteratorImpl(int mapOrdinal, HollowMapTypeDataAccess dataAccess) {
  this.mapOrdinal = mapOrdinal;
  this.dataAccess = dataAccess;
  this.numBuckets = HashCodes.hashTableSize(dataAccess.size(mapOrdinal));
}
origin: Netflix/hollow

@Override
public int size(int ordinal) {
  return currentDataAccess().size(ordinal);
}
origin: Netflix/hollow

public int size(int ordinal) {
  return getTypeDataAccess().size(ordinal);
}

origin: Netflix/hollow

public PotentialMatchHollowMapEntryOrdinalIteratorImpl(int mapOrdinal, HollowMapTypeDataAccess dataAccess, int hashCode) {
  this.mapOrdinal = mapOrdinal;
  this.dataAccess = dataAccess;
  this.numBuckets = HashCodes.hashTableSize(dataAccess.size(mapOrdinal));
  this.currentBucket = HashCodes.hashInt(hashCode) & (numBuckets - 1);
}
origin: Netflix/hollow

private HollowMapCachedDelegate(HollowMapTypeDataAccess dataAccess, HollowMapTypeAPI typeAPI, int ordinal) {
  int size = dataAccess.size(ordinal);
  int ordinals[] = new int[HashCodes.hashTableSize(size) * 2];
  for(int i=0;i<ordinals.length;i+=2) {
    long bucketData = dataAccess.relativeBucket(ordinal, i/2);
    ordinals[i] = (int)(bucketData >> 32);
    ordinals[i + 1] = (int)bucketData;
  }
  this.ordinals = ordinals;
  this.hashMask = (ordinals.length / 2) - 1;
  this.size = size;
  this.dataAccess = dataAccess;
  this.typeAPI = typeAPI;
}
origin: Netflix/hollow

int size = typeDataAccess.size(ordinal);
origin: Netflix/hollow

@Override
public int size(int ordinal) {
  sampler().recordSize();
  recordStackTrace();
  if(!ordinalIsPresent(ordinal))
    return ((HollowMapTypeDataAccess)dataAccess.getTypeDataAccess(getSchema().getName(), ordinal)).size(ordinal);
  return removedRecords().size(getMappedOrdinal(ordinal));
}
origin: Netflix/hollow

Assert.assertEquals(3, mapDataAccess.size(i));
Assert.assertEquals(i+1, mapDataAccess.get(i, i));
Assert.assertEquals(i+3, mapDataAccess.get(i, i+2));
Assert.assertEquals(3, mapDataAccess.size(ordinal));
Assert.assertEquals(expectedValue+1, mapDataAccess.get(ordinal, expectedValue));
Assert.assertEquals(expectedValue+3, mapDataAccess.get(ordinal, expectedValue+2));
com.netflix.hollow.core.read.dataaccessHollowMapTypeDataAccesssize

Popular methods of HollowMapTypeDataAccess

  • get
  • getDataAccess
  • getSchema
  • ordinalIterator
  • potentialMatchOrdinalIterator
  • findEntry
  • findKey
  • findValue
  • relativeBucket

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • 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
  • Top PhpStorm plugins
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