name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
streampipes_OutputStrategies_keep_rdh
/** * Creates a {@link org.apache.streampipes.model.output.KeepOutputStrategy}. Keep output strategies do not change the * schema of an input event, i.e., the output schema matches the input schema. * * @return KeepOutputStrategy */ public static KeepOutputStrategy keep() { return new KeepOutputStrategy(); }
3.26
streampipes_OutputStrategies_fixed_rdh
/** * Creates a {@link org.apache.streampipes.model.output.FixedOutputStrategy}. * Fixed output strategies always output the schema defined by the pipeline element itself. * * @param fixedProperties * An arbitrary number of event properties that form the output event schema * @return FixedOutputStrategy */ pub...
3.26
streampipes_OutputStrategies_userDefined_rdh
/** * Creates a {@link org.apache.streampipes.model.output.UserDefinedOutputStrategy}. User-defined output strategies are * fully flexible output strategies which are created by users at pipeline development time. * * @return UserDefinedOutputStrategy */ public static UserDefinedOutputStrategy userDefined() { ...
3.26
streampipes_SpOpcUaClient_getClient_rdh
/** * * * * @return current {@link org.eclipse.milo.opcua.sdk.client.OpcUaClient} */ public OpcUaClient getClient() { return this.client; }
3.26
streampipes_SpOpcUaClient_createListSubscription_rdh
/** * * * Register subscriptions for given OPC UA nodes * * @param nodes * List of {@link org.eclipse.milo.opcua.stack.core.types.builtin.NodeId} * @param opcUaAdapter * current instance of {@link OpcUaAdapter} * @throws Exception */ public void createListSubscr...
3.26
streampipes_SpOpcUaClient_connect_rdh
/** * * * Establishes appropriate connection to OPC UA endpoint depending on the {@link SpOpcUaClient} instance * * @throws UaException * An exception occurring during OPC connection */ public void connect() throws UaException, ExecutionException, InterruptedException, SpConfigurationException, URISyntaxExcepti...
3.26
streampipes_StatementHandler_m0_rdh
/** * Fills a prepared statement with the actual values base on {@link StatementHandler#eventParameterMap}. If * {@link StatementHandler#eventParameterMap} is empty or not complete (which should only happen once in the * beginning), it calls * {@link StatementHandler#generatePreparedStatement * (DbDescription, Tab...
3.26
streampipes_StatementHandler_executePreparedStatement_rdh
/** * Clears, fills and executes the saved prepared statement {@code ps} with the data found in * event. To fill in the values it calls * {@link StatementHandler#fillPreparedStatement(DbDescription, TableDescription, Connection, Map, String)}. * * @param event * Data to be saved in the SQL table * @throws SQLE...
3.26
streampipes_StatementHandler_extendPreparedStatement_rdh
/** * * @param event * @param s1 * @param s2 * @param index * @param preProperty * @param prefix * @return */ public int extendPreparedStatement(DbDescription dbDescription, final Map<String, Object> event, StringBuilder s1, StringBuilder s2, int index, String preProperty, String prefix) throws SpRuntimeExce...
3.26
streampipes_StatementHandler_generatePreparedStatement_rdh
/** * Initializes the variables {@link StatementHandler#eventParameterMap} and {@link StatementHandler#preparedStatement} * according to the parameter event. * * @param event * The event which is getting analyzed * @throws SpRuntimeException * When the tablename is not allowed * @throws SQLException * Wh...
3.26
streampipes_AssetLinkBuilder_withQueryHint_rdh
/** * Sets the query hint for the AssetLink being built. * * @param queryHint * The query hint to set. * @return The AssetLinkBuilder instance for method chaining. */ public AssetLinkBuilder withQueryHint(String queryHint) { this.assetLink.setQueryHint(queryHint); return this; }
3.26
streampipes_AssetLinkBuilder_create_rdh
/** * Static method to create a new instance of AssetLinkBuilder. * * @return A new instance of AssetLinkBuilder. */ public static AssetLinkBuilder create() { return new AssetLinkBuilder(); }
3.26
streampipes_AssetLinkBuilder_withLinkLabel_rdh
/** * Sets the link label for the AssetLink being built. * * @param linkLabel * The link label to set. * @return The AssetLinkBuilder instance for method chaining. */ public AssetLinkBuilder withLinkLabel(String linkLabel) { this.assetLink.setLinkLabel(linkLabel); return this; }
3.26
streampipes_AssetLinkBuilder_withResourceId_rdh
/** * Sets the resource ID for the AssetLink being built. * * @param resourceId * The resource ID to set. * @return The AssetLinkBuilder instance for method chaining. */ public AssetLinkBuilder withResourceId(String resourceId) { this.assetLink.setResourceId(resourceId); return this; }
3.26
streampipes_AssetLinkBuilder_withEditingDisabled_rdh
/** * Sets whether editing is disabled for the AssetLink being built. * * @param editingDisabled * Whether editing is disabled. * @return The AssetLinkBuilder instance for method chaining. */ public AssetLinkBuilder withEditingDisabled(boolean editingDisabled) { this.assetLink.setEditingDisabled(editingDis...
3.26
streampipes_AssetLinkBuilder_build_rdh
/** * Builds and returns the final instance of AssetLink. * * @return The constructed AssetLink instance. */ public AssetLink build() { return this.assetLink; }
3.26
streampipes_AssetLinkBuilder_withLinkType_rdh
/** * Sets the link type for the AssetLink being built. * * @param linkType * The link type to set. * @return The AssetLinkBuilder instance for method chaining. */ public AssetLinkBuilder withLinkType(String linkType) { this.assetLink.setLinkType(linkType); return this; }
3.26
streampipes_Sequence_processElement1_rdh
// @Override // public void open(Configuration parameters) throws Exception { // TODO: add RuntimeContext // state = getRuntimeContext().getState(new ValueStateDescriptor<>("sequence-event-storage", // EventStorage.class)); // } @Override public void processElement1(Event value, Context ctx, Collector<Event> out) throw...
3.26
streampipes_StreamPipesClient_create_rdh
/** * Create a new StreamPipes API client with custom port and HTTPS settings * * @param streamPipesHost * The hostname of the StreamPipes instance without scheme * @param streamPipesPort * The port of the StreamPipes instance * @param credentials * The credentials object * @param httpsDisabled * Set ...
3.26
streampipes_StreamPipesClient_pipelineElementTemplates_rdh
/** * Get API to work with pipline element templates * * @return {@link org.apache.streampipes.client.api.PipelineElementTemplateApi} */ @Override public IPipelineElementTemplateApi pipelineElementTemplates() { return new PipelineElementTemplateApi(config); }
3.26
streampipes_StreamPipesClient_registerDataFormat_rdh
/** * Register a new data format that is used by the live API * * @param spDataFormatFactory * The data format factory */ @Override public void registerDataFormat(SpDataFormatFactory spDataFormatFactory) { this.config.addDataFormat(spDataFormatFactory); }
3.26
streampipes_StreamPipesClient_processors_rdh
/** * Get API to work with data processors * * @return {@link DataProcessorApi} */ @Override public DataProcessorApi processors() { return new DataProcessorApi(config); }
3.26
streampipes_StreamPipesClient_sinks_rdh
/** * Get API to work with data sinks * * @return {@link org.apache.streampipes.client.api.DataSinkApi} */@Override public DataSinkApi sinks() { return new DataSinkApi(config); } /** * Get API to work with data streams * * @return {@link org.apache.streampipes.client.api.DataStreamApi}
3.26
streampipes_StreamPipesClient_pipelines_rdh
/** * Get API to work with pipelines * * @return {@link org.apache.streampipes.client.api.PipelineApi} */ @Override public PipelineApi pipelines() { return new PipelineApi(config); }
3.26
streampipes_PipelineManager_startPipeline_rdh
/** * Starts all processing elements of the pipeline with the pipelineId * * @param pipelineId * of pipeline to be started * @return pipeline status of the start operation */ public static PipelineOperationStatus startPipeline(String pipelineId) { Pipeline pipeline = getPipeline(pipelineId); return Oper...
3.26
streampipes_PipelineManager_getPipeline_rdh
/** * Returns the stored pipeline with the given pipeline id * * @param pipelineId * id of pipeline * @return pipeline resulting pipeline with given id */ public static Pipeline getPipeline(String pipelineId) { return getPipelineStorage().getPipeline(pipelineId); }
3.26
streampipes_PipelineManager_getPipelinesContainingElements_rdh
/** * Checks for the pipelines that contain the processing element * * @param elementId * the id of the processing Element * @return all pipelines containing the element */ public static List<Pipeline> getPipelinesContainingElements(String elementId) { return PipelineManager.getAllPipelines().stream().filte...
3.26
streampipes_PipelineManager_getAllPipelines_rdh
/** * Returns all pipelines * * @return all pipelines */ public static List<Pipeline> getAllPipelines() { return StorageDispatcher.INSTANCE.getNoSqlStore().getPipelineStorageAPI().getAllPipelines(); }
3.26
streampipes_PipelineManager_stopPipeline_rdh
/** * Stops all processing elements of the pipeline * * @param pipelineId * of pipeline to be stopped * @param forceStop * when it is true, the pipeline is stopped, even if not all processing element * containers could be reached * @return pipeline status of the start operation */public static PipelineO...
3.26
streampipes_PipelineManager_addPipeline_rdh
/** * Adds a new pipeline for the user with the username to the storage * * @param principalSid * the ID of the owner principal * @param pipeline * to be added * @return pipelineId of the stored pipeline */ public static String addPipeline(String principalSid, Pipeline pipeline) { String pipelineId = (O...
3.26
streampipes_PipelineManager_deletePipeline_rdh
/** * Deletes the pipeline with the pipeline Id * * @param pipelineId * of pipeline to be deleted */ public static void deletePipeline(String pipelineId) { var pipeline = getPipeline(pipelineId); if (Objects.nonNull(pipeline)) { getPipelineStorage().deletePipeline(pipelineId); new Notific...
3.26
streampipes_ExpandTitleToContentFilter_getInstance_rdh
/** * Returns the singleton instance for ExpandTitleToContentFilter. */ public static ExpandTitleToContentFilter getInstance() { return INSTANCE; }
3.26
streampipes_SpGeometryBuilder_getPrecisionModel_rdh
/** * Creates a {@link org.locationtech.jts.geom.PrecisionModel} with a specific precision. * WGS84/WGS84 will be created a {@link org.locationtech.jts.geom.PrecisionModel#FIXED} with * 7 decimal positions (scale 1000000). Any other epsg code will create a precision * with {@link org.locationtech.jts.geom.Precision...
3.26
streampipes_SpGeometryBuilder_isInWGSCoordinateRange_rdh
/** * Is in wgs coordinate range boolean. * * @param valueToCheck * Any Value * @param min * Min value to check * @param max * max value to check * @return true if value is in min max range */ private static boolean isInWGSCoordinateRange(double valueToCheck, double min, double max) { return (valueT...
3.26
streampipes_SpServiceDefinition_addMigrators_rdh
/** * Add a list of migrations to the service definition. * This inherently checks for duplicates and sorts the migrations as such that * migrations affecting lower versions always come first. * * @param migrators * migrators to add */ public void addMigrators(List<IModelMigrator<?, ?>> migrators) { for (v...
3.26
streampipes_InvocablePipelineElementResource_detach_rdh
// TODO move endpoint to /elementId/instances/runningInstanceId @DELETE @Path("{elementId}/{runningInstanceId}") @Produces(MediaType.APPLICATION_JSON)public Response detach(@PathParam("elementId") String elementId, @PathParam("runningInstanceId") String runningInstanceId) { IStreamPipesRuntime<?, ?> v7 = RunningInstanc...
3.26
streampipes_Labels_withId_rdh
/** * Creates a label with the string value of an enum. * Static properties require a fully-specified label, see {@link #from(String, String, String)} * * @param internalId * The internal identifier of the element, e.g., "LATITUDE-FIELD-MAPPING" * @return */ public static Label withId(Enum<?> internalId) { ...
3.26
streampipes_PipelineVerificationUtils_getRootNode_rdh
/** * returns the root node of a partial pipeline (a pipeline without an action) * * @param pipeline * @return {@link org.apache.streampipes.model.base.InvocableStreamPipesEntity} */ public static InvocableStreamPipesEntity getRootNode(Pipeline pipeline) throws NoSepaInPipelineException { List<InvocableStreamP...
3.26
streampipes_AbstractPipelineElementBuilder_iconUrl_rdh
/** * * @deprecated: Use {@link #withAssets(String...)} instead */ @Deprecated public X iconUrl(String iconUrl) { elementDescription.setIconUrl(iconUrl); return me(); }
3.26
streampipes_AbstractPipelineElementBuilder_providesAssets_rdh
/** * * @deprecated: Use {@link #withAssets(String...)} instead */ @Deprecated public X providesAssets(String... assets) { return withAssets(assets); }
3.26
streampipes_MqttClient_connect_rdh
/** * Start blocking connection to MQTT broker. */ public void connect() { try { this.conn = mqtt.blockingConnection(); this.conn.connect(); } catch (Exception e) {throw new SpRuntimeException((("Could not connect to MQTT broker: " + uri.toString()) + ", ") + e.getMessage(), e); }...
3.26
streampipes_MqttClient_publish_rdh
/** * Publish received event to MQTT broker. * * @param event * event to be published */ public void publish(Event event) { JsonDataFormatDefinition dataFormatDefinition = new JsonDataFormatDefinition(); byte[] payload = new ...
3.26
streampipes_MqttClient_createMqttClient_rdh
/** * Create new MQTT client */ public void createMqttClient() { this.mqtt = new MQTT(); this.uri = MqttUtils.makeMqttServerUri(options.getProtocol(), options.getHost(), options.getPort()); try { /** * Sets the url for connecting to the MQTT broker, e.g. {@code: tcp://localhost:1883}...
3.26
streampipes_MqttClient_disconnect_rdh
/** * Disconnect from MQTT broker. */ public void disconnect() { try { if (this.conn.isConnected()) { this.conn.disconnect(); }} catch (Exception e) { throw new SpRuntimeException((("Could not disconnect from MQTT broker: " + uri.toString()) + ", ") + e.getMessage(), ...
3.26
streampipes_DataSinkApi_subscribe_rdh
/** * Subscribe to the input stream of the sink * * @param sink * The data sink to subscribe to * @param brokerConfigOverride * Additional kafka settings which will override the default value (see docs) * @param callback * The callback where events will be received */ @Override public ISubscription subsc...
3.26
streampipes_TextDocumentStatistics_getNumWords_rdh
/** * Returns the overall number of words in all blocks. * * @return Sum */ public int getNumWords() { return numWords; }
3.26
streampipes_TextDocumentStatistics_avgNumWords_rdh
/** * Returns the average number of words at block-level (= overall number of words divided by the * number of blocks). * * @return Average */ public float avgNumWords() { return numWords / ((float) (numBlocks)); }
3.26
streampipes_StreamPipesCredentials_withApiKey_rdh
/** * Create new credentials settings * * @param username * The username of the authenticated user - * note that this is currently the email address of the registered user! * @param apiKey * The API key as generated by StreamPipes */ public static CredentialsProvider withApiKey(String username, String a...
3.26
streampipes_InfluxRequests_databaseExists_rdh
/** * Checks whether the given database exists. * * @param influxDb * The InfluxDB client instance * @param dbName * The name of the database, the method should look for * @return True if the database exists, false otherwise */public static boolean databaseExists(InfluxDB influxDb, String dbName) { Que...
3.26
streampipes_DataStreamResourceManager_update_rdh
/** * Takes a data stream {@link SpDataStream} as an input updates it in the database */ public void update(SpDataStream dataStream) { db.updateElement(dataStream); }
3.26
streampipes_UnicodeTokenizer_tokenize_rdh
/** * Tokenizes the text and returns an array of tokens. * * @param text * The text * @return The tokens */ public static String[] tokenize(final CharSequence text) { return PAT_NOT_WORD_BOUNDARY.matcher(PAT_WORD_BOUNDARY.matcher(text).replaceAll("⁣")).replaceAll("$1").replaceAll("[ ⁣]+", " ").trim().split(...
3.26
streampipes_Image_getArea_rdh
/** * Returns the image's area (specified by width * height), or -1 if width/height weren't both * specified or could not be parsed. * * @return */public int getArea() { return area; }
3.26
streampipes_SQLStatementUtils_extractEventProperties_rdh
/** * Creates a SQL-Query with the given Properties (SQL-Injection safe). For nested properties it * recursively extracts the information. EventPropertyList are getting converted to a string (so * in SQL to a VARCHAR(255)). For each type it uses {@link DbDataTypeFactory#getFromUri(String, SupportedDbEngines)} * int...
3.26
streampipes_SQLStatementUtils_checkRegEx_rdh
/** * Checks if the input string is allowed (regEx match and length > 0) * * @param input * String which is getting matched with the regEx * @param regExIdentifier * Information about the use of the input. Gets included in the exception message * @throws SpRuntimeException * If {@code input} does not matc...
3.26
streampipes_ConnectWorkerDescriptionProvider_getRegisteredAdapters_rdh
/** * This is a helper method to mock the Declarer Singleton in unit tests * * @return the registered adapters from the DeclarerSingleton */ public Collection<StreamPipesAdapter> getRegisteredAdapters() { return DeclarersSingleton.getInstance().getAdapters(); }
3.26
streampipes_ConnectWorkerDescriptionProvider_getAdapterDescriptions_rdh
/** * Retrieves a list of all adapter descriptions that are currently registered. * * @return a list of {@link AdapterDescription} objects representing the registered adapters */ public List<AdapterDescription> getAdapterDescriptions() { return getRegisteredAdapters().stream().map(adapter -> applyLocales(adapte...
3.26
streampipes_MigrateExtensionsResource_getMigrator_rdh
/** * Find and return the corresponding {@link IModelMigrator} instance within the registered migrators. * This allows to pass the corresponding model migrator to a {@link ModelMigratorConfig} which is exchanged * between Core and Extensions service. * * @param modelMigratorConfig * config that describes the mo...
3.26
streampipes_MigrateExtensionsResource_executeMigration_rdh
/** * Executes the migration for the given pipeline element based on the given migrator. * * @param migrator * migrator that executes the migration * @param pipelineElementDescription * pipeline element to be migrated * @return the migration result containing either the migrat...
3.26
streampipes_MigrateExtensionsResource_handleMigration_rdh
/** * Migrates a pipeline element instance based on the provided {@link MigrationRequest}. * The outcome of the migration is described in {@link MigrationResult}. * The result is always part of the response. * Independent, of the migration outcome, the returned response always has OK as status code. * It is the re...
3.26
streampipes_LargestContentExtractor_getInstance_rdh
/** * Returns the singleton instance for {@link LargestContentExtractor}. */ public static LargestContentExtractor getInstance() { return INSTANCE; }
3.26
streampipes_DensityRulesClassifier_getInstance_rdh
/** * Returns the singleton instance for RulebasedBoilerpipeClassifier. */ public static DensityRulesClassifier getInstance() { return INSTANCE; }
3.26
streampipes_ChangedValueDetectionProcessor_declareModel_rdh
// TODO: Change Icon @Override public DataProcessorDescription declareModel() { return ProcessingElementBuilder.create("org.apache.streampipes.processors.transformation.jvm.changed-value").category(DataProcessorType.VALUE_OBSERVER).withLocales(Locales.EN).withAssets(Assets.DOCUMENTATION).requiredStream(StreamRequir...
3.26
streampipes_ResetManagement_reset_rdh
/** * Remove all configurations for this user. This includes: * [pipeline assembly cache, pipelines, adapters, files] * * @param username */ public static void reset(String username) { logger.info("Start resetting the system"); // Set hide tutorial to false for user ...
3.26
streampipes_Operations_validatePipeline_rdh
/** * * @param pipeline * the pipeline to validate * @return PipelineModificationMessage a message containing desired pipeline modifications */ public static PipelineModificationMessage validatePipeline(Pipeline pipeline) throws Exception { return new PipelineVerificationHandlerV2(pipeline).verifyPipeline();...
3.26
streampipes_ImageZipAdapter_start_rdh
/** * First extracts the user input and then starts a thread publishing events with images in the zip file * * @param collector * is used to pre-process and publish events on message broker * @param extractor * to extract configurations * @param infinite * Describes if the replay should be restarted when ...
3.26
streampipes_ImageZipAdapter_stop_rdh
/** * Stops the running thread that publishes the images */ public void stop() { task.interrupt(); running = false; }
3.26
streampipes_TreeUtils_findSEPAElement_rdh
/** * * @param id * the DOM ID * @param sepas * list of sepas in model-client format * @param streams * list of streams in model-client format * @return a SEPA-client element */ public static NamedStreamPipesEntity findSEPAElement(String id, List<DataProcessorInvocation> sepas, List<SpDataStream> streams...
3.26
streampipes_TreeUtils_findByDomId_rdh
/** * * @param id * the DOM ID * @param graphs * list of invocation graphs * @return an invocation graph with a given DOM Id */ public static InvocableStreamPipesEntity findByDomId(String id, List<InvocableStreamPipesEntity> graphs) { for (InvocableStreamPipesEntity graph : graphs) { if (graph.ge...
3.26
streampipes_TagActionMap_setTagAction_rdh
/** * Sets a particular {@link TagAction} for a given tag. Any existing TagAction for that tag will * be removed and overwritten. * * @param tag * The tag (will be stored internally 1. as it is, 2. lower-case, 3. upper-case) * @param action * The {@link TagAction} */ protected void setTagAction(final Stri...
3.26
streampipes_TagActionMap_m0_rdh
/** * Adds a particular {@link TagAction} for a given tag. If a TagAction already exists for that * tag, a chained action, consisting of the previous and the new {@link TagAction} is created. * * @param tag * The tag (will be stored internally 1. as it is, 2. lower-case, 3. upper-case) * @param action * The ...
3.26
streampipes_ElasticsearchSinkBase_buildBulkProcessor_rdh
/** * Build the {@link BulkProcessor}. * * <p>Note: this is exposed for testing purposes. */ @VisibleForTesting protected BulkProcessor buildBulkProcessor(BulkProcessor.Listener listener) { checkNotNull(listener); BulkProcessor.Builder bulkProcessorBuilder = callBridge.createBulkProcessorBuilder(client, listener); ...
3.26
streampipes_ElasticsearchSinkBase_disableFlushOnCheckpoint_rdh
/** * Disable flushing on checkpoint. When disabled, the sink will not wait for all * pending action requests to be acknowledged by Elasticsearch on checkpoints. * * <p>NOTE: If flushing on checkpoint is disabled, the Flink Elasticsearch Sink does NOT * provide any strong guarantees for at-least-once delivery of a...
3.26
streampipes_TrailingHeadlineToBoilerplateFilter_getInstance_rdh
/** * Returns the singleton instance for ExpandTitleToContentFilter. */ public static TrailingHeadlineToBoilerplateFilter getInstance() { return INSTANCE; }
3.26
streampipes_Formats_cborFormat_rdh
/** * Defines the transport format CBOR used by a data stream at runtime. * * @return The {@link org.apache.streampipes.model.grounding.TransportFormat} of type CBOR. */ public static TransportFormat cborFormat() { return new TransportFormat(MessageFormat.CBOR); } /** * Defines the transport format Fast-Seria...
3.26
streampipes_Formats_smileFormat_rdh
/** * Defines the transport format SMILE used by a data stream at runtime. * * @return The {@link org.apache.streampipes.model.grounding.TransportFormat} of type SMILE. */ public static TransportFormat smileFormat() { return new TransportFormat(MessageFormat.SMILE); }
3.26
streampipes_Formats_thriftFormat_rdh
/** * Defines the transport format Apache Thrift used by a data stream at runtime. * * @return The {@link org.apache.streampipes.model.grounding.TransportFormat} of type Thrift. */ public static TransportFormat thriftFormat() { return new TransportFormat(MessageFormat.THRIFT); }
3.26
streampipes_Formats_jsonFormat_rdh
/** * Defines the transport format JSON used by a data stream at runtime. * * @return The {@link org.apache.streampipes.model.grounding.TransportFormat} of type JSON. */ public static TransportFormat jsonFormat() { return new TransportFormat(MessageFormat.JSON); }
3.26
streampipes_TerminatingBlocksFinder_process_rdh
// public static long timeSpent = 0; public boolean process(TextDocument doc) throws BoilerpipeProcessingException { boolean changes = false; // long t = System.currentTimeMillis(); for (TextBlock tb : doc.getTextBlocks()) { final int numWords = tb.getNumWords(); if (numWords < 15) { f...
3.26
streampipes_TerminatingBlocksFinder_startsWithNumber_rdh
/** * Checks whether the given text t starts with a sequence of digits, followed by one of the given * strings. * * @param t * The text to examine * @param len * The length of the text to examine * @param str * Any strings that may follow the digits. * @return true if at least one combination matches *...
3.26
streampipes_TerminatingBlocksFinder_getInstance_rdh
/** * Returns the singleton instance for TerminatingBlocksFinder. */ public static TerminatingBlocksFinder getInstance() { return INSTANCE; }
3.26
streampipes_DataProcessorApi_m1_rdh
/** * Subscribe to the input stream of the sink * * @param processor * The data processor to subscribe to * @param index * The index of the input stream * @param brokerConfigOverride * Additional kafka settings which will override the default value (see docs) * @param callback * The callback where eve...
3.26
streampipes_DataProcessorApi_m0_rdh
/** * Subscribe to the output stream of the processor * * @param processor * The data processor to subscribe to * @param brokerConfigOverride * Additional broker settings which will override the default value (see docs) * @param callback * The callback where events will be received */ @Override public IS...
3.26
streampipes_DataProcessorApi_subscribe_rdh
/** * Subscribe to the input stream of the processor * * @param processor * The data processor to subscribe to * @param index * The index of the input stream * @param callback * The callback where events will be received */ @Override public ISubscription subscribe(DataProcessorInvocation processor, Input...
3.26
streampipes_DeclarersSingleton_add_rdh
/** * * @Deprecated Use ServiceDefinitionBuilder instead */ @Deprecated public DeclarersSingleton add(IStreamPipesPipelineElement<?> d) { if (d instanceof IStreamPipesDataProcessor) { addDataProcessor(((IStreamPipesDataProcessor) (d))); } else if (d instanceof IStreamPipesDataStream) { addDat...
3.26
streampipes_SupportedFormats_smileFormat_rdh
/** * Defines that a pipeline element (data processor or data sink) supports processing messaging * arriving in smile format * * @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}. */ public static TransportFormat smileFormat() { return new TransportFormat(MessageFormat.SMILE); }
3.26
streampipes_SupportedFormats_thriftFormat_rdh
/** * Defines that a pipeline element (data processor or data sink) supports processing messaging arriving in Thrift * format * * @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}. */ public static TransportFormat thriftFormat() { return new TransportFormat(MessageFormat.THRI...
3.26
streampipes_SupportedFormats_jsonFormat_rdh
/** * Defines that a pipeline element (data processor or data sink) supports processing messaging arriving in JSON format * * @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}. */ public static TransportFormat jsonFormat() { return new TransportFormat(MessageFormat.JSON); }
3.26
streampipes_SupportedFormats_fstFormat_rdh
/** * Defines that a pipeline element (data processor or data sink) supports processing messaging * arriving in fast-serialization format * * @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}. */ public static TransportFormat fstFormat() { return new TransportFormat(MessageFormat...
3.26
streampipes_SupportedFormats_cborFormat_rdh
/** * Defines that a pipeline element (data processor or data sink) supports processing messaging * arriving in Cbor format * * @return The resulting {@link org.apache.streampipes.model.grounding.TransportFormat}. */ public static TransportFormat cborFormat() { return new TransportForma...
3.26
streampipes_SwingingDoorTrendingFilter_filter_rdh
/** * input a newly arrived event and output whether a new characteristic event is filtered * * @param time * the timestamp extracted from the newly arrived event * @param value * the value extracted from the newly arrived event * @param event * the newly arrived event * @return true if a new characteris...
3.26
streampipes_SwingingDoorTrendingFilter_reset_rdh
/** * if current point to the last stored point's time distance >= compressionMaxTimeInterval, will store current * point and reset upperDoor and lowerDoor * * @param time * current time * @param value * current value * @param event ...
3.26
streampipes_SwingingDoorTrendingFilter_forward_rdh
/** * output the recently filtered characteristic event to the collector * * @param collector * the event collector */public void forward(SpOutputCollector collector) { collector.collect(lastStoredEvent); }
3.26
streampipes_PropertyRequirementsBuilder_create_rdh
/** * Creates new requirements for a data processor or a data sink at a property level. A matching event property * needs to provide all requirements assigned by this class. * * @return {@link PropertyRequirementsBuilder} */ public static PropertyRequirementsBuilder create(Datatypes propertyDatatype) {return new ...
3.26
streampipes_AdapterHealthCheck_m1_rdh
/** * In this method it is checked which adapters are currently running. * Then it calls all workers to validate if the adapter instance is * still running as expected. If the adapter is not running anymore a new worker instance is invoked. */ public void m1() { // Get all adapters Map<String, AdapterDescri...
3.26
streampipes_InfluxDbStreamAdapter_getNewestTimestamp_rdh
// Returns the newest timestamp in the measurement as unix timestamp in Nanoseconds. // If no entry is found, a SpRuntimeException is thrown String getNewestTimestamp() throws SpRuntimeException { List<List<Object>> queryResult = influxDbClient.query(("SELECT * FROM " + influxDbClient.getMeasurement()) + " ORDER B...
3.26
streampipes_ElasticsearchApiCallBridge_cleanup_rdh
/** * Perform any necessary state cleanup. */ public void cleanup() {// nothing to cleanup }
3.26
streampipes_ElasticsearchApiCallBridge_createRequestIndex_rdh
/** * Creates an RequestIndexer instance. * * @param bulkProcessor * The instance of BulkProcessor * @param flushOnCheckpoint * If true, the producer will wait until all outstanding action requests have been * sent to Elasticsearch. * @param numPendingRequests * Number of pending action requests not ye...
3.26
streampipes_FlinkRuntime_addSource_rdh
// TODO private DataStream<Event> addSource(SourceFunction<Map<String, Object>> sourceFunction, Integer sourceIndex) { return env.addSource(sourceFunction).flatMap(new MapToEventConverter<>(runtimeParameters.getInputSourceInfo(sourceIndex).getSourceId(), runtimeParameters)).flatMap(new StatisticLogger(null)); }
3.26
streampipes_FlinkRuntime_getStreamSource_rdh
/** * This method takes the i's input stream and creates a source for the flink graph * Currently just kafka is supported as a protocol * TODO Add also jms support * * @param i * @return */ private SourceFunction<Map<...
3.26
streampipes_FlinkRuntime_appendEnvironmentConfig_rdh
/** * This method can be called in case additional environment settings should be applied to the runtime. * * @param env * The Stream Execution environment */ public void appendEnvironmentConfig(StreamExecutionEnvironment env) { // This sets the stream time characteristics // The default value is TimeCha...
3.26