name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
hudi_RocksDBDAO_prefixSearch | /**
* Perform a prefix search and return stream of key-value pairs retrieved.
*
* @param columnFamilyName Column Family Name
* @param prefix Prefix Key
* @param <T> Type of value stored
*/
public <T extends Serializable> Stream<Pair<String, T>> prefixSearch(String columnFamilyName, String prefix) {
ValidationUt... | 3.68 |
hudi_RocksDBDAO_prefixDelete | /**
* Perform a prefix delete and return stream of key-value pairs retrieved.
*
* @param columnFamilyName Column Family Name
* @param prefix Prefix Key
* @param <T> Type of value stored
*/
public <T extends Serializable> void prefixDelete(String columnFamilyName, String prefix) {
ValidationUtils.checkArgument(!... | 3.68 |
framework_VUpload_setImmediateMode | /**
* Sets the upload in immediate mode.
*
* @param immediateMode
* {@code true} for immediate mode, {@code false} for
* non-immediate mode
*/
public void setImmediateMode(boolean immediateMode) {
if (this.immediateMode != immediateMode) {
this.immediateMode = immediateMode;
... | 3.68 |
dubbo_AbstractAnnotationBeanPostProcessor_needsRefresh | // @Override // since Spring 5.2.4
protected boolean needsRefresh(Class<?> clazz) {
if (this.targetClass == clazz) {
return false;
}
// IGNORE Spring CGLIB enhanced class
if (targetClass.isAssignableFrom(clazz) && clazz.getName().contains("$$EnhancerBySpringCGLIB$$")) {
return false;
... | 3.68 |
hbase_RingBufferTruck_unloadSync | /**
* Unload the truck of its {@link SyncFuture} payload. The internal reference is released.
*/
SyncFuture unloadSync() {
SyncFuture sync = this.sync;
this.sync = null;
this.type = Type.EMPTY;
return sync;
} | 3.68 |
flink_ConsumedPartitionGroup_getIntermediateDataSetID | /** Get the ID of IntermediateDataSet this ConsumedPartitionGroup belongs to. */
public IntermediateDataSetID getIntermediateDataSetID() {
return intermediateDataSetID;
} | 3.68 |
shardingsphere-elasticjob_ElasticJobRegistryCenterConfiguration_zookeeperRegistryCenter | /**
* Create a zookeeper registry center bean via factory.
*
* @param zookeeperProperties factory
* @return zookeeper registry center
*/
@Bean(initMethod = "init")
public ZookeeperRegistryCenter zookeeperRegistryCenter(final ZookeeperProperties zookeeperProperties) {
return new ZookeeperRegistryCenter(zookeepe... | 3.68 |
hbase_ByteBufferInputStream_read | /**
* Reads up to next <code>len</code> bytes of data from buffer into passed array(starting from
* given offset).
* @param b the array into which the data is read.
* @param off the start offset in the destination array <code>b</code>
* @param len the maximum number of bytes to read.
* @return the total number ... | 3.68 |
AreaShop_GeneralRegion_getFileManager | /**
* Get the FileManager from the plugin.
* @return The FileManager (responsible for saving/loading regions and getting them)
*/
public FileManager getFileManager() {
return plugin.getFileManager();
} | 3.68 |
morf_TableHelper_buildColumnNameList | /**
* Builds a list of column names from the column definitions and optionally
* includes the ID and VERSION fields at the beginning.
*
* @param table the table to get the list of column names for
* @return a list of column names for the table
*/
public static List<String> buildColumnNameList(Table table) {
Lis... | 3.68 |
morf_ChangeColumn_verifyWidthAndScaleChanges | /**
* Verify that any width and scale changes
*/
private void verifyWidthAndScaleChanges() {
// Reductions in width of Strings are permitted, although they will only work if the data fits in the narrower column
if (Objects.equals(toColumn.getType(), fromColumn.getType()) && DataType.STRING.equals(fromColumn.getT... | 3.68 |
hbase_HBaseServerException_isServerOverloaded | /** Returns True if server was considered overloaded when exception was thrown */
public boolean isServerOverloaded() {
return serverOverloaded;
} | 3.68 |
morf_RecordHelper_javaTypeToRecordValue | /**
* Take a java value (int, long, boolean, {@link String}, {@link LocalDate}) and convert it into a string format
* suitable for inclusion in a {@link Record}.
*
* @param value The java value.
* @return The {@link Record} value string
*/
public static String javaTypeToRecordValue(Object value) {
if (value == ... | 3.68 |
querydsl_JPAExpressions_selectFrom | /**
* Create a new detached JPQLQuery instance with the given projection
*
* @param expr projection and source
* @param <T>
* @return select(expr).from(expr)
*/
public static <T> JPQLQuery<T> selectFrom(EntityPath<T> expr) {
return select(expr).from(expr);
} | 3.68 |
hbase_Get_setMaxResultsPerColumnFamily | /**
* Set the maximum number of values to return per row per Column Family
* @param limit the maximum number of values returned / row / CF
* @return this for invocation chaining
*/
public Get setMaxResultsPerColumnFamily(int limit) {
this.storeLimit = limit;
return this;
} | 3.68 |
pulsar_NoSplitter_split | /*
* (non-Javadoc)
*
* @see com.beust.jcommander.converters.IParameterSplitter#split(java.lang.String)
*/
@Override
public List<String> split(final String value) {
final List<String> result = new LinkedList<>();
result.add(value);
return result;
} | 3.68 |
flink_BytesMap_growAndRehash | /** @throws EOFException if the map can't allocate much more memory. */
protected void growAndRehash() throws EOFException {
// allocate the new data structures
int required = 2 * bucketSegments.size();
if (required * (long) numBucketsPerSegment > Integer.MAX_VALUE) {
LOG.warn(
"We c... | 3.68 |
flink_ServiceType_getRestPortFromExternalService | /** Get rest port from the external Service. */
public int getRestPortFromExternalService(Service externalService) {
final List<ServicePort> servicePortCandidates =
externalService.getSpec().getPorts().stream()
.filter(x -> x.getName().equals(Constants.REST_PORT_NAME))
... | 3.68 |
dubbo_DubboNamespaceHandler_parse | /**
* Override {@link NamespaceHandlerSupport#parse(Element, ParserContext)} method
*
* @param element {@link Element}
* @param parserContext {@link ParserContext}
* @return
* @since 2.7.5
*/
@Override
public BeanDefinition parse(Element element, ParserContext parserContext) {
BeanDefinitionRegistry re... | 3.68 |
framework_VCalendar_setFirstDayNumber | /**
* Set the number when a week starts.
*
* @param dayNumber
* The number of the day
*/
public void setFirstDayNumber(int dayNumber) {
assert (dayNumber >= 1 && dayNumber <= 7);
firstDay = dayNumber;
} | 3.68 |
hadoop_WriteOperationHelper_getRequestFactory | /**
* Get the request factory which uses this store's audit span.
* @return the request factory.
*/
public RequestFactory getRequestFactory() {
return requestFactory;
} | 3.68 |
hadoop_PlacementConstraints_maxCardinality | /**
* Similar to {@link #maxCardinality(String, int, String...)}, but let you
* specify a namespace for the tags, see supported namespaces in
* {@link AllocationTagNamespaceType}.
*
* @param scope the scope of the constraint
* @param tagNamespace the namespace of these tags
* @param maxCardinality determines the... | 3.68 |
hudi_HoodieCombineHiveInputFormat_getCombineSplits | /**
* Create Hive splits based on CombineFileSplit.
*/
private InputSplit[] getCombineSplits(JobConf job, int numSplits, Map<Path, PartitionDesc> pathToPartitionInfo)
throws IOException {
init(job);
Map<Path, ArrayList<String>> pathToAliases = mrwork.getPathToAliases();
Map<String, Operator<? extends Operat... | 3.68 |
flink_TableSourceFactory_createTableSource | /**
* Creates and configures a {@link TableSource} based on the given {@link Context}.
*
* @param context context of this table source.
* @return the configured table source.
*/
default TableSource<T> createTableSource(Context context) {
return createTableSource(context.getObjectIdentifier().toObjectPath(), co... | 3.68 |
flink_PlanNode_setPruningMarker | /** Sets the pruning marker to true. */
public void setPruningMarker() {
this.pFlag = true;
} | 3.68 |
hadoop_CacheStats_roundUp | /**
* Round up a number to the operating system page size.
*/
public long roundUp(long count) {
return (count + osPageSize - 1) & (~(osPageSize - 1));
} | 3.68 |
framework_LocaleService_addLocale | /**
* Adds a locale to be sent to the client (browser) for date and time entry
* etc. All locale specific information is derived from server-side
* {@link Locale} instances and sent to the client when needed, eliminating
* the need to use the {@link Locale} class and all the framework behind it
* on the client.
*... | 3.68 |
hbase_MasterObserver_preListReplicationPeers | /**
* Called before list replication peers.
* @param ctx the environment to interact with the framework and master
* @param regex The regular expression to match peer id
*/
default void preListReplicationPeers(final ObserverContext<MasterCoprocessorEnvironment> ctx,
String regex) throws IOException {
} | 3.68 |
framework_Upload_getTabIndex | /**
* Gets the Tabulator index of this Focusable component.
*
* @see com.vaadin.ui.Component.Focusable#getTabIndex()
*/
@Override
public int getTabIndex() {
return tabIndex;
} | 3.68 |
hadoop_ResourceCalculatorProcessTree_getCpuUsagePercent | /**
* Get the CPU usage by all the processes in the process-tree based on
* average between samples as a ratio of overall CPU cycles similar to top.
* Thus, if 2 out of 4 cores are used this should return 200.0.
* Note: UNAVAILABLE will be returned in case when CPU usage is not
* available. It is NOT advised to re... | 3.68 |
morf_SqlServerDialect_alterTableDropColumnStatements | /**
* @see org.alfasoftware.morf.jdbc.SqlDialect#alterTableDropColumnStatements(org.alfasoftware.morf.metadata.Table, org.alfasoftware.morf.metadata.Column)
*/
@Override
public Collection<String> alterTableDropColumnStatements(Table table, final Column column) {
List<String> statements = new ArrayList<>();
// Dr... | 3.68 |
hbase_ThreadMonitoring_appendThreadInfo | /**
* Print all of the thread's information and stack traces.
*/
public static void appendThreadInfo(StringBuilder sb, ThreadInfo info, String indent) {
boolean contention = threadBean.isThreadContentionMonitoringEnabled();
if (info == null) {
sb.append(indent).append("Inactive (perhaps exited while monitori... | 3.68 |
morf_ResultSetMismatch_getMismatchColumnIndex | /**
* @return Mismatch column index.
*/
public int getMismatchColumnIndex() {
return mismatchColumnIndex;
} | 3.68 |
zxing_QRCodeEncoder_encodeFromStreamExtra | // Handles send intents from the Contacts app, retrieving a contact as a VCARD.
private void encodeFromStreamExtra(Intent intent) throws WriterException {
format = BarcodeFormat.QR_CODE;
Bundle bundle = intent.getExtras();
if (bundle == null) {
throw new WriterException("No extras");
}
Uri uri = bundle.ge... | 3.68 |
hadoop_IOStatisticsContextIntegration_createNewInstance | /**
* Creating a new IOStatisticsContext instance for a FS to be used.
* @param key Thread ID that represents which thread the context belongs to.
* @return an instance of IOStatisticsContext.
*/
private static IOStatisticsContext createNewInstance(Long key) {
IOStatisticsContextImpl instance =
new IOStatis... | 3.68 |
shardingsphere-elasticjob_JobNodeStorage_addConnectionStateListener | /**
* Add connection state listener.
*
* @param listener connection state listener
*/
public void addConnectionStateListener(final ConnectionStateChangedEventListener listener) {
regCenter.addConnectionStateChangedEventListener("/" + jobName, listener);
} | 3.68 |
flink_SourceCoordinator_aggregate | /**
* Update the {@link Watermark} for the given {@code key)}.
*
* @return the new updated combined {@link Watermark} if the value has changed. {@code
* Optional.empty()} otherwise.
*/
public Optional<Watermark> aggregate(T key, Watermark watermark) {
Watermark oldAggregatedWatermark = getAggregatedWaterma... | 3.68 |
framework_Upload_fireUploadInterrupted | /**
* Emits the upload failed event.
*
* @param filename
* @param mimeType
* @param length
*/
protected void fireUploadInterrupted(String filename, String mimeType,
long length) {
fireEvent(new Upload.FailedEvent(this, filename, mimeType, length));
} | 3.68 |
querydsl_BeanPath_add | /**
* Template method for tracking child path creation
*
* @param <P>
* @param path path to be tracked
* @return path
*/
protected <P extends Path<?>> P add(P path) {
return path;
} | 3.68 |
flink_StringUtf8Utils_encodeUTF8 | /** This method must have the same result with JDK's String.getBytes. */
public static byte[] encodeUTF8(String str) {
byte[] bytes = allocateReuseBytes(str.length() * MAX_BYTES_PER_CHAR);
int len = encodeUTF8(str, bytes);
return Arrays.copyOf(bytes, len);
} | 3.68 |
flink_TaskExecutionState_getError | /**
* Gets the attached exception, which is in serialized form. Returns null, if the status update
* is no failure with an associated exception.
*
* @param userCodeClassloader The classloader that can resolve user-defined exceptions.
* @return The attached exception, or null, if none.
*/
public Throwable getError... | 3.68 |
morf_HumanReadableStatementProducer_changeIndex | /** @see org.alfasoftware.morf.upgrade.SchemaEditor#changeIndex(java.lang.String, org.alfasoftware.morf.metadata.Index, org.alfasoftware.morf.metadata.Index) **/
@Override
public void changeIndex(String tableName, Index fromIndex, Index toIndex) {
consumer.schemaChange(HumanReadableStatementHelper.generateChangeIndex... | 3.68 |
flink_SyntaxHighlightStyle_getQuotedStyle | /**
* Returns the style for a SQL character literal, such as {@code 'Hello, world!'}.
*
* @return Style for SQL character literals
*/
public AttributedStyle getQuotedStyle() {
return singleQuotedStyle;
} | 3.68 |
querydsl_GeometryExpressions_xmin | /**
* Returns X minima of a bounding box 2d or 3d or a geometry.
*
* @param expr geometry
* @return x minima
*/
public static NumberExpression<Double> xmin(GeometryExpression<?> expr) {
return Expressions.numberOperation(Double.class, SpatialOps.XMIN, expr);
} | 3.68 |
morf_Deployment_deploySchema | /**
* Static convenience method which deploys the specified database schema, prepopulating
* the upgrade step table with all pre-existing upgrade information. Assumes no initial
* start position manipulation is required and the application can start with an empty
* database.
*
* @param targetSchema The target dat... | 3.68 |
hbase_HashTable_selectPartitions | /**
* Choose partitions between row ranges to hash to a single output file Selects region
* boundaries that fall within the scan range, and groups them into the desired number of
* partitions.
*/
void selectPartitions(Pair<byte[][], byte[][]> regionStartEndKeys) {
List<byte[]> startKeys = new ArrayList<>();
for... | 3.68 |
flink_OrcLegacyTimestampColumnVector_fromTimestamp | // converting from/to Timestamp is copied from Hive 2.0.0 TimestampUtils
private static long fromTimestamp(Timestamp timestamp) {
long time = timestamp.getTime();
int nanos = timestamp.getNanos();
return (time * 1000000) + (nanos % 1000000);
} | 3.68 |
hudi_BaseHoodieTableServiceClient_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, extraMetad... | 3.68 |
framework_UIDL_getChildByTagName | /**
* Returns the child UIDL by its name. If several child nodes exist with the
* given name, the first child UIDL will be returned.
*
* @param tagName
* @return the child UIDL or null if child wit given name was not found
*/
public UIDL getChildByTagName(String tagName) {
for (Object next : this) {
i... | 3.68 |
flink_RestClientConfiguration_fromConfiguration | /**
* Creates and returns a new {@link RestClientConfiguration} from the given {@link
* Configuration}.
*
* @param config configuration from which the REST client endpoint configuration should be
* created from
* @return REST client endpoint configuration
* @throws ConfigurationException if SSL was configure... | 3.68 |
hbase_HBaseCommonTestingUtility_deleteDir | /**
* @param dir Directory to delete
* @return True if we deleted it.
*/
boolean deleteDir(final File dir) {
if (dir == null || !dir.exists()) {
return true;
}
int ntries = 0;
do {
ntries += 1;
try {
if (deleteOnExit()) {
FileUtils.deleteDirectory(dir);
}
return true;
... | 3.68 |
graphhopper_TranslationMap_postImportHook | /**
* This method does some checks and fills missing translation from en
*/
private void postImportHook() {
Map<String, String> enMap = get("en").asMap();
StringBuilder sb = new StringBuilder();
for (Translation tr : translations.values()) {
Map<String, String> trMap = tr.asMap();
for (Ent... | 3.68 |
hadoop_PseudoAuthenticator_setConnectionConfigurator | /**
* Sets a {@link ConnectionConfigurator} instance to use for
* configuring connections.
*
* @param configurator the {@link ConnectionConfigurator} instance.
*/
@Override
public void setConnectionConfigurator(ConnectionConfigurator configurator) {
connConfigurator = configurator;
} | 3.68 |
hbase_Procedure_elapsedTime | // ==========================================================================
// runtime state
// ==========================================================================
/** Returns the time elapsed between the last update and the start time of the procedure. */
public long elapsedTime() {
return getLastUpdate() -... | 3.68 |
hadoop_EmptyIOStatisticsStore_getInstance | /**
* Get the single instance of this class.
* @return a shared, empty instance.
*/
static IOStatisticsStore getInstance() {
return INSTANCE;
} | 3.68 |
flink_CatalogDescriptor_of | /**
* Creates an instance of this interface.
*
* @param catalogName the name of the catalog
* @param configuration the configuration of the catalog
*/
public static CatalogDescriptor of(String catalogName, Configuration configuration) {
return new CatalogDescriptor(catalogName, configuration);
} | 3.68 |
framework_VaadinPortlet_handleRequest | /**
* @param request
* @param response
* @throws PortletException
* @throws IOException
*
* @deprecated As of 7.0. Will likely change or be removed in a future
* version
*/
@Deprecated
protected void handleRequest(PortletRequest request,
PortletResponse response) throws PortletException, IOE... | 3.68 |
morf_AbstractSqlDialectTest_shouldGenerateCorrectSqlForMathOperationsForExistingDataFix2 | /**
* Regression test that checks if the DSL with Math expressions, that is used
* in Core and Aether modules produces expected SQL.
*/
@Test
public void shouldGenerateCorrectSqlForMathOperationsForExistingDataFix2() {
AliasedField dsl = floor(random().multiplyBy(new FieldLiteral(Math.pow(10, 6) - 1)));
String s... | 3.68 |
framework_SQLContainer_setAutoCommit | /**
* Set auto commit mode enabled or disabled. Auto commit mode means that all
* changes made to items of this container will be immediately written to
* the underlying data source.
*
* @param autoCommitEnabled
* true to enable auto commit mode
*/
public void setAutoCommit(boolean autoCommitEnabled) ... | 3.68 |
flink_CoFeedbackTransformation_getFeedbackEdges | /** Returns the list of feedback {@code Transformations}. */
public List<Transformation<F>> getFeedbackEdges() {
return feedbackEdges;
} | 3.68 |
pulsar_TxnLogBufferedWriter_nextTimingTrigger | /***
* Why not use {@link ScheduledExecutorService#scheduleAtFixedRate(Runnable, long, long, TimeUnit)} ?
* Because: when the {@link #singleThreadExecutorForWrite} thread processes slowly, the scheduleAtFixedRate task
* will continue to append tasks to the ledger thread, this burdens the ledger thread and leads to a... | 3.68 |
hbase_Table_ifEquals | /**
* Check for equality.
* @param value the expected value
*/
default CheckAndMutateBuilder ifEquals(byte[] value) {
return ifMatches(CompareOperator.EQUAL, value);
} | 3.68 |
pulsar_ProxyConnection_authChallengeSuccessCallback | // Always run in this class's event loop.
protected void authChallengeSuccessCallback(AuthData authChallenge) {
try {
// authentication has completed, will send newConnected command.
if (authChallenge == null) {
clientAuthRole = authState.getAuthRole();
if (LOG.isDebugEnabled... | 3.68 |
flink_HiveParserTypeCheckProcFactory_convertSqlOperator | // try to create an ExprNodeDesc with a SqlOperator
private ExprNodeDesc convertSqlOperator(
String funcText, List<ExprNodeDesc> children, HiveParserTypeCheckCtx ctx)
throws SemanticException {
SqlOperator sqlOperator =
HiveParserUtils.getSqlOperator(
funcText,
... | 3.68 |
graphhopper_DistanceCalcEarth_calcDist3D | /**
* This implements a rather quick solution to calculate 3D distances on earth using euclidean
* geometry mixed with Haversine formula used for the on earth distance. The haversine formula makes
* not so much sense as it is only important for large distances where then the rather smallish
* heights would becomes ... | 3.68 |
framework_TableTooManyColumns_getTestDescription | /*
* (non-Javadoc)
*
* @see com.vaadin.tests.components.AbstractTestUI#getTestDescription()
*/
@Override
protected String getTestDescription() {
return "Table column drop down becomes too large to fit the screen.";
} | 3.68 |
framework_FileUploadHandler_getBuffered | /**
* Returns the partly matched boundary string and the byte following
* that.
*
* @return
* @throws IOException
*/
private int getBuffered() throws IOException {
int b;
if (matchedCount == 0) {
// The boundary has been returned, return the buffered byte.
b = bufferedByte;
buffere... | 3.68 |
flink_KvStateSerializer_deserializeList | /**
* Deserializes all values with the given serializer.
*
* @param serializedValue Serialized value of type List<T>
* @param serializer Serializer for T
* @param <T> Type of the value
* @return Deserialized list or <code>null</code> if the serialized value is <code>null</code>
* @throws IOException On fai... | 3.68 |
flink_SourcePlanNode_setSerializer | /**
* Sets the serializer for this PlanNode.
*
* @param serializer The serializer to set.
*/
public void setSerializer(TypeSerializerFactory<?> serializer) {
this.serializer = serializer;
} | 3.68 |
framework_VAccordion_getContainerElement | /**
* Returns the container element for the content widget.
*
* @return the content container element
*/
@SuppressWarnings("deprecation")
public com.google.gwt.user.client.Element getContainerElement() {
return DOM.asOld(content);
} | 3.68 |
framework_WebBrowser_isEdge | /**
* Tests whether the user is using Edge.
*
* @since 7.5.3
* @return true if the user is using Edge, false if the user is not using
* Edge or if no information on the browser is present
*/
public boolean isEdge() {
if (browserDetails == null) {
return false;
}
return browserDetails.... | 3.68 |
dubbo_AbstractPeer_getHandler | /**
* @return ChannelHandler
*/
@Deprecated
public ChannelHandler getHandler() {
return getDelegateHandler();
} | 3.68 |
hudi_AbstractHoodieLogRecordReader_processQueuedBlocksForInstant | /**
* Process the set of log blocks belonging to the last instant which is read fully.
*/
private void processQueuedBlocksForInstant(Deque<HoodieLogBlock> logBlocks, int numLogFilesSeen,
Option<KeySpec> keySpecOpt) throws Exception {
while (!logBlocks.isEmpty()) {
LOG.... | 3.68 |
hadoop_MawoConfiguration_getWorkerWhiteListEnv | /**
* Get Worker whitelist env params.
* These params will be set in all tasks.
* @return list of white list environment
*/
public List<String> getWorkerWhiteListEnv() {
List<String> whiteList = new ArrayList<String>();
String env = configsMap.get(WORKER_WHITELIST_ENV);
if (env != null && !env.isEmpty()) {
... | 3.68 |
hbase_TableQuotaSnapshotStore_getSnapshotSizesForTable | /**
* Fetches any serialized snapshot sizes from the quota table for the {@code tn} provided. Any
* malformed records are skipped with a warning printed out.
*/
long getSnapshotSizesForTable(TableName tn) throws IOException {
try (Table quotaTable = conn.getTable(QuotaTableUtil.QUOTA_TABLE_NAME)) {
Scan s = Qu... | 3.68 |
hudi_CompactionCommand_compactionPlanReader | /**
* Compaction reading is different for different timelines. Create partial function to override special logic.
* We can make these read methods part of HoodieDefaultTimeline and override where necessary. But the
* BiFunction below has 'hacky' exception blocks, so restricting it to CLI.
*/
private <T extends Hood... | 3.68 |
flink_Tuple13_toString | /**
* Creates a string representation of the tuple in the form (f0, f1, f2, f3, f4, f5, f6, f7, f8,
* f9, f10, f11, f12), 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()... | 3.68 |
framework_DesignContext_getDefaultInstance | /**
* Returns the default instance for the given class. The instance must not
* be modified by the caller.
*
* @param <T>
* a component class
* @param component
* the component that determines the class
* @return the default instance for the given class. The return value must
* no... | 3.68 |
hibernate-validator_MethodInheritanceTree_getTopLevelMethods | /**
* Returns a set containing all the top level overridden methods.
*
* @return a set containing all the top level overridden methods
*/
public Set<ExecutableElement> getTopLevelMethods() {
return topLevelMethods;
} | 3.68 |
streampipes_Formats_fstFormat | /**
* Defines the transport format Fast-Serializer used by a data stream at runtime.
*
* @return The {@link org.apache.streampipes.model.grounding.TransportFormat} of type FST.
*/
public static TransportFormat fstFormat() {
return new TransportFormat(MessageFormat.FST);
} | 3.68 |
graphhopper_VectorTile_getExtent | /**
* <pre>
* Although this is an "optional" field it is required by the specification.
* See https://github.com/mapbox/vector-tile-spec/issues/47
* </pre>
*
* <code>optional uint32 extent = 5 [default = 4096];</code>
*/
public int getExtent() {
return extent_;
} | 3.68 |
flink_ExceptionUtils_isJvmFatalOrOutOfMemoryError | /**
* Checks whether the given exception indicates a situation that may leave the JVM in a
* corrupted state, or an out-of-memory error.
*
* <p>See {@link ExceptionUtils#isJvmFatalError(Throwable)} for a list of fatal JVM errors. This
* method additionally classifies the {@link OutOfMemoryError} as fatal, because ... | 3.68 |
hibernate-validator_ExecutableMetaData_getSignatures | /**
* Returns the signature(s) of the method represented by this meta data object, based on the represented
* executable's name and its parameter types.
*
* @return The signatures of this meta data object. Will only contain more than one element in case the represented
* method represents a sub-type method overrid... | 3.68 |
graphhopper_CarAccessParser_isBackwardOneway | /**
* make sure that isOneway is called before
*/
protected boolean isBackwardOneway(ReaderWay way) {
return way.hasTag("oneway", "-1")
|| way.hasTag("vehicle:forward", restrictedValues)
|| way.hasTag("motor_vehicle:forward", restrictedValues);
} | 3.68 |
rocketmq-connect_ExpressionBuilder_appendTableName | /**
* Append to this builder's expression the specified Column identifier, possibly surrounded by
* the leading and trailing quotes based upon {@link #setQuoteIdentifiers(QuoteMethod)}.
*
* @param name the name to be appended
* @param quote the quote method to be used
* @return this builder to enable methods to ... | 3.68 |
pulsar_ProducerBuilderImpl_initialSubscriptionName | /**
* Use this config to automatically create an initial subscription when creating the topic.
* If this field is not set, the initial subscription will not be created.
* If this field is set but the broker's `allowAutoSubscriptionCreation` is disabled, the producer will fail to
* be created.
* This method is limi... | 3.68 |
flink_TopNBuffer_checkSortKeyInBufferRange | /**
* Checks whether the record should be put into the buffer.
*
* @param sortKey sortKey to test
* @param topNum buffer to add
* @return true if the record should be put into the buffer.
*/
public boolean checkSortKeyInBufferRange(RowData sortKey, long topNum) {
Comparator<RowData> comparator = getSortKeyCom... | 3.68 |
hibernate-validator_CascadableConstraintMappingContextImplBase_addGroupConversion | /**
* Adds a group conversion for this element.
*
* @param from the source group of the conversion
* @param to the target group of the conversion
*/
public void addGroupConversion(Class<?> from, Class<?> to) {
groupConversions.put( from, to );
} | 3.68 |
hadoop_JWTRedirectAuthenticationHandler_constructLoginURL | /**
* Create the URL to be used for authentication of the user in the absence of
* a JWT token within the incoming request.
*
* @param request for getting the original request URL
* @return url to use as login url for redirect
*/
@VisibleForTesting
String constructLoginURL(HttpServletRequest request) {
String d... | 3.68 |
hadoop_ConfigurationUtils_injectDefaults | /**
* Injects configuration key/value pairs from one configuration to another if the key does not exist in the target
* configuration.
*
* @param source source configuration.
* @param target target configuration.
*/
public static void injectDefaults(Configuration source, Configuration target) {
Check.notNull(so... | 3.68 |
hbase_TextSortReducer_doSetup | /**
* Handles common parameter initialization that a subclass might want to leverage.
*/
protected void doSetup(Context context, Configuration conf) {
// If a custom separator has been used,
// decode it back from Base64 encoding.
separator = conf.get(ImportTsv.SEPARATOR_CONF_KEY);
if (separator == null) {
... | 3.68 |
dubbo_AbstractReferenceConfig_setInjvm | /**
* @param injvm
* @deprecated instead, use the parameter <b>scope</b> to judge if it's in jvm, scope=local
*/
@Deprecated
public void setInjvm(Boolean injvm) {
this.injvm = injvm;
} | 3.68 |
flink_TopNBuffer_removeLast | /**
* Removes the last record of the last Entry in the buffer.
*
* @return removed record
*/
public RowData removeLast() {
Map.Entry<RowData, Collection<RowData>> last = treeMap.lastEntry();
RowData lastElement = null;
if (last != null) {
Collection<RowData> collection = last.getValue();
... | 3.68 |
hudi_HoodieEmptyRecord_writeRecordPayload | /**
* NOTE: This method is declared final to make sure there's no polymorphism and therefore
* JIT compiler could perform more aggressive optimizations
*/
@Override
protected final void writeRecordPayload(T payload, Kryo kryo, Output output) {
kryo.writeObject(output, type);
// NOTE: Since [[orderingVal]] ... | 3.68 |
hadoop_JobMonitor_submissionFailed | /**
* Add a submission failed job's status, such that it can be communicated
* back to serial.
* TODO: Cleaner solution for this problem
* @param job
*/
public void submissionFailed(JobStats job) {
String jobID = job.getJob().getConfiguration().get(Gridmix.ORIGINAL_JOB_ID);
LOG.info("Job submission failed noti... | 3.68 |
framework_DragSourceExtensionConnector_removeDraggedStyle | /**
* Remove class name that indicated that the drag source element was being
* dragged. This method is called during the dragend event.
*
* @param event
* The drag end element.
*/
protected void removeDraggedStyle(NativeEvent event) {
Element dragSource = getDraggableElement();
dragSource.remo... | 3.68 |
hadoop_ReadStatistics_getTotalShortCircuitBytesRead | /**
* @return The total short-circuit local bytes read.
*/
public synchronized long getTotalShortCircuitBytesRead() {
return totalShortCircuitBytesRead;
} | 3.68 |
morf_SchemaUtils_columns | /**
* @see org.alfasoftware.morf.metadata.SchemaUtils.IndexBuilder#columns(java.lang.Iterable)
*/
@Override
public IndexBuilder columns(Iterable<String> columnNames) {
return new IndexBuilderImpl(getName(), isUnique(), columnNames);
} | 3.68 |
hadoop_ExpressionFactory_createExpression | /**
* Creates an instance of the requested {@link Expression} class.
*
* @param expressionClassname
* name of the {@link Expression} class to be instantiated
* @param conf
* the Hadoop configuration
* @return a new instance of the requested {@link Expression} class
*/
Expression createExpressi... | 3.68 |
flink_PeriodicMaterializationManager_scheduleNextMaterialization | // task thread and asyncOperationsThreadPool can access this method
private synchronized void scheduleNextMaterialization(long delay) {
if (started && !periodicExecutor.isShutdown()) {
LOG.info(
"Task {} schedules the next materialization in {} seconds",
subtaskName,
... | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.