Tabnine Logo
Document.getStreams
Code IndexAdd Tabnine to your IDE (free)

How to use
getStreams
method
in
com.github.cafdataprocessing.corepolicy.common.Document

Best Java code snippets using com.github.cafdataprocessing.corepolicy.common.Document.getStreams (Showing top 2 results out of 315)

origin: com.github.cafdataprocessing/corepolicy-condition-engine

public DocumentUnderEvaluationImpl(Document document, ConditionEngineMetadata conditionEngineMetadata, ApiProperties apiProperties){
  this(conditionEngineMetadata, apiProperties);
  // we hold onto a list of  MetadataValues internally, so convert at this point so we do it only once.
  for( Map.Entry<String, String> entry : document.getMetadata().entries())
  {
    this.metadata.put( entry.getKey(), new MetadataValue(apiProperties, entry.getValue()));
  }
  // we hold onto a list of  MetadataValues internally, so convert at this point so we do it only once.
  for( Map.Entry<String, InputStream> entry : document.getStreams().entries())
  {
    this.streams.put( entry.getKey(), new MetadataValue(apiProperties, entry.getValue()));
  }
  this.addMetadataString(DocumentFields.ChildDocumentCount, String.valueOf(document.getDocuments().size()));
  final int depth = getDepth();
  this.documents = document.getDocuments().stream().
      map(d -> {
        DocumentUnderEvaluation documentUnderEvaluation = new DocumentUnderEvaluationImpl(d, conditionEngineMetadata, apiProperties);
        documentUnderEvaluation.addMetadataString( DocumentFields.ChildDocumentDepth, String.valueOf(depth+1));
        return documentUnderEvaluation;
      }).collect(Collectors.toList());
  setupPreevaluatedInformation(document);
}
origin: com.github.cafdataprocessing/worker-policy

if(document.getStreams() != null) {
  for (Map.Entry<String, InputStream> streamEntry : document.getStreams().entries()){
    if(streamEntry.getValue() == null || !(streamEntry.getValue() instanceof DataStoreAwareInputStream)){
      continue;
com.github.cafdataprocessing.corepolicy.commonDocumentgetStreams

Javadoc

The streams available for the document, implementation should use case insensitive keys. note we do not own the streams, they are the callers responsibility who setup this map. and as such all items should be closed in the calling context when it returns back to the caller.

Popular methods of Document

  • getMetadata
    The metadata for the document, implementation should use case insensitive keys. To allow identificat
  • getDocuments
    Child documents of the document to be collated, each child document should have a "reference" field
  • getReference
  • close
  • getFullMetadata

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • startActivity (Activity)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • JComboBox (javax.swing)
  • 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 Vim 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