name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
streampipes_BoilerpipeSAXInput_getTextDocument_rdh
/** * Retrieves the {@link TextDocument} using the given HTML parser. * * @param parser * The parser used to transform the input into boilerpipe's internal representation. * @return The retrieved {@link TextDocument} * @throws BoilerpipeProcessingException */ public TextDocument getTextDocument(final Boilerpip...
3.26
streampipes_PipelineElementMigrationManager_migratePipelineElement_rdh
/** * Handle the migration of a pipeline element with respect to the given model migration configs. * All applicable migrations found in the provided configs are executed for the given pipeline element. * In case a migration fails, the related pipeline element receives the latest definition of its static properties,...
3.26
streampipes_PipelineElementMigrationManager_handleFailedMigrations_rdh
/** * Takes care about the failed migrations of pipeline elements. * This includes the following steps: * <ul> * <li> logging of failed pipeline elements * <li> setting migration results as pipeline notifications * <li> updating pipeline health status * <li> stopping the pipeline * </ul> * * @param pi...
3.26
streampipes_PipelineElementMigrationManager_updateFailedPipelineElement_rdh
/** * Update the static properties of the failed pipeline element with its description. * This allows to adapt the failed pipeline element in the UI to overcome the failed migration. * * @param pipelineElement * pipeline element with failed migration */ protected void updateFailedPipelineElement(InvocableStream...
3.26
streampipes_BoilerpipeHTMLContentHandler_startElement_rdh
// @Override public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException { labelStacks.add(null); TagAction ta = tagActions.get(localName); if (ta != null) { if (ta.changesTagLevel()) { tagLevel++; } flush = ta.start(this, localName, qName, a...
3.26
streampipes_BoilerpipeHTMLContentHandler_ignorableWhitespace_rdh
// @Override public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException { if (!sbLastWasWhitespace) { textBuffer.append(' '); tokenBuffer.append(' '); } sbLastWasWhitespace = true; }
3.26
streampipes_BoilerpipeHTMLContentHandler_endElement_rdh
// @Override public void endElement(String uri, String localName, String qName) throws SAXException { TagAction ta = tagActions.get(localName); if (ta != null) { flush = ta.end(this, localName, qName) | flush;} else { flush = true; } if ((ta == null) || ta.changesTagLevel())...
3.26
streampipes_BoilerpipeHTMLContentHandler_processingInstruction_rdh
// @Override public void processingInstruction(String target, String data) throws SAXException { }
3.26
streampipes_BoilerpipeHTMLContentHandler_recycle_rdh
/** * Recycles this instance. */ public void recycle() { tokenBuffer.setLength(0); textBuffer.setLength(0); inBody = 0; inAnchor = 0; inIgnorableElement = 0; sbLastWasWhitespace = false; textElementIdx = 0; textBlocks.clear(); lastStartTag = null; lastEndTag = null; lastE...
3.26
streampipes_BoilerpipeHTMLContentHandler_characters_rdh
// @Override public void characters(char[] ch, int start, int length) throws SAXException { textElementIdx++;if (flush) { flushBlock(); flush = false; } if (inIgnorableElement != 0) { return; } char c;boolean startWhitespace = false; boolean endWhitespace = false; if (length == 0) { return; } final int...
3.26
streampipes_BoilerpipeHTMLContentHandler_m0_rdh
// @Override public void m0(String prefix) throws SAXException { }
3.26
streampipes_BoilerpipeHTMLContentHandler_toTextDocument_rdh
/** * Returns a {@link TextDocument} containing the extracted {@link TextBlock} s. NOTE: Only call * this after parsing. * * @return The {@link TextDocument} */ public TextDocument toTextDocument() { // just to be sure flushBlock(); return new TextDocument(getTitle(), getTextBlocks()); }
3.26
streampipes_BoilerpipeHTMLContentHandler_endDocument_rdh
// @Override public void endDocument() throws SAXException { flushBlock(); }
3.26
streampipes_GuessSchemaBuilder_create_rdh
/** * Creates a new guess schema object using the builder pattern. */ public static GuessSchemaBuilder create() { return new GuessSchemaBuilder(); }
3.26
streampipes_PrintDebugFilter_getInstance_rdh
/** * Returns the default instance for {@link PrintDebugFilter}, which dumps debug information to * <code>System.out</code> */ public static PrintDebugFilter getInstance() { return f0; }
3.26
streampipes_AdapterResourceManager_encryptAndUpdate_rdh
/** * Takes an {@link AdapterDescription}, encrypts the password properties and updates the corresponding database entry * * @param adapterDescription * input adapter description */ public void encryptAndUpdate(AdapterDescription adapterDescription) { db.updateAdapter(cloneAndEncrypt(adapterDescription)); }
3.26
streampipes_AdapterResourceManager_encryptAndCreate_rdh
/** * Takes an {@link AdapterDescription}, encrypts the password properties and stores it to the database * * @param adapterDescription * input adapter description * @return the id of the created adapter */ public String encryptAndCreate(AdapterDescription adapterDescription) { ...
3.26
streampipes_AdapterResourceManager_cloneAndEncrypt_rdh
/** * Takes an adapterDescription and returns an encrypted copy */ private AdapterDescription cloneAndEncrypt(AdapterDescription adapterDescription) { AdapterDescription encryptedAdapterDescription = new Cloner().adapterDescription(adapterDescription); SecretProvider.getEncryptionService().apply(encryptedAda...
3.26
streampipes_InfluxDbClient_query_rdh
// Returns a list with the entries of the query. If there are no entries, it returns an empty list List<List<Object>> query(String query) { if (!connected) {throw new RuntimeException("InfluxDbClient not connected"); } QueryResult queryResult = influxDb.query(new Query(query, connectionSettings.getDatabaseN...
3.26
streampipes_InfluxDbClient_loadColumns_rdh
// Client must be connected before calling this method void loadColumns() throws AdapterException { if (!connected) { throw new AdapterException("Client must be connected to the server in order to load the columns."); } List<List<Object>> v8 = query("SHOW FIELD KEYS FROM " + measureName); List...
3.26
streampipes_InfluxDbClient_extractEvent_rdh
// Returns null, if replaceNullValues == false and if in items is a null value // Otherwise it returns a Map containing the runtimenames and the correctly parsed values Map<String, Object> extractEvent(List<Object> items) throws SpRuntimeException { if (items.size() != columns.size()) { throw new SpRuntimeE...
3.26
streampipes_InfluxDbClient_getTimestamp_rdh
// Converts a string date from ISO_INSTANT format in a unix timestamp in nanoseconds static String getTimestamp(String date) { TemporalAccessor temporalAccessor = DateTimeFormatter.ISO_INSTANT.parse(date); Instant time = Instant.from(temporalAccessor);return time.getEpochSecond() + String.format("%09d", time.g...
3.26
streampipes_TextDocument_setTitle_rdh
/** * Updates the "main" title for this document. * * @param title */public void setTitle(final String title) { this.title = title; }
3.26
streampipes_TextDocument_getText_rdh
/** * Returns the {@link TextDocument}'s content, non-content or both * * @param includeContent * Whether to include TextBlocks marked as "content". * @param includeNonContent * Whether to include TextBlocks marked as "non-content". * @return The text. */ public String getText(boolean includeContent, boolea...
3.26
streampipes_TextDocument_getContent_rdh
/** * Returns the {@link TextDocument}'s content. * * @return The content text. */ public String getContent() { return getText(true, false); }
3.26
streampipes_TextDocument_getTextBlocks_rdh
/** * Returns the {@link TextBlock}s of this document. * * @return A list of {@link TextBlock}s, in sequential order of appearance. */ public List<TextBlock> getTextBlocks() {return textBlocks; }
3.26
streampipes_TextDocument_debugString_rdh
/** * Returns detailed debugging information about the contained {@link TextBlock}s. * * @return Debug information. */ public String debugString() { StringBuilder sb = new StringBuilder(); for (TextBlock tb : getTextBlocks()) { sb.append(tb.toString()); sb.append('\n'); } retur...
3.26
streampipes_TextDocument_getTitle_rdh
/** * Returns the "main" title for this document, or <code>null</code> if no such title has ben set. * * @return The "main" title. */ public String getTitle() { return title; }
3.26
streampipes_StreamedQueryResultProvider_changeTimestampHeader_rdh
/** * Replaces the field 'time' of the data result with the actual timestamp field name of the measurement * * @param measurement * contains the actual timestamp name value * @param dataResult * the query result of the database with 'time' as timestamp f...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredFile_rdh
/** * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-friendly manner. * @param requiredFiletypes * A list of required filetypes (a string marking the file extension) the element supports. * @return this */ public K requiredFile...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredSingleValueSelection_rdh
/** * Defines a configuration parameter that lets preprocessing developers * select from a list of pre-defined configuration options. * The parameter will be rendered as a RadioGroup in the StreamPipes UI. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this param...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredTextParameterWithLink_rdh
/** * Defines a text-based configuration parameter provided by pipeline developers at pipeline authoring time. The * value range of the parameter is restricted to the value specification of a selected input event property. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describe...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredMultiValueSelection_rdh
/** * Defines a configuration parameter that lets preprocessing developers * select from a list of pre-defined configuration options, but multiple selections are allowed. * The parameter will be rendered as a Checkbox group in the StreamPipes UI. * * @param label * The {@link org.apache.streampipes.sdk.helpers....
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredCodeblock_rdh
/** * Assigns a new code block parameter (without a specific language) which is required * by the processing element. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} that describes why this parameter is needed in a * user-friendly manner. * @return this */ public K requiredCodeblock(...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredIntegerParameter_rdh
/** * Defines a number-based configuration parameter of type integer provided by pipeline developers at pipeline * authoring time and initializes the parameter with a default value. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredParameterAsCollection_rdh
/** * * @param label * A human-readable label that describes the required static property. * @param staticProperty * @return */ public K requiredParameterAsCollection(Label label, StaticProperty staticProperty) { CollectionStaticProperty collection = prepareStaticProperty(label, new CollectionStaticProperty...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredColorParameter_rdh
/** * Assigns a new color picker parameter which is required by the pipeline * element. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-friendly manner. * @param defaultColor * The default color, encoded as an HTML color code ...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredFloatParameter_rdh
/** * Defines a number-based configuration parameter of type float provided by preprocessing developers at preprocessing * authoring time. In addition, an allowed value range of the expected input can be assigned. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why thi...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredSlideToggle_rdh
/** * Assigns a new required slide toggle for a true/false selection * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in an user-friendly manner. * @param defaultValue * The toggle's default value * @r...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredStaticProperty_rdh
/** * * @param staticProperty * The required static property (e.g., user input as shown in the StreamPipes UI * @return BU */ public K requiredStaticProperty(StaticProperty staticProperty) { this.staticProperties.add(staticProperty); return me(); }
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredOntologyConcept_rdh
/** * * @param label * A human-readable label that describes the required static property. * @param requiredConceptUri * Limits the search for matching instance * in the knowledge base to an instance of this concept. * @param supportedOntology...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredHtmlInputParameter_rdh
/** * Defines a text-based configuration parameter provided by pipeline developers at pipeline authoring time. The * input field generated in the StreamPipes UI allows to enter HTML content (and an HTML Wysiwyg editor will be * rendered). * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} t...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_m0_rdh
/** * Assigns a new color picker parameter which is required by the pipeline * element. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} that describes why this parameter is needed in a * user-friendly manner. * @return */ public K m0(Label label) { ColorPickerStaticProperty csp ...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredLongParameter_rdh
/** * Defines a number-based configuration parameter of type long provided by pipeline developers at pipeline * authoring time and initializes the parameter with a default value. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-fri...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredCollection_rdh
/** * Defines a collection of configuration parameters of the specified staticProperties. * The developer can fill the staticProperties multiply times. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in a user-fr...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredSecret_rdh
/** * Assigns a new secret text-based configuration parameter (e.g., a password) which is required * by the processing element. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} that describes why this parameter is needed in a * user-friendly manner. * @return */ public K requiredSecre...
3.26
streampipes_AbstractConfigurablePipelineElementBuilder_requiredTextParameter_rdh
/** * Defines a text-based configuration parameter provided by pipeline developers at pipeline authoring time. * * @param label * The {@link org.apache.streampipes.sdk.helpers.Label} * that describes why this parameter is needed in an user-friendly manner. * @param multiLine * Defines whether the input dia...
3.26
streampipes_CalculateDurationProcessor_declareModel_rdh
// TODO: Change Icon @Override public DataProcessorDescription declareModel() { return ProcessingElementBuilder.create("org.apache.streampipes.processors.transformation.jvm.duration-value").category(DataProcessorType.TIME).withLocales(Locales.EN).withAssets(Assets.DOCUMENTATION, Assets.ICON).requiredStream(StreamRe...
3.26
streampipes_InfluxClientProvider_getInfluxDBClient_rdh
/** * Create a new InfluxDB client from provided settings * * @param settings * Connection settings * @return InfluxDB */ public static InfluxDB getInfluxDBClient(InfluxConnectionSettings settings) { if (settings.getAuthMode() == InfluxAuthMode.TOKEN) { var okHttpClientBuilder = InfluxClientUtils.ge...
3.26
streampipes_BoilerpipeHTMLParser_toTextDocument_rdh
/** * Returns a {@link TextDocument} containing the extracted {@link TextBlock} s. NOTE: Only call * this after {@link #parse(org.xml.sax.InputSource)}. * * @return The {@link TextDocument} */ public TextDocument toTextDocument() { return contentHandler.toTextDocument(); }
3.26
querydsl_GuavaGroupByBuilder_asSortedTable_rdh
/** * Get the results as sorted table * * @param column * column expression * @param expression * value expression * @param rowComparator * row comparator * @param columnComparator * column comparator * @param <C> * Column type * @param <V> * Value type * @return new result transformer */ pu...
3.26
querydsl_GuavaGroupByBuilder_asSortedSetMultimap_rdh
/** * Get the results as multi map * * @param expression * value expression * @param comparator * key comparator * @param valueComparator * value comparator * @param <V> * Value type * @return new result transformer */ public <V> ResultTransformer<TreeMultimap<K, V>> asSortedSetMultimap(Expression<V...
3.26
querydsl_GuavaGroupByBuilder_asMultimap_rdh
/** * Get the results as multi map * * @param expression * value expression * @param <V> * Value type * @return new result transformer */ public <V> ResultTransformer<Multimap<K, V>> asMultimap(Expression<V> expression) {final Expression<V> lookup = getLookup(expression); return new GroupByMultima...
3.26
querydsl_GuavaGroupByBuilder_asTable_rdh
/** * Get the results as sorted table * * @param column * column expression * @param expression * value expression * @param <C> * Column type * @param <V> * Value type ...
3.26
querydsl_AntMetaDataExporter_addCustomType_rdh
/** * Adds custom type to ant */ public void addCustomType(CustomType customType) { customTypes.add(customType); }
3.26
querydsl_AntMetaDataExporter_addTypeMapping_rdh
/** * Adds TypeMapping instance, called by Ant */ public void addTypeMapping(TypeMapping mapping) { typeMappings.add(mapping); }
3.26
querydsl_AntMetaDataExporter_addRenameMapping_rdh
/** * Adds RenameMapping instance, called by Ant */ public void addRenameMapping(RenameMapping mapping) { renameMappings.add(mapping); }
3.26
querydsl_AntMetaDataExporter_setCustomTypes_rdh
/** * Sets a list of custom types * * @param strings * a list of custom types * @deprecated Use addCustomType instead */public void setCustomTypes(String[] strings) { this.customTypes.clear(); for (String string : strings) { CustomType customType = new CustomType(); customType.setClassName(string); this.custom...
3.26
querydsl_AntMetaDataExporter_getCustomTypes_rdh
/** * Gets a list of custom types * * @return a list of custom types * @deprecated Use addCustomType instead */ public String[] getCustomTypes() { String[] customTypes = new String[this.customTypes.size()];for (int i = 0; i < this.customTypes.size(); i++) { CustomType customType = this.customTypes.get(i); custo...
3.26
querydsl_AntMetaDataExporter_addNumericMapping_rdh
/** * Adds NumericMapping instance, called by Ant */ public void addNumericMapping(NumericMapping mapping) { numericMappings.add(mapping); }
3.26
querydsl_TypeResolver_resolve_rdh
/** * Resolve type declared in declaringType for context * * @param type * type to be resolved * @param declaringType * declaration context of type * @param context * target context of type * @return resolved type */ public static Type resolve(Type type, Type declaringType, EntityType context) { Typ...
3.26
querydsl_SimpleExpression_as_rdh
/** * Create an alias for the expression * * @return alias expression */ @Override public SimpleExpression<T> as(String alias) { return as(ExpressionUtils.path(getType(), alias)); }
3.26
querydsl_SimpleExpression_nullif_rdh
/** * Create a {@code nullif(this, other)} expression * * @param other * @return nullif(this, other) */ public SimpleExpression<T> nullif(T other) { return nullif(ConstantImpl.create(other)); }
3.26
querydsl_SimpleExpression_eqAll_rdh
/** * Create a {@code this == all right} expression * * @param right * @return this == all right */ public BooleanExpression eqAll(CollectionExpression<?, ? super T> right) { return eq(ExpressionUtils.all(right)); }
3.26
querydsl_SimpleExpression_m1_rdh
/** * Create a {@code this in right} expression * * @param right * rhs of the comparison * @return this in right */ public BooleanExpression m1(Collection<? extends T> right) { if (right.size() == 1) { return eq(right.iterator().next()); } else { return Expressions.booleanOperation(Ops.I...
3.26
querydsl_SimpleExpression_notIn_rdh
/** * Create a {@code this not in right} expression * * @param right * rhs of the comparison * @return this not in right */ public BooleanExpression notIn(Expression<? extends T>... right) { return Expressions.booleanOperation(Ops.NOT_IN, mixin, Expressions.list(right)); }
3.26
querydsl_SimpleExpression_isNull_rdh
/** * Create a {@code this is null} expression * * @return this is null */ public BooleanExpression isNull() { if (isnull == null) { isnull = Expressions.booleanOperation(Ops.IS_NULL, mixin); } return isnull; }
3.26
querydsl_SimpleExpression_isNotNull_rdh
/** * Create a {@code this is not null} expression * * @return this is not null */ public BooleanExpression isNotNull() { if (isnotnull == null) { isnotnull = Expressions.booleanOperation(Ops.IS_NOT_NULL, mixin); } return isnotnull; }
3.26
querydsl_SimpleExpression_eq_rdh
/** * Create a {@code this == right} expression * * @param right * rhs of the comparison * @return this == right */ public BooleanExpression eq(Expression<? super T> right) { return Expressions.booleanOperation(Ops.EQ, mixin, right); }
3.26
querydsl_SimpleExpression_countDistinct_rdh
/** * Get the {@code count(distinct this)} expression * * @return count(distinct this) */ public NumberExpression<Long> countDistinct() { if (countDistinct == null) { countDistinct = Expressions.numberOperation(Long.class, AggOps.COUNT_DISTINCT_AGG, mixin); } return countDistinct; }
3.26
querydsl_SimpleExpression_when_rdh
/** * Create a case expression builder * * @param other * @return case expression builder */ public CaseForEqBuilder<T> when(Expression<? extends T> other) { return new CaseForEqBuilder<T>(mixin, other); }
3.26
querydsl_SimpleExpression_m0_rdh
/** * Create an alias for the expression * * @return alias expression */ @Override public SimpleExpression<T> m0(Path<T> alias) { return Expressions.operation(getType(), Ops.ALIAS, mixin, alias); }
3.26
querydsl_SimpleExpression_in_rdh
/** * Create a {@code this in right} expression * * @param right * rhs of the comparison * @return this in right */ public BooleanExpression in(SubQueryExpression<? extends T> right) { return Expressions.booleanOperation(Ops.IN, mixin, right); } /** * Create a {@code this in right}
3.26
querydsl_SimpleExpression_neAny_rdh
/** * Create a {@code this != any right} expression * * @param right * @return this != any right */public BooleanExpression neAny(CollectionExpression<?, ? super T> right) { return ne(ExpressionUtils.any(right)); }
3.26
querydsl_SimpleExpression_count_rdh
/** * Get the {@code count(this)} expression * * @return count(this) */ public NumberExpression<Long> count() { if (count == null) { count = Expressions.numberOperation(Long.class, AggOps.COUNT_AGG, mixin); } return count; }
3.26
querydsl_SimpleExpression_neAll_rdh
/** * Create a {@code this != all right} expression * * @param right * @return this != all right */ public BooleanExpression neAll(CollectionExpression<?, ? super T> right) { return ne(ExpressionUtils.all(right));}
3.26
querydsl_SimpleExpression_ne_rdh
/** * Create a {@code this <> right} expression * * @param right * rhs of the comparison * @return this != right */ public BooleanExpression ne(Expression<? super T> right) { return Expressions.booleanOperation(Ops.NE, mixin, right); }
3.26
querydsl_OrderSpecifier_getTarget_rdh
/** * Get the target expression of this OrderSpecifier * * @return target expression */ public Expression<T> getTarget() { return target; }
3.26
querydsl_OrderSpecifier_nullsFirst_rdh
/** * Create a new OrderSpecifier instance with null first enabled * * @return new instance with null first enabled */ public OrderSpecifier<T> nullsFirst() { return new OrderSpecifier<T>(order, target, NullHandling.NullsFirst); }
3.26
querydsl_OrderSpecifier_getNullHandling_rdh
/** * Get the null handling * * @return null handling */ public NullHandling getNullHandling() { return nullHandling; }
3.26
querydsl_RelationalPathUtils_createProjection_rdh
/** * {@code RelationalPathUtils} provides static utility methods for {@link RelationalPath} instances * * @author tiwe */ @SuppressWarnings("unchecked") public final class RelationalPathUtils {public static <T> FactoryExpression<T> createProjection(RelationalPath<T> path) { if (path.getType().equals(path.g...
3.26
querydsl_GroupBy_sum_rdh
/** * Create a new aggregating sum expression * * @param expression * expression a for which the accumulated sum will be used in the group by projection * @return wrapper expression */ public static <E extends Number> AbstractGroupExpression<E, E> sum(Expression<E> expression) { return new GSum<E>(expressio...
3.26
querydsl_GroupBy_avg_rdh
/** * Create a new aggregating avg expression with a user-provided MathContext * * @param expression * expression for which the accumulated average value will be used in the group by projection * @param mathContext * mathContext for average calculation * @return wrapper expres...
3.26
querydsl_GroupBy_sortedSet_rdh
/** * Create a new aggregating set expression using a backing TreeSet using the given comparator * * @param groupExpression * values for this expression will be accumulated into a set * @param comparator * comparator of the created TreeSet instance * @return wrapper expression */ public static <E, F> GroupE...
3.26
querydsl_GroupBy_list_rdh
/** * Create a new aggregating list expression * * @param groupExpression * values for this expression will be accumulated into a list * @param <E> * @param <F> * @return wrapper expression */ public static <E, F> AbstractGroupExpression<E, List<F>> list(GroupExpression<E, F> groupExpression) { return new...
3.26
querydsl_GroupBy_map_rdh
/** * Create a new aggregating map expression using a backing LinkedHashMap * * @param key * key for the map entries * @param value * value for the map entries * @return wrapper expression */ public static <K, V, T, U> AbstractGroupExpression<Pair<K, V>, Map<T, U>> map(GroupExpression<K, T> key, GroupExpre...
3.26
querydsl_GroupBy_groupBy_rdh
/** * Create a new GroupByBuilder for the given key expression * * @param key * key for aggregation * @return builder for further specification */ public static <K> GroupByBuilder<K> groupBy(Expression<K> key) { return new GroupByBuilder<K>(key); }
3.26
querydsl_GroupBy_max_rdh
/** * Create a new aggregating max expression * * @param expression * expression for which the maximum value will be used in the group by projection * @return wrapper expression */ public static <E extends Comparable<? super E>> AbstractGroupExpression<E, E> max(Expression<E> expression) { return new GMax<E...
3.26
querydsl_GroupBy_min_rdh
/** * Create a new aggregating min expression * * @param expression * expression for which the minimum value will be used in the group by projection * @return wrapper expression */ public static <E extends Comparable<? super E>> AbstractGroupExpression<E, E> min(Expression<E> expression) { return new GMin...
3.26
querydsl_GroupBy_set_rdh
/** * Create a new aggregating set expression using a backing LinkedHashSet * * @param groupExpression * values for this expression will be accumulated into a set * @param <E> * @param <F> * @return wrapper expression */ public static <E, F> GroupExpression<E, Set<F>> set(GroupExpression<E, F> groupExpression...
3.26
querydsl_GroupBy_sortedMap_rdh
/** * Create a new aggregating map expression using a backing TreeMap using the given comparator * * @param key * key for the map entries * @param value * value for the map entries * @param comparator * comparator for the created TreeMap instances * @return wrapper expression */ public static <K, V, T, ...
3.26
querydsl_CollectionUtils_unmodifiableSet_rdh
/** * Return an unmodifiable copy of a set, or the same set if its already an unmodifiable type. * * @param set * the set * @param <T> * element type * @return unmodifiable copy of a set, or the same set if its already an unmodifiable type */ @SuppressWarnings("unchecked") public static <T> Set<T> unmodifia...
3.26
querydsl_CollectionUtils_unmodifiableList_rdh
/** * Return an unmodifiable copy of a list, or the same list if its already an unmodifiable type. * * @param list * the list * @param <T> * element type * @return unmodifiable copy of a list, or the same list if its already an unmodifiable type */ public static <T> List<T> unmodifiableList(List<T> list) { ...
3.26
querydsl_SQLMergeClause_executeWithKeys_rdh
/** * Execute the clause and return the generated keys as a ResultSet * * @return result set with generated keys */ public ResultSet executeWithKeys() { context = startContext(connection(), metadata, entity); try { if (configuration.getTemplates().isNativeMerge()) {PreparedStatement stmt = null; ...
3.26
querydsl_SQLMergeClause_executeWithKey_rdh
/** * Execute the clause and return the generated key cast to the given type. * If no rows were created, null is returned, otherwise the key of the first row is returned. * * @param <T> * @param type * type of key * @return generated key */ public <T> T executeWithKey(Class<T> type) { return executeWith...
3.26
querydsl_SQLMergeClause_keys_rdh
/** * Set the keys to be used in the MERGE clause * * @param paths * keys * @return the current object */ public SQLMergeClause keys(Path<?>... paths) { keys.addAll(Arrays.asList(paths)); return this; }
3.26
querydsl_SQLMergeClause_addBatch_rdh
/** * Add the current state of bindings as a batch item * * @return the current object */ public SQLMergeClause addBatch() { if (!configuration.getTemplates().isNativeMerge()) { throw new IllegalStateException("batch only supported for databases that support native merge"); }batches.add(new SQLMerge...
3.26
querydsl_SQLMergeClause_addFlag_rdh
/** * Add the given Expression at the given position as a query flag * * @param position * position * @param flag * query flag * @return the current object */ public SQLMergeClause addFlag(Position position, Expression<?> flag) { metadata.addFlag(new QueryFlag(position, flag)); return this; }
3.26
querydsl_DateExpression_yearWeek_rdh
/** * Create a ISO yearweek expression * * @return year week */ public NumberExpression<Integer> yearWeek() { if (yearWeek == null) { yearWeek = Expressions.numberOperation(Integer.class, DateTimeOps.YEAR_WEEK, mixin); } return yearWeek; }
3.26
querydsl_DateExpression_week_rdh
/** * Create a week expression * * @return week */ public NumberExpression<Integer> week() { if (week == null) { week = Expressions.numberOperation(Integer.class, DateTimeOps.WEEK, mixin); } return week; }
3.26