Tabnine Logo
HollowCollectionTypeDataAccess
Code IndexAdd Tabnine to your IDE (free)

How to use
HollowCollectionTypeDataAccess
in
com.netflix.hollow.core.read.dataaccess

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

origin: Netflix/hollow

private List<Field> createCollectionFields(HollowEffigy effigy) {
  List<Field> fields = new ArrayList<Field>();
  HollowCollectionTypeDataAccess typeDataAccess = (HollowCollectionTypeDataAccess) effigy.dataAccess;
  HollowCollectionSchema schema = typeDataAccess.getSchema();
  HollowOrdinalIterator iter = typeDataAccess.ordinalIterator(effigy.ordinal);
  int elementOrdinal = iter.next();
  while(elementOrdinal != NO_MORE_ORDINALS) {
    HollowEffigy elementEffigy = effigy(typeDataAccess.getDataAccess(), schema.getElementType(), elementOrdinal);
    fields.add(new Field("element", elementEffigy));
    elementOrdinal = iter.next();
  }
  
  return fields;
}
origin: Netflix/hollow

} else if(typeDataAccess instanceof HollowCollectionTypeDataAccess) {
  HollowCollectionTypeDataAccess collectionAccess = (HollowCollectionTypeDataAccess)typeDataAccess;
  childDataAccess = typeDataAccess.getDataAccess().getTypeDataAccess(collectionAccess.getSchema().getElementType());
  for(int i=0;i<ordinals.size();i++) {
    HollowOrdinalIterator iter = collectionAccess.ordinalIterator(ordinals.get(i));
    int childOrdinal = iter.next();
    while(childOrdinal != HollowOrdinalIterator.NO_MORE_ORDINALS) {
origin: Netflix/hollow

@Override
public int doTraversal(int ordinal) {
  if(child == null)
    return 1;
  HollowOrdinalIterator iter = dataAccess().ordinalIterator(ordinal);
  
  int numMatches = 0;
  int elementOrdinal = iter.next();
  while(elementOrdinal != HollowOrdinalIterator.NO_MORE_ORDINALS) {
    prepareMultiply();
    
    child.traverse(elementOrdinal);
    
    numMatches += doMultiply();
    
    elementOrdinal = iter.next();
  }
  
  return numMatches;
}
origin: Netflix/hollow

String elementType = collectionSchema.getElementType();
HollowOrdinalIterator it = collectionTypeDataAccess.ordinalIterator(ordinal);
List<Object> valueList = new ArrayList<>();
int refOrdinal = it.next();
origin: Netflix/hollow

String elementType = collectionSchema.getElementType();
HollowOrdinalIterator it = collectionTypeDataAccess.ordinalIterator(ordinal);
int refOrdinal = it.next();
if (refOrdinal != HollowOrdinalIterator.NO_MORE_ORDINALS) {
com.netflix.hollow.core.read.dataaccessHollowCollectionTypeDataAccess

Javadoc

A handle for all of the records of a specific LIST or SET type in a Hollow dataset. The most common type of HollowCollectionTypeDataAccessis a HollowCollectionTypeReadState.

Most used methods

  • getSchema
  • ordinalIterator
  • getDataAccess

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JFileChooser (javax.swing)
  • 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