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

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

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

origin: Netflix/hollow

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

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

public HollowSetOrdinalIterator(int setOrdinal, HollowSetTypeDataAccess dataAccess) {
  this.setOrdinal = setOrdinal;
  this.dataAccess = dataAccess;
  this.numBuckets = HashCodes.hashTableSize(dataAccess.size(setOrdinal));
}
origin: Netflix/hollow

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

origin: Netflix/hollow

private HollowSetCachedDelegate(HollowSetTypeDataAccess dataAccess, HollowSetTypeAPI typeAPI, int ordinal) {
  int size = dataAccess.size(ordinal);
  int ordinals[] = new int[HashCodes.hashTableSize(size)];
  for(int i=0;i<ordinals.length;i++) {
    ordinals[i] = dataAccess.relativeBucketValue(ordinal, i);
  }
  this.ordinals = ordinals;
  this.size = size;
  this.hashMask = ordinals.length - 1;
  this.dataAccess = dataAccess;
  this.typeAPI = typeAPI;
}
origin: Netflix/hollow

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

@Override
public int size(int ordinal) {
  sampler().recordSize();
  recordStackTrace();
  if(!ordinalIsPresent(ordinal))
    return ((HollowSetTypeDataAccess)dataAccess.getTypeDataAccess(getSchema().getName(), ordinal)).size(ordinal);
  return removedRecords().size(getMappedOrdinal(ordinal));
}

origin: Netflix/hollow

Assert.assertEquals(3, setDataAccess.size(i));
Assert.assertTrue(setDataAccess.contains(i, i));
Assert.assertTrue(setDataAccess.contains(i, i+1));
Assert.assertEquals(3, setDataAccess.size(ordinal));
Assert.assertTrue(setDataAccess.contains(ordinal, expectedValue));
Assert.assertTrue(setDataAccess.contains(ordinal, expectedValue+1));
com.netflix.hollow.core.read.dataaccessHollowSetTypeDataAccesssize

Popular methods of HollowSetTypeDataAccess

  • contains
    Generally, the method #findElement(int,Object...) may be more useful.
  • potentialMatchOrdinalIterator
  • findElement
    Returns The matching ordinal of the element from the set at the specified ordinal which matches the
  • getDataAccess
  • getSchema
  • ordinalIterator
  • relativeBucketValue

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 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