name stringlengths 12 178 | code_snippet stringlengths 8 36.5k | score float64 3.26 3.68 |
|---|---|---|
flink_FlinkPipelineTranslationUtil_translateToJSONExecutionPlan | /** Extracts the execution plan (as JSON) from the given {@link Pipeline}. */
public static String translateToJSONExecutionPlan(
ClassLoader userClassloader, Pipeline pipeline) {
FlinkPipelineTranslator pipelineTranslator =
getPipelineTranslator(userClassloader, pipeline);
return pipelineTra... | 3.68 |
framework_BeanItemContainer_getBeanClassForCollection | /**
* Internal helper method to support the deprecated {@link Collection}
* container.
*
* @param <BT>
* @param collection
* @return
* @throws IllegalArgumentException
*/
@SuppressWarnings("unchecked")
@Deprecated
private static <BT> Class<? extends BT> getBeanClassForCollection(
Collection<? extends BT... | 3.68 |
morf_ChangeColumn_verifyDataTypeChanges | /**
* Verify That any data type transistions are allowed.
*/
private void verifyDataTypeChanges() {
// if there's no change, there's no problem
if (Objects.equals(fromColumn.getType(), toColumn.getType())) {
return;
}
// look up what target types we are allowed to change to
Collection<DataType> allowab... | 3.68 |
dubbo_ProviderConfig_setExportBackground | /**
* Whether export should run in background or not.
*
* @deprecated replace with {@link ModuleConfig#setBackground(Boolean)}
* @see ModuleConfig#setBackground(Boolean)
*/
@Deprecated
public void setExportBackground(Boolean exportBackground) {
this.exportBackground = exportBackground;
} | 3.68 |
flink_SignalHandler_handle | /**
* Handle an incoming signal.
*
* @param signal The incoming signal
*/
@Override
public void handle(Signal signal) {
LOG.info(
"RECEIVED SIGNAL {}: SIG{}. Shutting down as requested.",
signal.getNumber(),
signal.getName());
prevHandler.handle(signal);
} | 3.68 |
open-banking-gateway_PsuFintechAssociationService_readInboxFromFinTech | /**
* Allows to read consent specification that was required by the FinTech
* @param session Authorization session for the consent grant
* @param fintechUserPassword PSU/Fintech users' password
* @return Consent specification
*/
@Transactional
public FintechConsentSpecSecureStorage.FinTechUserInboxData readInboxFr... | 3.68 |
morf_RenameIndex_getToIndexName | /**
* Gets the name of the index after the change
*
* @return the name of the index after the change
*/
public String getToIndexName() {
return toIndexName;
} | 3.68 |
hudi_HoodieTable_rollbackInflightLogCompaction | /**
* Rollback failed compactions. Inflight rollbacks for compactions revert the .inflight file
* to the .requested file.
*
* @param inflightInstant Inflight Compaction Instant
*/
public void rollbackInflightLogCompaction(HoodieInstant inflightInstant, Function<String, Option<HoodiePendingRollbackInfo>> getPending... | 3.68 |
hadoop_BoundDTExtension_getUserAgentSuffix | /**
* Get a suffix for the UserAgent suffix of HTTP requests, which
* can be used to identify the principal making ABFS requests.
* @return an empty string, or a key=value string to be added to the UA
* header.
*/
default String getUserAgentSuffix() {
return "";
} | 3.68 |
druid_DruidDataSource_addFilter | /**
* 会去重复
*
* @param filter
*/
private void addFilter(Filter filter) {
boolean exists = false;
for (Filter initedFilter : this.filters) {
if (initedFilter.getClass() == filter.getClass()) {
exists = true;
break;
}
}
if (!exists) {
filter.init(this);
... | 3.68 |
hbase_HFileInfo_write | /**
* Write out this instance on the passed in <code>out</code> stream. We write it as a protobuf.
* @see #read(DataInputStream)
*/
void write(final DataOutputStream out) throws IOException {
HFileProtos.FileInfoProto.Builder builder = HFileProtos.FileInfoProto.newBuilder();
for (Map.Entry<byte[], byte[]> e : th... | 3.68 |
flink_TGetQueryIdReq_findByThriftId | /** Find the _Fields constant that matches fieldId, or null if its not found. */
public static _Fields findByThriftId(int fieldId) {
switch (fieldId) {
case 1: // OPERATION_HANDLE
return OPERATION_HANDLE;
default:
return null;
}
} | 3.68 |
framework_Table_refreshRenderedCells | /**
* Refreshes the rows in the internal cache. Only if
* {@link #resetPageBuffer()} is called before this then all values are
* guaranteed to be recreated.
*/
protected void refreshRenderedCells() {
if (!isAttached()) {
return;
}
if (!isContentRefreshesEnabled) {
return;
}
// ... | 3.68 |
hbase_RESTServlet_getConnectionCache | /** Returns the ConnectionCache instance */
public ConnectionCache getConnectionCache() {
return connectionCache;
} | 3.68 |
hbase_RecoverableZooKeeper_getAcl | /**
* getAcl is an idempotent operation. Retry before throwing exception
* @return list of ACLs
*/
public List<ACL> getAcl(String path, Stat stat) throws KeeperException, InterruptedException {
final Span span = TraceUtil.createSpan("RecoverableZookeeper.getAcl");
try (Scope ignored = span.makeCurrent()) {
R... | 3.68 |
querydsl_MetaDataExporter_setCatalogPattern | /**
* a catalog name; must match the catalog name as it
* is stored in the database; "" retrieves those without a catalog;
* <code>null</code> means that the catalog name should not be used to narrow
* the search
*/
public void setCatalogPattern(@Nullable String catalogPattern) {
this.catalogPat... | 3.68 |
dubbo_DefaultModuleDeployer_prepare | /**
* Prepare for export/refer service, trigger initializing application and module
*/
@Override
public void prepare() {
applicationDeployer.initialize();
this.initialize();
} | 3.68 |
hudi_CompactionTask_newBuilder | /**
* Utility to create builder for {@link CompactionTask}.
*
* @return Builder for {@link CompactionTask}.
*/
public static Builder newBuilder() {
return new Builder();
} | 3.68 |
flink_ConfluentRegistryAvroSerializationSchema_forGeneric | /**
* Creates {@link AvroSerializationSchema} that produces byte arrays that were generated from
* Avro schema and writes the writer schema to Confluent Schema Registry.
*
* @param subject subject of schema registry to produce
* @param schema schema that will be used for serialization
* @param schemaRegistryUrl U... | 3.68 |
hbase_SnapshotInfo_getSharedStoreFilesSize | /** Returns the total size of the store files shared */
public long getSharedStoreFilesSize() {
return hfilesSize.get();
} | 3.68 |
hudi_CompactionStrategy_generateCompactionPlan | /**
* Generate Compaction plan. Allows clients to order and filter the list of compactions to be set. The default
* implementation takes care of setting compactor Id from configuration allowing subclasses to only worry about
* ordering and filtering compaction operations
*
* @param writeConfig Hoodie Write Config
... | 3.68 |
hbase_KeyValue_getTypeByte | /** Return the KeyValue.TYPE byte representation */
byte getTypeByte(int keyLength) {
return this.bytes[this.offset + keyLength - 1 + ROW_OFFSET];
} | 3.68 |
hudi_GenericRecordFullPayloadGenerator_validate | /**
* Validate whether the record match schema.
*
* @param record Record to validate.
* @return True if matches.
*/
public boolean validate(GenericRecord record) {
return genericData.validate(baseSchema, record);
} | 3.68 |
framework_CurrentInstance_defineFallbackResolver | /**
* Adds a CurrentInstanceFallbackResolver, that is triggered when
* {@link #get(Class)} can't find a suitable instance for the given type
* parameter.
*
* @param type
* the class used on {@link #get(Class)} invocations to retrieve
* the current instance
* @param fallbackResolver
* ... | 3.68 |
hbase_RecoverableZooKeeper_getData | /**
* getData is an idempotent operation. Retry before throwing exception
*/
public byte[] getData(String path, boolean watch, Stat stat)
throws KeeperException, InterruptedException {
return getData(path, null, watch, stat);
} | 3.68 |
rocketmq-connect_ColumnDefinition_nullability | /**
* Indicates the nullability of values in the column.
*
* @return the nullability status of the given column; never null
*/
public Nullability nullability() {
return nullability;
} | 3.68 |
flink_CheckpointCommitter_setOperatorId | /**
* Internally used to set the operator ID after instantiation.
*
* @param id
* @throws Exception
*/
public void setOperatorId(String id) throws Exception {
this.operatorId = id;
} | 3.68 |
flink_Predicates_areFieldOfType | /**
* Tests that the field has the fully qualified type of {@code fqClassName} with the given
* modifiers.
*
* <p>Attention: changing the description will add a rule into the stored.rules.
*/
public static DescribedPredicate<JavaField> areFieldOfType(
String fqClassName, JavaModifier... modifiers) {
re... | 3.68 |
flink_SqlWindowTableFunction_checkIntervalOperands | /**
* Checks whether the operands starting from position {@code startPos} are all of type
* {@code INTERVAL}, returning whether successful.
*
* @param callBinding The call binding
* @param startPos The start position to validate (starting index is 0)
* @return true if validation passes
*/
boolean checkIntervalOp... | 3.68 |
flink_HiveParserQB_isSimpleSelectQuery | // to find target for fetch task conversion optimizer (not allows subqueries)
public boolean isSimpleSelectQuery() {
if (!qbp.isSimpleSelectQuery() || isCTAS() || qbp.isAnalyzeCommand()) {
return false;
}
for (HiveParserQBExpr qbexpr : aliasToSubq.values()) {
if (!qbexpr.isSimpleSelectQuery(... | 3.68 |
flink_EncodingFormat_listWritableMetadata | /**
* Returns the map of metadata keys and their corresponding data types that can be consumed by
* this format for writing. By default, this method returns an empty map.
*
* <p>Metadata columns add additional columns to the table's schema. An encoding format is
* responsible to accept requested metadata columns a... | 3.68 |
hudi_BaseHoodieWriteClient_reOrderColPosition | /**
* reorder the position of col.
*
* @param colName column which need to be reordered. if we want to change col from a nested filed, the fullName should be specified.
* @param referColName reference position.
* @param orderType col position change type. now support three change types: first/after/before
*/
publ... | 3.68 |
dubbo_TriHttp2RemoteFlowController_markedWritability | /**
* Save the state of writability.
*/
void markedWritability(boolean isWritable) {
this.markedWritable = isWritable;
} | 3.68 |
framework_SelectorPredicate_setIndex | /**
* @param index
* the index to set
*/
public void setIndex(int index) {
this.index = index;
} | 3.68 |
flink_BinaryRowWriter_reset | /** First, reset. */
@Override
public void reset() {
this.cursor = fixedSize;
for (int i = 0; i < nullBitsSizeInBytes; i += 8) {
segment.putLong(i, 0L);
}
} | 3.68 |
hadoop_JobTokenIdentifier_getKind | /** {@inheritDoc} */
@Override
public Text getKind() {
return KIND_NAME;
} | 3.68 |
flink_ExecutionEnvironment_setRestartStrategy | /**
* Sets the restart strategy configuration. The configuration specifies which restart strategy
* will be used for the execution graph in case of a restart.
*
* @param restartStrategyConfiguration Restart strategy configuration to be set
*/
@PublicEvolving
public void setRestartStrategy(
RestartStrategie... | 3.68 |
framework_DragAndDropWrapper_getDragImageComponent | /**
* Gets the component that will be used as the drag image. Only used when
* wrapper is set to {@link DragStartMode#COMPONENT_OTHER}
*
* @return <code>null</code> if no component is set.
*/
public Component getDragImageComponent() {
return dragImageComponent;
} | 3.68 |
querydsl_JDOExpressions_selectDistinct | /**
* Create a new detached {@link JDOQuery} instance with the given projection
*
* @param exprs projection
* @return select(distinct exprs)
*/
public static JDOQuery<Tuple> selectDistinct(Expression<?>... exprs) {
return select(exprs).distinct();
} | 3.68 |
hadoop_RemoteMethod_getMethodName | /**
* Get the name of the method.
*
* @return Name of the method.
*/
public String getMethodName() {
return this.methodName;
} | 3.68 |
flink_JobEdge_setUpstreamSubtaskStateMapper | /**
* Sets the channel state rescaler used for rescaling persisted data on upstream side of this
* JobEdge.
*
* @param upstreamSubtaskStateMapper The channel state rescaler selector to use.
*/
public void setUpstreamSubtaskStateMapper(SubtaskStateMapper upstreamSubtaskStateMapper) {
this.upstreamSubtaskStateMa... | 3.68 |
hadoop_OBSFileSystem_listFiles | /**
* List the statuses and block locations of the files in the given path. Does
* not guarantee to return the iterator that traverses statuses of the files
* in a sorted order.
*
* <pre>
* If the path is a directory,
* if recursive is false, returns files in the directory;
* if recursive is true, return fi... | 3.68 |
querydsl_JTSGeometryExpression_intersection | /**
* Returns a geometric object that represents the Point set intersection of this geometric
* object with anotherGeometry.
*
* @param geometry other geometry
* @return intersection of this and the other geometry
*/
public JTSGeometryExpression<Geometry> intersection(Expression<? extends Geometry> geometry) {
... | 3.68 |
hadoop_DelegationTokenIdentifier_toStringStable | /*
* A frozen version of toString() to be used to be backward compatible.
* When backward compatibility is not needed, use toString(), which provides
* more info and is supposed to evolve, see HDFS-9732.
* Don't change this method except for major revisions.
*
* NOTE:
* Currently this method is used by CLI for b... | 3.68 |
flink_DeclarativeAggregateFunction_operand | /**
* Arg of accumulate and retract, the input value (usually obtained from a new arrived data).
*/
public final UnresolvedReferenceExpression operand(int i) {
String name = String.valueOf(i);
if (getAggBufferNames().contains(name)) {
throw new IllegalStateException(
String.format("Agg... | 3.68 |
flink_SourceTestSuiteBase_testIdleReader | /**
* Test connector source with an idle reader.
*
* <p>This test will create 4 split in the external system, write test data to all splits, and
* consume back via a Flink job with 5 parallelism, so at least one parallelism / source reader
* will be idle (assigned with no splits). If the split enumerator of the so... | 3.68 |
framework_FilesystemContainer_toString | /**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
if ("".equals(file.getName())) {
return file.getAbsolutePath();
}
return file.getName();
} | 3.68 |
flink_ProjectOperator_projectTuple2 | /**
* Projects a {@link Tuple} {@link DataSet} to the previously selected fields.
*
* @return The projected DataSet.
* @see Tuple
* @see DataSet
*/
public <T0, T1> ProjectOperator<T, Tuple2<T0, T1>> projectTuple2() {
TypeInformation<?>[] fTypes = extractFieldTypes(fieldIndexes, ds.getType());
TupleTypeInf... | 3.68 |
flink_ZooKeeperUtils_treeCacheSelectorForPath | /**
* Returns a {@link TreeCacheSelector} that only accepts a specific node.
*
* @param fullPath node to accept
* @return tree cache selector
*/
private static TreeCacheSelector treeCacheSelectorForPath(String fullPath) {
return new TreeCacheSelector() {
@Override
public boolean traverseChildre... | 3.68 |
hbase_LruBlockCache_evict | /**
* Eviction method.
*/
void evict() {
// Ensure only one eviction at a time
if (!evictionLock.tryLock()) {
return;
}
try {
evictionInProgress = true;
long currentSize = this.size.get();
long bytesToFree = currentSize - minSize();
if (LOG.isTraceEnabled()) {
LOG.trace("Block cac... | 3.68 |
framework_GridElement_getCell | /**
* Gets cell element with given row and column index.
*
* @param rowIndex
* Row index
* @param colIndex
* Column index
* @return Cell element with given indices.
*/
public GridCellElement getCell(int rowIndex, int colIndex) {
scrollToRow(rowIndex);
return getSubPart("#cell[" + r... | 3.68 |
pulsar_ReaderConfiguration_setReaderName | /**
* Set the consumer name.
*
* @param readerName
*/
public ReaderConfiguration setReaderName(String readerName) {
checkArgument(StringUtils.isNotBlank(readerName));
conf.setReaderName(readerName);
return this;
} | 3.68 |
querydsl_GeometryExpressions_fromText | /**
* Return a specified ST_Geometry value from Well-Known Text representation (WKT).
*
* @param text WKT form
* @return geometry
*/
public static GeometryExpression<?> fromText(Expression<String> text) {
return geometryOperation(SpatialOps.GEOM_FROM_TEXT, text);
} | 3.68 |
hbase_HFileBlock_putHeader | /**
* Put the header into the given byte array at the given offset.
* @param onDiskSize size of the block on disk header + data + checksum
* @param uncompressedSize size of the block after decompression (but before optional data block
* decoding) including header
* @param onDiskDataSi... | 3.68 |
framework_RpcManager_getMethod | /**
* Gets the method that an invocation targets.
*
* @param invocation
* the method invocation to get the method for
*
* @since 7.4
* @return the method targeted by this invocation
*/
public static Method getMethod(MethodInvocation invocation) {
// Implemented here instead of in MethodInovcation... | 3.68 |
flink_SubtaskCheckpointCoordinatorImpl_cancelAsyncCheckpointRunnable | /**
* Cancel the async checkpoint runnable with given checkpoint id. If given checkpoint id is not
* registered, return false, otherwise return true.
*/
private boolean cancelAsyncCheckpointRunnable(long checkpointId) {
AsyncCheckpointRunnable asyncCheckpointRunnable;
synchronized (lock) {
asyncCheck... | 3.68 |
framework_VScrollTable_rowKeyIsSelected | /**
* Checks if the row represented by the row key has been selected
*
* @param key
* The generated row key
*/
private boolean rowKeyIsSelected(int rowKey) {
// Check single selections
if (selectedRowKeys.contains("" + rowKey)) {
return true;
}
// Check range selections
for ... | 3.68 |
hudi_SimpleBloomFilter_readFields | //@Override
public void readFields(DataInput in) throws IOException {
filter = new InternalBloomFilter();
filter.readFields(in);
} | 3.68 |
flink_EnvironmentInformation_getGitCommitTime | /** @return The Instant of the last commit of this code. */
public static Instant getGitCommitTime() {
return getVersionsInstance().gitCommitTime;
} | 3.68 |
hbase_StoreFileWriter_appendTrackedTimestampsToMetadata | /**
* Add TimestampRange and earliest put timestamp to Metadata
*/
public void appendTrackedTimestampsToMetadata() throws IOException {
// TODO: The StoreFileReader always converts the byte[] to TimeRange
// via TimeRangeTracker, so we should write the serialization data of TimeRange directly.
appendFileInfo(TI... | 3.68 |
framework_AbstractListing_writeItems | /**
* Writes the data source items to a design. Hierarchical select components
* should override this method to only write the root items.
*
* @param design
* the element into which to insert the items
* @param context
* the DesignContext instance used in writing
*/
protected void writeIte... | 3.68 |
flink_SegmentsUtil_hashByWords | /**
* hash segments to int, numBytes must be aligned to 4 bytes.
*
* @param segments Source segments.
* @param offset Source segments offset.
* @param numBytes the number bytes to hash.
*/
public static int hashByWords(MemorySegment[] segments, int offset, int numBytes) {
if (inFirstSegment(segments, offset, ... | 3.68 |
hbase_CacheConfig_setCacheDataOnWrite | /**
* @param cacheDataOnWrite whether data blocks should be written to the cache when an HFile is
* written
*/
public void setCacheDataOnWrite(boolean cacheDataOnWrite) {
this.cacheDataOnWrite = cacheDataOnWrite;
} | 3.68 |
morf_ChangeIndex_applyChange | /**
* Changes an index from the start point to the end point.
*
* @param schema {@link Schema} to apply the change against resulting in new
* metadata.
* @param indexStartPoint the start definition for the index
* @param indexEndPoint the end definition for the index
* @return MetaData with {@link Schem... | 3.68 |
hbase_RequestConverter_buildGetOnlineRegionRequest | /**
* Create a protocol buffer GetOnlineRegionRequest
* @return a protocol buffer GetOnlineRegionRequest
*/
public static GetOnlineRegionRequest buildGetOnlineRegionRequest() {
return GetOnlineRegionRequest.newBuilder().build();
} | 3.68 |
morf_AbstractSetOperator_validateFields | /**
* Don't allow {@code childSelect} have a different number of fields from
* {@code parentSelect}.
* <p>
* The column names from the parent select statement are used as the column
* names for the results returned. Selected columns listed in corresponding
* positions of each SELECT statement should have the same... | 3.68 |
hudi_HoodieMetadataFileSystemView_listPartition | /**
* Return all the files in the partition by reading from the Metadata Table.
*
* @param partitionPath The absolute path of the partition
* @throws IOException
*/
@Override
protected FileStatus[] listPartition(Path partitionPath) throws IOException {
return tableMetadata.getAllFilesInPartition(partitionPath);
... | 3.68 |
framework_HorizontalLayout_addComponentsAndExpand | /**
* Adds the given components to this layout and sets them as expanded. The
* width of all added child components are set to 100% so that the expansion
* will be effective. The width of this layout is also set to 100% if it is
* currently undefined.
* <p>
* The components are added in the provided order to the ... | 3.68 |
flink_RecordWriter_notifyFlusherException | /**
* Notifies the writer that the output flusher thread encountered an exception.
*
* @param t The exception to report.
*/
private void notifyFlusherException(Throwable t) {
if (flusherException == null) {
LOG.error("An exception happened while flushing the outputs", t);
flusherException = t;
... | 3.68 |
dubbo_ServiceInstanceMetadataUtils_setMetadataStorageType | /**
* Set the metadata storage type in specified {@link ServiceInstance service instance}
*
* @param serviceInstance {@link ServiceInstance service instance}
* @param metadataType remote or local
*/
public static void setMetadataStorageType(ServiceInstance serviceInstance, String metadataType) {
Map<String,... | 3.68 |
framework_ClickableRenderer_findCell | /**
* Returns the cell the given element belongs to.
*
* @param grid
* the grid instance that is queried
* @param e
* a cell element or the descendant of one
* @return the cell or null if the element is not a grid cell or a
* descendant of one
*/
private static <T> CellReference<T... | 3.68 |
hadoop_EvaluatingStatisticsMap_addFunction | /**
* add a mapping of a key to a function.
* @param key the key
* @param eval the evaluator
*/
void addFunction(String key, Function<String, E> eval) {
evaluators.put(key, eval);
} | 3.68 |
querydsl_MathExpressions_ln | /**
* Create a {@code ln(num)} expression
*
* <p>Returns the natural logarithm of num.</p>
*
* @param num numeric expression
* @return ln(num)
*/
public static <A extends Number & Comparable<?>> NumberExpression<Double> ln(Expression<A> num) {
return Expressions.numberOperation(Double.class, Ops.MathOps.LN, ... | 3.68 |
flink_Pattern_times | /**
* Specifies that the pattern can occur between from and to times with time interval corresponds
* to the maximum time gap between previous and current event for each times.
*
* @param from number of times matching event must appear at least
* @param to number of times matching event must appear at most
* @par... | 3.68 |
hadoop_AbfsConfiguration_getMandatoryPasswordString | /**
* Returns a value for the key if the value exists and is not null.
* Otherwise, throws {@link ConfigurationPropertyNotFoundException} with
* key name.
*
* @param key Account-agnostic configuration key
* @return value if exists
* @throws IOException if error in fetching password or
* ConfigurationPropert... | 3.68 |
hbase_FilterWrapper_areSerializedFieldsEqual | /**
* @param o the other filter to compare with
* @return true if and only if the fields of the filter that are serialized are equal to the
* corresponding fields in other. Used for testing.
*/
@Override
boolean areSerializedFieldsEqual(Filter o) {
if (o == this) return true;
if (!(o instanceof FilterWr... | 3.68 |
flink_LinkedOptionalMap_optionalMapOf | /**
* Creates an {@code LinkedOptionalMap} from the provided map.
*
* <p>This method is the equivalent of {@link Optional#of(Object)} but for maps. To support more
* than one {@code NULL} key, an optional map requires a unique string name to be associated
* with each key (provided by keyNameGetter)
*
* @param so... | 3.68 |
hbase_MunkresAssignment_primeInRow | /**
* Find a primed zero in the specified row. If there are no primed zeroes in the specified row,
* then null will be returned.
* @param r the index of the row to be searched
* @return pair of row and column indices of primed zero or null
*/
private Pair<Integer, Integer> primeInRow(int r) {
for (int c = 0; c <... | 3.68 |
hbase_MapReduceHFileSplitterJob_createSubmittableJob | /**
* Sets up the actual job.
* @param args The command line parameters.
* @return The newly created job.
* @throws IOException When setting up the job fails.
*/
public Job createSubmittableJob(String[] args) throws IOException {
Configuration conf = getConf();
String inputDirs = args[0];
String tabName = ar... | 3.68 |
framework_FieldGroup_findPropertyId | /**
* Searches for a property id from the current itemDataSource that matches
* the given memberField.
* <p>
* If perfect match is not found, uses a case insensitive search that also
* ignores underscores. Returns null if no match is found. Throws a
* SearchException if no item data source has been set.
* </p>
... | 3.68 |
hbase_ConnectionCache_getAdmin | /**
* Caller doesn't close the admin afterwards. We need to manage it and close it properly.
*/
public Admin getAdmin() throws IOException {
ConnectionInfo connInfo = getCurrentConnection();
if (connInfo.admin == null) {
Lock lock = locker.acquireLock(getEffectiveUser());
try {
if (connInfo.admin ==... | 3.68 |
flink_DependencyParser_getDepth | /**
* The depths returned by this method do NOT return a continuous sequence.
*
* <pre>
* +- org.apache.flink:...
* | +- org.apache.flink:...
* | | \- org.apache.flink:...
* ...
* </pre>
*/
private static int getDepth(String line) {
final int level = line.indexOf('+');
if (level != -1) {
ret... | 3.68 |
hudi_AbstractTableFileSystemView_addFilesToView | /**
* Adds the provided statuses into the file system view, and also caches it inside this object.
*/
public List<HoodieFileGroup> addFilesToView(FileStatus[] statuses) {
HoodieTimer timer = HoodieTimer.start();
List<HoodieFileGroup> fileGroups = buildFileGroups(statuses, visibleCommitsAndCompactionTimeline, true... | 3.68 |
hudi_BaseTableMetadata_fetchAllFilesInPartition | /**
* Return all the files from the partition.
*
* @param partitionPath The absolute path of the partition
*/
FileStatus[] fetchAllFilesInPartition(Path partitionPath) throws IOException {
String relativePartitionPath = FSUtils.getRelativePartitionPath(dataBasePath.get(), partitionPath);
String recordKey = rela... | 3.68 |
hadoop_ShortWritable_compareTo | /** Compares two ShortWritable. */
@Override
public int compareTo(ShortWritable o) {
short thisValue = this.value;
short thatValue = (o).value;
return (thisValue < thatValue ? -1 : (thisValue == thatValue ? 0 : 1));
} | 3.68 |
hadoop_OBSFileSystem_getSse | /**
* Return server-side encryption wrapper used by this filesystem instance.
*
* @return the server-side encryption wrapper
*/
SseWrapper getSse() {
return sse;
} | 3.68 |
hudi_HoodieFlinkCopyOnWriteTable_deletePrepped | /**
* Delete the given prepared records from the Hoodie table, at the supplied instantTime.
*
* <p>This implementation requires that the input records are already tagged, and de-duped if needed.
*
* <p>Specifies the write handle explicitly in order to have fine-grained control with
* the underneath file.
*
* @p... | 3.68 |
hibernate-validator_ExecutableHelper_getExecutableAsString | /**
* Returns a string representation of an executable with the given name and parameter types in the form
* {@code <name>(<parameterType 0> ... <parameterType n>)}, e.g. for logging purposes.
*
* @param name the name of the executable
* @param parameterTypes the types of the executable's parameters
*
* @return... | 3.68 |
graphhopper_LandmarkStorage_setWeight | /**
* @return false if the value capacity was reached and instead of the real value the SHORT_MAX was stored.
*/
final boolean setWeight(long pointer, double value) {
double tmpVal = value / factor;
if (tmpVal > Integer.MAX_VALUE)
throw new UnsupportedOperationException("Cannot store infinity explicit... | 3.68 |
morf_AbstractSqlDialectTest_testHints | /**
* Check that the optimiser hints work.
*/
@SuppressWarnings("deprecation")
@Test
public void testHints() {
assertEquals(
expectedHints1(1000),
testDialect.convertStatementToSQL(
select()
.from(new TableReference("SCHEMA2", "Foo"))
.innerJoin(new TableReference("Bar"), field("a").eq(fie... | 3.68 |
flink_FlinkKubeClientFactory_fromConfiguration | /**
* Create a Flink Kubernetes client with the given configuration.
*
* @param flinkConfig Flink configuration
* @param useCase Flink Kubernetes client use case (e.g. client, resourcemanager,
* kubernetes-ha-services)
* @return Return the Flink Kubernetes client with the specified configuration and dedicated... | 3.68 |
AreaShop_BukkitHandler1_12_getSignFacing | // Uses Sign, which is deprecated in 1.13+, broken in 1.14+
@Override
public BlockFace getSignFacing(Block block) {
if (block == null) {
return null;
}
BlockState blockState = block.getState();
if (blockState == null) {
return null;
}
MaterialData materialData = blockState.getData();
if(materialData instan... | 3.68 |
AreaShop_AreaShop_setDebug | /**
* Set if the plugin should output debug messages (loaded from config normally).
* @param debug Indicates if the plugin should output debug messages or not
*/
public void setDebug(boolean debug) {
this.debug = debug;
} | 3.68 |
framework_VaadinService_handleSessionExpired | /**
* Called when the session has expired and the request handling is therefore
* aborted.
*
* @param request
* The request
* @param response
* The response
* @throws ServiceException
* Thrown if there was any problem handling the expiration of
* the session
*/
p... | 3.68 |
hbase_ReplicationThrottler_isEnabled | /**
* If throttling is enabled
* @return true if throttling is enabled
*/
public boolean isEnabled() {
return this.enabled;
} | 3.68 |
hadoop_AbstractS3ACommitter_setOutputPath | /**
* Set the output path.
* @param outputPath new value
*/
protected final void setOutputPath(Path outputPath) {
this.outputPath = requireNonNull(outputPath, "Null output path");
} | 3.68 |
framework_Button_setIcon | /**
* Sets the component's icon and alt text.
* <p>
* An alt text is shown when an image could not be loaded, and read by
* assistive devices.
*
* @param icon
* the icon to be shown with the component's caption.
* @param iconAltText
* String to use as alt text
*/
public void setIcon(Reso... | 3.68 |
framework_Criterion_setValueType | /**
* Sets the type of the payload value to be compared.
*
* @param valueType
* type of the payload to be compared
*/
public void setValueType(Payload.ValueType valueType) {
this.valueType = valueType;
} | 3.68 |
hbase_HashTable_newReader | /**
* Open a TableHash.Reader starting at the first hash at or after the given key.
*/
public Reader newReader(Configuration conf, ImmutableBytesWritable startKey)
throws IOException {
return new Reader(conf, startKey);
} | 3.68 |
hbase_RequestConverter_buildIsBalancerEnabledRequest | /**
* Creates a protocol buffer IsBalancerEnabledRequest
* @return a IsBalancerEnabledRequest
*/
public static IsBalancerEnabledRequest buildIsBalancerEnabledRequest() {
return IsBalancerEnabledRequest.newBuilder().build();
} | 3.68 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.