Tabnine Logo
StructFieldVisitor.read
Code IndexAdd Tabnine to your IDE (free)

How to use
read
method
in
com.ociweb.pronghorn.struct.StructFieldVisitor

Best Java code snippets using com.ociweb.pronghorn.struct.StructFieldVisitor.read (Showing top 8 results out of 315)

origin: com.ociweb/PronghornPipes

public <T> boolean identityVisit(DataInputBlobReader<?> reader, T attachedObject, StructFieldVisitor<T> visitor) {
  int structId = DataInputBlobReader.getStructType(reader);
  
  int idx =  StructRegistry.FIELD_MASK & (int)fieldLookupByIdentity(attachedObject, structId);
  if (idx>=0) {
    DataInputBlobReader.position(reader, DataInputBlobReader.readFromLastInt(reader, idx));
    visitor.read((T)(fieldLocals[structId][idx]), reader);
    return true;
  } else {
    return false;
  }
}
origin: oci-pronghorn/Pronghorn

visitor.read((T) locals[i], reader, fieldIdBase | i);
origin: com.ociweb/pronghorn-pipes

visitor.read((T) locals[i], reader, fieldIdBase | i);
origin: oci-pronghorn/Pronghorn

visitor.read((T) locals[i], reader, fieldIdBase | i);
origin: com.ociweb/PronghornPipes

public <T> boolean visit(DataInputBlobReader<?> reader, 
           Class<T> attachedInstanceOf, 
           StructFieldVisitor<T> visitor) {
      
  boolean result = false;
  int structId = DataInputBlobReader.getStructType(reader);
  if (structId>0) {
    
    Object[] locals = this.fieldLocals[StructRegistry.STRUCT_MASK & structId];
    for(int i = 0; i<locals.length; i++) {
      if (attachedInstanceOf.isInstance(locals[i])) {
        int readFromLastInt = DataInputBlobReader.readFromLastInt(reader, i);
        //if no value then do not visit
        if (readFromLastInt>=0 && readFromLastInt<reader.length()) {
          result = true;
          DataInputBlobReader.position(reader, readFromLastInt);    
          
          //logger.info("visit struct id {} {}",structId, Integer.toHexString(structId));
          //logger.info("bbb reading {} from position {} pos {} from pipe {}",locals[i], readFromLastInt, i, reader.getBackingPipe(reader).id );
                      
          visitor.read((T) locals[i], reader);
        }
      }
    }
  }
  return result;
}
 
origin: com.ociweb/pronghorn-pipes

public <T> boolean identityVisit(DataInputBlobReader<?> reader, T attachedObject, StructFieldVisitor<T> visitor) {
  int structId = DataInputBlobReader.getStructType(reader);
  long fieldIdBase = ((long)(IS_STRUCT_BIT|(STRUCT_MASK & structId)))<<STRUCT_OFFSET;
  
  int idx =  StructRegistry.FIELD_MASK & (int)fieldLookupByIdentity(attachedObject, structId);
  if (idx>=0) {
    int readFromLastInt = DataInputBlobReader.readFromLastInt(reader, idx);
    if (readFromLastInt>=0) {
      DataInputBlobReader.position(reader, readFromLastInt);
      visitor.read((T)(fieldLocals[STRUCT_MASK&structId][idx]), reader, fieldIdBase | idx);
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}
origin: com.ociweb/pronghorn-pipes

visitor.read((T) locals[i], reader, fieldIdBase | i);
origin: oci-pronghorn/Pronghorn

public <T> boolean identityVisit(DataInputBlobReader<?> reader, T attachedObject, StructFieldVisitor<T> visitor) {
  int structId = DataInputBlobReader.getStructType(reader);
  long fieldIdBase = ((long)(IS_STRUCT_BIT|(STRUCT_MASK & structId)))<<STRUCT_OFFSET;
  
  int idx =  StructRegistry.FIELD_MASK & (int)fieldLookupByIdentity(attachedObject, structId);
  if (idx>=0) {
    int readFromLastInt = DataInputBlobReader.readFromLastInt(reader, idx);
    if (readFromLastInt>=0) {
      DataInputBlobReader.position(reader, readFromLastInt);
      visitor.read((T)(fieldLocals[STRUCT_MASK&structId][idx]), reader, fieldIdBase | idx);
      return true;
    } else {
      return false;
    }
  } else {
    return false;
  }
}
com.ociweb.pronghorn.structStructFieldVisitorread

Popular methods of StructFieldVisitor

    Popular in Java

    • Running tasks concurrently on multiple threads
    • startActivity (Activity)
    • findViewById (Activity)
    • setRequestProperty (URLConnection)
    • Table (com.google.common.collect)
      A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
    • OutputStream (java.io)
      A writable sink for bytes.Most clients will use output streams that write data to the file system (
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • TreeSet (java.util)
      TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
    • UUID (java.util)
      UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
    • ExecutorService (java.util.concurrent)
      An Executor that provides methods to manage termination and methods that can produce a Future for tr
    • 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