name
stringlengths
12
178
code_snippet
stringlengths
8
36.5k
score
float64
3.26
3.68
morf_OracleMetaDataProvider_getView
/** * @see org.alfasoftware.morf.metadata.Schema#getView(java.lang.String) */ @Override public View getView(String name) { return viewMap().get(name.toUpperCase()); }
3.68
framework_Table_getMultiSelectMode
/** * Returns the select mode in which multi-select is used. * * @return The multi select mode */ public MultiSelectMode getMultiSelectMode() { return multiSelectMode; }
3.68
hudi_HoodieTableMetaClient_getMetaAuxiliaryPath
/** * @return Auxiliary Meta path */ public String getMetaAuxiliaryPath() { return basePath + Path.SEPARATOR + AUXILIARYFOLDER_NAME; }
3.68
flink_DefaultLookupCache_expireAfterAccess
/** * Specifies the duration after an entry is last accessed that it should be automatically * removed. */ public Builder expireAfterAccess(Duration duration) { expireAfterAccessDuration = duration; return this; }
3.68
hadoop_DataJoinReducerBase_createResetableIterator
/** * The subclass can provide a different implementation on ResetableIterator. * This is necessary if the number of values in a reduce call is very high. * * The default provided here uses ArrayListBackedIterator * * @return an Object of ResetableIterator. */ protected ResetableIterator createResetableIterato...
3.68
querydsl_ComparableExpression_between
/** * Create a {@code this between from and to} expression * * <p>Is equivalent to {@code from <= this <= to}</p> * * @param from inclusive start of range * @param to inclusive end of range * @return this between from and to */ public BooleanExpression between(@Nullable Expression<T> from, @Nullable Expression<...
3.68
hadoop_FileDeletionTask_run
/** * Delete the specified file/directory as the specified user. */ @Override public void run() { LOG.debug("Running DeletionTask : {}", this); boolean error = false; if (null == getUser()) { if (baseDirs == null || baseDirs.size() == 0) { LOG.debug("NM deleting absolute path : {}", subDir); try...
3.68
hbase_ReflectionUtils_printThreadInfo
/** * Print all of the thread's information and stack traces. * @param stream the stream to * @param title a string title for the stack trace */ static void printThreadInfo(PrintStream stream, String title) { final int STACK_DEPTH = 20; boolean contention = threadBean.isThreadContentionMonitoringEnabled(); l...
3.68
graphhopper_Service_hasAnyService
/** * @return whether this Service is ever active at all, either from calendar or calendar_dates. */ public boolean hasAnyService() { // Look for any service defined in calendar (on days of the week). boolean hasAnyService = calendar != null && ( calendar.monday == 1 || calendar.tuesd...
3.68
pulsar_ModularLoadManagerImpl_start
/** * As any broker, start the load manager. * * @throws PulsarServerException * If an unexpected error prevented the load manager from being started. */ @Override public void start() throws PulsarServerException { try { // At this point, the ports will be updated with the real port number ...
3.68
hbase_CompactionPipeline_swapSuffix
/** * Must be called under the {@link CompactionPipeline#pipeline} Lock. */ private void swapSuffix(List<? extends Segment> suffix, ImmutableSegment segment, boolean closeSegmentsInSuffix) { matchAndRemoveSuffixFromPipeline(suffix); if (segment != null) { pipeline.addLast(segment); } // During index mer...
3.68
hbase_CommonFSUtils_getPath
/** * Return the 'path' component of a Path. In Hadoop, Path is a URI. This method returns the 'path' * component of a Path's URI: e.g. If a Path is * <code>hdfs://example.org:9000/hbase_trunk/TestTable/compaction.dir</code>, this method returns * <code>/hbase_trunk/TestTable/compaction.dir</code>. This method is u...
3.68
hudi_BaseHoodieWriteClient_scheduleCompaction
/** * Schedules a new compaction instant. * @param extraMetadata Extra Metadata to be stored */ public Option<String> scheduleCompaction(Option<Map<String, String>> extraMetadata) throws HoodieIOException { String instantTime = createNewInstantTime(); return scheduleCompactionAtInstant(instantTime, extraMetadata...
3.68
zilla_ManyToOneRingBuffer_nextCorrelationId
/** * {@inheritDoc} */ public long nextCorrelationId() { return buffer.getAndAddLong(correlationIdCounterIndex, 1); }
3.68
hadoop_SysInfoWindows_getNetworkBytesRead
/** {@inheritDoc} */ @Override public long getNetworkBytesRead() { refreshIfNeeded(); return netBytesRead; }
3.68
flink_CheckpointConfig_setExternalizedCheckpointCleanup
/** * Sets the mode for externalized checkpoint clean-up. Externalized checkpoints will be enabled * automatically unless the mode is set to {@link * ExternalizedCheckpointCleanup#NO_EXTERNALIZED_CHECKPOINTS}. * * <p>Externalized checkpoints write their meta data out to persistent storage and are * <strong>not</s...
3.68
hbase_RegionServerSpaceQuotaManager_updateQuotaSnapshot
/** * Updates the current {@link SpaceQuotaSnapshot}s for the RegionServer. * @param newSnapshots The space quota snapshots. */ public void updateQuotaSnapshot(Map<TableName, SpaceQuotaSnapshot> newSnapshots) { currentQuotaSnapshots.set(Objects.requireNonNull(newSnapshots)); }
3.68
hmily_CuratorZookeeperClient_getInstance
/** * Gets instance. * * @param zookeeperConfig the zookeeper config * @return the instance */ public static CuratorZookeeperClient getInstance(final ZookeeperConfig zookeeperConfig) { if (instance == null) { synchronized (CuratorZookeeperClient.class) { if (instance == null) { ...
3.68
morf_MergeStatementBuilder_getIfUpdating
/** * Gets the list of expressions to be used when updating existing records. * * @return the expressions for updating */ Iterable<AliasedField> getIfUpdating() { return ifUpdating; }
3.68
framework_AbstractField_setValue
/** * Sets the value of this field if it has changed and fires a value change * event. If the value originates from the client and this field is * read-only, does nothing. Invokes {@link #doSetValue(Object) doSetValue} * to actually store the value. * * @param value * the new value to set * @param us...
3.68
flink_DelegationTokenReceiverRepository_onNewTokensObtained
/** * Callback function when new delegation tokens obtained. * * @param container Serialized form of delegation tokens stored in DelegationTokenContainer. All * the available tokens will be forwarded to the appropriate {@link DelegationTokenReceiver} * based on service name. */ public void onNewTokensObta...
3.68
dubbo_NacosNamingServiceWrapper_handleInnerSymbol
/** * see https://github.com/apache/dubbo/issues/7129 * nacos service name just support `0-9a-zA-Z-._:`, grpc interface is inner interface, need compatible. */ private String handleInnerSymbol(String serviceName) { if (StringUtils.isEmpty(serviceName)) { return null; } return serviceName.replace(...
3.68
framework_Window_getPositionY
/** * Gets the distance of Window top border in pixels from top border of the * containing (main window) when the window is in {@link WindowMode#NORMAL} * state, or when next set to that state. * * @return Distance of Window top border in pixels from top border of the * containing (main window). or -1 if ...
3.68
framework_DropTargetExtensionConnector_addDragOverStyle
/** * Add class that indicates that the component is a target while data is * being dragged over it. * <p> * This is triggered on {@link #onDragEnter(Event) dragenter} and * {@link #onDragOver(Event) dragover} events pending if the drop is * possible. The drop is possible if the drop effect for the target and * ...
3.68
morf_MergeStatementBuilder_existing
/** * For updating existing records, references the existing field value, i.e. the value before merge. * To reference the new value being merged, use {@link #input(String)}. * * @param name Name of the referenced field. * @return Reference to the existing field value. */ public AliasedField existing(String name) ...
3.68
framework_PushConfiguration_setFallbackTransport
/* * (non-Javadoc) * * @see * com.vaadin.ui.PushConfiguration#setFallbackTransport(com.vaadin.shared * .ui.ui.Transport) */ @Override public void setFallbackTransport(Transport fallbackTransport) { if (fallbackTransport == Transport.WEBSOCKET_XHR) { throw new IllegalArgumentException( ...
3.68
hudi_BulkInsertWriterHelper_addMetadataFields
/** * Adds the Hoodie metadata fields to the given row type. */ public static RowType addMetadataFields(RowType rowType, boolean withOperationField) { List<RowType.RowField> mergedFields = new ArrayList<>(); LogicalType metadataFieldType = DataTypes.STRING().getLogicalType(); RowType.RowField commitTimeField =...
3.68
flink_Types_ENUM
/** * Returns type information for Java enumerations. Null values are not supported. * * @param enumType enumeration class extending {@link java.lang.Enum} */ public static <E extends Enum<E>> TypeInformation<E> ENUM(Class<E> enumType) { return new EnumTypeInfo<>(enumType); }
3.68
hbase_Bytes_binaryIncrementPos
/* increment/deincrement for positive value */ private static byte[] binaryIncrementPos(byte[] value, long amount) { long amo = amount; int sign = 1; if (amount < 0) { amo = -amount; sign = -1; } for (int i = 0; i < value.length; i++) { int cur = ((int) amo % 256) * sign; amo = (amo >> 8); ...
3.68
hadoop_SnappyCompressor_setInput
/** * Sets input data for compression. * This should be called whenever #needsInput() returns * <code>true</code> indicating that more input data is required. * * @param b Input data * @param off Start offset * @param len Length */ @Override public void setInput(byte[] b, int off, int len) { if (b == null) ...
3.68
hbase_HBaseTestingUtility_closeRegionAndWAL
/** * Close both the HRegion {@code r} and it's underlying WAL. For use in tests. */ public static void closeRegionAndWAL(final HRegion r) throws IOException { if (r == null) return; r.close(); if (r.getWAL() == null) return; r.getWAL().close(); }
3.68
hadoop_RegistryPathUtils_lastPathEntry
/** * Get the last entry in a path; for an empty path * returns "". The split logic is that of * {@link #split(String)} * @param path path of operation * @return the last path entry or "" if none. */ public static String lastPathEntry(String path) { List<String> splits = split(path); if (splits.isEmpty()) { ...
3.68
hbase_RecoveredEditsOutputSink_closeWriters
/** * Close all of the output streams. * @return true when there is no error. */ private boolean closeWriters() throws IOException { List<IOException> thrown = Lists.newArrayList(); for (RecoveredEditsWriter writer : writers.values()) { closeCompletionService.submit(() -> { Path dst = closeRecoveredEdi...
3.68
framework_Tree_setChildrenAllowed
/** * Sets the given Item's capability to have children. * * @see Container.Hierarchical#setChildrenAllowed(Object, boolean) */ @Override public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) { final boolean success = ((Container.Hierarchical) items) .setChildrenAllowe...
3.68
flink_GSRecoverableWriterCommitter_composeBlobs
/** * Helper to compose an arbitrary number of blobs into a final blob, staying under the * composeMaxBlobs limit for any individual compose operation. * * @param sourceBlobIdentifiers The source blob ids to compose * @param targetBlobIdentifier The target blob id for the composed result */ private void composeBl...
3.68
hbase_MergeTableRegionsProcedure_setRegionStateToMerging
/** * Set the region states to MERGING state */ private void setRegionStateToMerging(final MasterProcedureEnv env) { // Set State.MERGING to regions to be merged RegionStates regionStates = env.getAssignmentManager().getRegionStates(); for (RegionInfo ri : this.regionsToMerge) { regionStates.getRegionStateN...
3.68
hbase_TableDescriptorBuilder_isMetaTable
/** * Checks if the table is a <code>hbase:meta</code> table * @return true if table is <code> hbase:meta </code> region. */ @Override public boolean isMetaTable() { return isMetaRegion(); }
3.68
hbase_WALProcedureStore_removeInactiveLogs
// ========================================================================== // Log Files cleaner helpers // ========================================================================== private void removeInactiveLogs() throws IOException { // We keep track of which procedures are holding the oldest WAL in 'holdingCle...
3.68
flink_TernaryBoolean_fromBoxedBoolean
/** * Converts the given boxed Boolean to a TernaryBoolean. A null value results in {@link * #UNDEFINED}, while a non-null value results in {@link #TRUE} or {@link #FALSE} respectively. */ public static TernaryBoolean fromBoxedBoolean(@Nullable Boolean bool) { return bool == null ? UNDEFINED : fromBoolean(bool);...
3.68
flink_ParameterTool_fromMap
/** * Returns {@link ParameterTool} for the given map. * * @param map A map of arguments. Both Key and Value have to be Strings * @return A {@link ParameterTool} */ public static ParameterTool fromMap(Map<String, String> map) { Preconditions.checkNotNull(map, "Unable to initialize from empty map"); return ...
3.68
hbase_HBaseTestingUtility_createWALRootDir
/** * Creates a hbase walDir in the user's home directory. Normally you won't make use of this * method. Root hbaseWALDir is created for you as part of mini cluster startup. You'd only use * this method if you were doing manual operation. * @return Fully qualified path to hbase root dir */ public Path createWALRoo...
3.68
flink_ExecNodeBase_translateToFusionCodegenSpecInternal
/** * Internal method, translates this node into a operator codegen spec generator. * * @param planner The planner. * @param config per-{@link ExecNode} configuration that contains the merged configuration from * various layers which all the nodes implementing this method should use, instead of * retrievi...
3.68
flink_SpeculativeExecutionVertex_isOriginalAttempt
/** * Returns whether the given attempt is the original execution attempt of the execution vertex, * i.e. it is created along with the creation of resetting of the execution vertex. */ public boolean isOriginalAttempt(int attemptNumber) { return attemptNumber == originalAttemptNumber; }
3.68
querydsl_JTSPointExpression_x
/** * The x-coordinate value for this Point. * * @return x-coordinate */ public NumberExpression<Double> x() { if (x == null) { x = Expressions.numberOperation(Double.class, SpatialOps.X, mixin); } return x; }
3.68
hadoop_WordStandardDeviation_readAndCalcStdDev
/** * Reads the output file and parses the summation of lengths, the word count, * and the lengths squared, to perform a quick calculation of the standard * deviation. * * @param path * The path to find the output file in. Set in main to the output * directory. * @throws IOException * ...
3.68
hbase_OrderedBytes_decodeFloat32
/** * Decode a 32-bit floating point value using the fixed-length encoding. * @see #encodeFloat32(PositionedByteRange, float, Order) */ public static float decodeFloat32(PositionedByteRange src) { final byte header = src.get(); assert header == FIXED_FLOAT32 || header == DESCENDING.apply(FIXED_FLOAT32); Order ...
3.68
pulsar_AuthenticationDataProvider_hasDataForTls
/** * Check if data for TLS are available. * * @return true if this authentication data contain data for TLS */ default boolean hasDataForTls() { return false; }
3.68
flink_Tuple8_toString
/** * Creates a string representation of the tuple in the form (f0, f1, f2, f3, f4, f5, f6, f7), * where the individual fields are the value returned by calling {@link Object#toString} on that * field. * * @return The string representation of the tuple. */ @Override public String toString() { return "(" ...
3.68
hadoop_TFile_getKeyStream
/** * Streaming access to the key. Useful for desrializing the key into * user objects. * * @return The input stream. */ public DataInputStream getKeyStream() { keyDataInputStream.reset(keyBuffer, klen); return keyDataInputStream; }
3.68
flink_StatsSummary_add
/** * Adds the value to the stats if it is >= 0. * * @param value Value to add for min/max/avg stats.. */ void add(long value) { if (value >= 0) { if (count > 0) { min = Math.min(min, value); max = Math.max(max, value); } else { min = value; max = ...
3.68
morf_AbstractSqlDialectTest_testSelectWithJoinForUpdate
/** * Tests that we can't combine JOIN with FOR UPDATE */ @Test(expected = IllegalArgumentException.class) public void testSelectWithJoinForUpdate() { SelectStatement stmt = new SelectStatement().from(new TableReference(TEST_TABLE)).crossJoin(new TableReference("Test2")).forUpdate(); testDialect.convertStatementT...
3.68
flink_BinaryExternalSorter_internalHandleException
/** * Internally handles an exception and makes sure that this method returns without a * problem. * * @param ioex The exception to handle. */ private void internalHandleException(IOException ioex) { if (!isRunning()) { // discard any exception that occurs when after the thread is killed. retur...
3.68
hbase_OrderedBytes_encodeNumeric
/** * Encode a numerical value using the variable-length encoding. If the number of significant * digits of the value exceeds the {@link OrderedBytes#MAX_PRECISION}, the exceeding part will be * lost. * @param dst The destination to which encoded digits are written. * @param val The value to encode. * @param ord ...
3.68
flink_ClusterEntrypointUtils_generateTaskManagerWorkingDirectoryFile
/** * Generates the working directory {@link File} for the TaskManager process. This method does * not ensure that the working directory exists. * * @param configuration to extract the required settings from * @param resourceId identifying the TaskManager process * @return working directory file */ @VisibleForTe...
3.68
framework_VCalendar_getWeekClickListener
/** * Get the listener that listens to user clicking on the week numbers. * * @return */ public WeekClickListener getWeekClickListener() { return weekClickListener; }
3.68
pulsar_AbstractReplicator_validatePartitionedTopicAsync
/** * Replication can't be started on root-partitioned-topic to avoid producer startup conflict. * * <pre> * eg: * if topic : persistent://prop/cluster/ns/my-topic is a partitioned topic with 2 partitions then * broker explicitly creates replicator producer for: "my-topic-partition-1" and "my-topic-partition-2". ...
3.68
hbase_RegionInfo_isDegenerate
/** Returns True if RegionInfo is degenerate... if startKey > endKey. */ default boolean isDegenerate() { return !isLast() && Bytes.compareTo(getStartKey(), getEndKey()) > 0; }
3.68
framework_ServerRpcManager_getRpcProxy
/** * Returns an RPC proxy for a given client to server RPC interface for the * given component or extension. * * @param connector * the connector for which to the RPC proxy * @param rpcInterface * the RPC interface type * * @return a server RPC handler which can be used to invoke RPC met...
3.68
morf_SqlUtils_isNotEmpty
/** * Shortcut to "not empty and not null", where empty means spaces only. * * <p>Note that only <i>spaces</i> are considered empty. Tabs and newlines are not considered empty. * This will therefore give somewhat different results to {@link StringUtils#isBlank(CharSequence)}.</p> * * @param expression the express...
3.68
graphhopper_VectorTile_hasIntValue
/** * <code>optional int64 int_value = 4;</code> */ public boolean hasIntValue() { return ((bitField0_ & 0x00000008) == 0x00000008); }
3.68
flink_SharedResources_release
/** * Releases a lease (identified by the lease holder object) for the given type. If no further * leases exist, the resource is disposed. * * <p>This method takes an additional hook that is called when the resource is disposed. */ public void release(String type, Object leaseHolder, LongConsumer releaser) throws ...
3.68
hbase_HMaster_reopenRegions
/** * Reopen regions provided in the argument * @param tableName The current table name * @param regionNames The region names of the regions to reopen * @param nonceGroup Identifier for the source of the request, a client or process * @param nonce A unique identifier for this operation from the client or ...
3.68
flink_FactoryUtil_createCatalogFactoryHelper
/** * Creates a utility that helps validating options for a {@link CatalogFactory}. * * <p>Note: This utility checks for left-over options in the final step. */ public static CatalogFactoryHelper createCatalogFactoryHelper( CatalogFactory factory, CatalogFactory.Context context) { return new CatalogFact...
3.68
hbase_MasterObserver_postAddRSGroup
/** * Called after a new region server group is added * @param ctx the environment to interact with the framework and master * @param name group name */ default void postAddRSGroup(final ObserverContext<MasterCoprocessorEnvironment> ctx, String name) throws IOException { }
3.68
framework_ConnectorActionManager_handleAction
/* * (non-Javadoc) * * @see com.vaadin.event.ActionManager#handleAction(com.vaadin.event.Action, * java.lang.Object, java.lang.Object) */ @Override public void handleAction(Action action, Object sender, Object target) { if (!connector.isConnectorEnabled()) { return; } super.handleAction(action...
3.68
hbase_CloneSnapshotProcedure_createFilesystemLayout
/** * Create regions in file system. * @param env MasterProcedureEnv */ private List<RegionInfo> createFilesystemLayout(final MasterProcedureEnv env, final TableDescriptor tableDescriptor, final List<RegionInfo> newRegions) throws IOException { return createFsLayout(env, tableDescriptor, newRegions, new CreateHd...
3.68
pulsar_TopicStatsImpl_add
// if the stats are added for the 1st time, we will need to make a copy of these stats and add it to the current // stats. This stat addition is not thread-safe. public TopicStatsImpl add(TopicStats ts) { TopicStatsImpl stats = (TopicStatsImpl) ts; this.count++; this.msgRateIn += stats.msgRateIn; this....
3.68
hbase_TableDescriptorBuilder_getRegionReplication
/** * Returns the configured replicas per region */ @Override public int getRegionReplication() { return getOrDefault(REGION_REPLICATION_KEY, Integer::valueOf, DEFAULT_REGION_REPLICATION); }
3.68
framework_VTabsheet_getApplicationConnection
/** * For internal use only. * * Avoid using this method directly and use appropriate superclass methods * where applicable. * * @deprecated since 7.2 - use more specific methods instead (getRpcProxy(), * getConnectorForWidget(Widget) etc.) * @return ApplicationConnection */ @Deprecated public Appl...
3.68
hadoop_FedBalance_getDefaultConf
/** * Loads properties from hdfs-fedbalance-default.xml into configuration * object. * * @return Configuration which includes properties from * hdfs-fedbalance-default.xml and hdfs-fedbalance-site.xml */ @VisibleForTesting static Configuration getDefaultConf() { Configuration config = new Configuration(...
3.68
hudi_BaseHoodieWriteClient_saveInternalSchema
// Save internal schema private void saveInternalSchema(HoodieTable table, String instantTime, HoodieCommitMetadata metadata) { TableSchemaResolver schemaUtil = new TableSchemaResolver(table.getMetaClient()); String historySchemaStr = schemaUtil.getTableHistorySchemaStrFromCommitMetadata().orElse(""); FileBasedIn...
3.68
morf_AbstractSqlDialectTest_shouldGenerateCorrectSqlForMathOperations6
/** * Test for proper SQL mathematics operation generation from DSL expressions. * <p> * Subexpression "c-d" should be put to the bracket implicitly, even without * explicit * {@link org.alfasoftware.morf.sql.SqlUtils#bracket(MathsField)} call. * </p> */ @Test public void shouldGenerateCorrectSqlForMathOperation...
3.68
hbase_MasterSnapshotVerifier_verifySnapshotDescription
/** * Check that the snapshot description written in the filesystem matches the current snapshot * @param snapshotDir snapshot directory to check */ private void verifySnapshotDescription(Path snapshotDir) throws CorruptedSnapshotException { SnapshotDescription found = SnapshotDescriptionUtils.readSnapshotInfo...
3.68
hadoop_PutTracker_outputImmediatelyVisible
/** * Flag to indicate that output is not immediately visible after the stream * is closed. Default: false. * @return true if the output's visibility will be delayed. */ public boolean outputImmediatelyVisible() { return true; }
3.68
framework_CompositeValidator_addValidator
/** * Adds validator to the interface. * * @param validator * the Validator object which performs validation checks on this * set of data field values. */ public void addValidator(Validator validator) { if (validator == null) { return; } validators.add(validator); }
3.68
rocketmq-connect_ExpressionBuilder_appendBinaryLiteral
/** * Append to this builder's expression the binary value as a hex string, prefixed and * suffixed by a single quote character. * * @param value the value to be appended * @return this builder to enable methods to be chained; never null */ public ExpressionBuilder appendBinaryLiteral(byte[] value) { return a...
3.68
hudi_HoodieTableMetadataUtil_getFileIDForFileGroup
/** * Return the complete fileID for a file group within a MDT partition. * <p> * MDT fileGroups have the format <fileIDPrefix>-<index>. The fileIDPrefix is hardcoded for each MDT partition and index is an integer. * * @param partitionType The type of the MDT partition * @param index Index of the file gro...
3.68
hadoop_NamenodeStatusReport_getCorruptFilesCount
/** * Get the number of corrupt files. * * @return the total number of corrupt files */ public int getCorruptFilesCount() { return this.corruptFilesCount; }
3.68
hbase_ClientMetaTableAccessor_getRegionLocations
/** Returns an HRegionLocationList extracted from the result. */ private static Optional<RegionLocations> getRegionLocations(Result r) { return Optional.ofNullable(CatalogFamilyFormat.getRegionLocations(r)); }
3.68
hudi_SparkRDDWriteClient_insertOverwrite
/** * Removes all existing records from the partitions affected and inserts the given HoodieRecords, into the table. * * @param records HoodieRecords to insert * @param instantTime Instant time of the commit * @return JavaRDD[WriteStatus] - RDD of WriteStatus to inspect errors and counts */ public HoodieWrite...
3.68
morf_CorrectPrimaryKeyColumns_getOldPrimaryKeyColumns
/** * @see org.alfasoftware.morf.upgrade.ChangePrimaryKeyColumns#getOldPrimaryKeyColumns() */ @Override public List<String> getOldPrimaryKeyColumns() { return oldPrimaryKeyColumns == null ? super.getOldPrimaryKeyColumns() : oldPrimaryKeyColumns; }
3.68
streampipes_PipelineApi_stop
/** * Stops a pipeline by given id * * @param pipelineId The id of the pipeline * @return {@link org.apache.streampipes.model.pipeline.PipelineOperationStatus} the status message after detach */ @Override public PipelineOperationStatus stop(String pipelineId) { return getSingle(getBaseResourcePath().addToPath(pi...
3.68
flink_CompressedSerializedValue_fromBytes
/** * Construct a compressed serialized value with a serialized byte array. * * <p>The byte array must be the result of serialization and compression with {@link * InstantiationUtil#serializeObjectAndCompress}. * * @param compressedSerializedData the compressed serialized byte array * @param <T> type of the obje...
3.68
Activiti_TreeValueExpression_equals
/** * Expressions are compared using the concept of a <em>structural id</em>: * variable and function names are anonymized such that two expressions with * same tree structure will also have the same structural id and vice versa. * Two value expressions are equal if * <ol> * <li>their structural id's are equal</l...
3.68
flink_PlanReference_fromResource
/** Create a reference from a file in the classpath. */ public static PlanReference fromResource(ClassLoader classLoader, String resourcePath) { Objects.requireNonNull(classLoader, "ClassLoader cannot be null"); Objects.requireNonNull(resourcePath, "Resource path cannot be null"); return new ResourcePlanRef...
3.68
hadoop_FsStatus_getUsed
/** * Return the number of bytes used on the file system. * @return used. */ public long getUsed() { return used; }
3.68
framework_GridDropEvent_getDropTargetRow
/** * Get the row the drop happened on. * <p> * If the drop was not on top of a row (see {@link #getDropLocation()}) or * {@link DropMode#ON_GRID} is used, then returns an empty optional. * * @return The row the drop happened on, or an empty optional if drop was * not on a row */ public Optional<T> getD...
3.68
hadoop_DomainTableRW_createTable
/* * (non-Javadoc) * * @see * org.apache.hadoop.yarn.server.timelineservice.storage.BaseTableRW# * createTable(org.apache.hadoop.hbase.client.Admin, * org.apache.hadoop.conf.Configuration) */ public void createTable(Admin admin, Configuration hbaseConf) throws IOException { TableName table = getTableName(...
3.68
hadoop_ActiveAuditManagerS3A_isValidSpan
/** * This span is valid if the span isn't closed and the inner * span is valid. * @return true if the span is considered valid. */ @Override public boolean isValidSpan() { return isValid && span.isValidSpan(); }
3.68
hadoop_TFile_inBlockAdvance
/** * Advance cursor in block until we find a key that is greater than or * equal to the input key. * * @param key * Key to compare. * @param greater * advance until we find a key greater than the input key. * @return true if we find a equal key. * @throws IOException */ private boolean inB...
3.68
Activiti_AbstractOperation_getCurrentFlowElement
/** * Helper method to match the activityId of an execution with a FlowElement of the process definition referenced by the execution. */ protected FlowElement getCurrentFlowElement(final ExecutionEntity execution) { if (execution.getCurrentFlowElement() != null) { return execution.getCurrentFlowElement(); } e...
3.68
framework_Slider_setMin
/** * Sets the minimum slider value. If the current value of the slider is * smaller than this, the value is set to the new minimum. * * @param min * The new minimum slider value */ public void setMin(double min) { double roundedMin = getRoundedValue(min); getState().minValue = roundedMin; ...
3.68
framework_VComboBox_setSelectionRange
/** * Overridden to avoid selecting text when text input is disabled. */ @Override public void setSelectionRange(int pos, int length) { if (textInputEnabled) { /* * set selection range with a backwards direction: anchor at the * back, focus at the front. This means that items that are to...
3.68
flink_FineGrainedSlotManager_suspend
/** Suspends the component. This clears the internal state of the slot manager. */ @Override public void suspend() { if (!started) { return; } LOG.info("Suspending the slot manager."); slotManagerMetricGroup.close(); // stop the timeout checks for the TaskManagers if (clusterReconcili...
3.68
hbase_HRegion_internalFlushcache
/** * Flush the memstore. Flushing the memstore is a little tricky. We have a lot of updates in the * memstore, all of which have also been written to the wal. We need to write those updates in the * memstore out to disk, while being able to process reads/writes as much as possible during the * flush operation. * ...
3.68
framework_GridLayout_setColumns
/** * Sets the number of columns in the grid. The column count can not be * reduced if there are any areas that would be outside of the shrunk grid. * * @param columns * the new number of columns in the grid. */ public void setColumns(int columns) { // The the param if (columns < 1) { ...
3.68
dubbo_DubboAnnotationUtils_resolveInterfaceName
/** * Resolve the service interface name from @Service annotation attributes. * <p/> * Note: the service interface class maybe not found locally if is a generic service. * * @param attributes annotation attributes of {@link Service @Service} * @param defaultInterfaceClass the default class of interfac...
3.68
flink_StreamExecutionEnvironment_getConfiguration
/** * Gives read-only access to the underlying configuration of this environment. * * <p>Note that the returned configuration might not be complete. It only contains options that * have initialized the environment via {@link #StreamExecutionEnvironment(Configuration)} or * options that are not represented in dedic...
3.68
hadoop_TFile_writeKey
/** * Writing the key to the output stream. This method avoids copying key * buffer from Scanner into user buffer, then writing to the output * stream. * * @param out * The output stream * @return the length of the key. * @throws IOException raised on errors performing I/O. */ public int writeKey(Out...
3.68
morf_RemoveColumn_getColumnDefinition
/** * Gets the definition of the column to be removed. * * @return the definition of the column */ public Column getColumnDefinition() { return columnDefinition; }
3.68