signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class AbstractDisplayer { /** * Updates the current filter values for the given data set column . Any previous filter is reset .
* @ param filter A filter */
public void filterUpdate ( DataSetFilter filter ) { } } | if ( displayerSettings . isFilterEnabled ( ) ) { DataSetFilter oldFilter = currentFilter ; this . currentFilter = filter ; // Notify to those interested parties the selection event .
if ( displayerSettings . isFilterNotificationEnabled ( ) ) { for ( DisplayerListener listener : listenerList ) { listener . onFilterUpdat... |
public class JstlBundleInterceptor { /** * Initialize the interceptor .
* @ param configuration the configuration
* @ throws Exception when initialization fails */
@ Override public void init ( Configuration configuration ) throws Exception { } } | super . init ( configuration ) ; if ( ! ( getLocalizationBundleFactory ( ) instanceof JstlLocalizationBundleFactory ) ) { BootstrapPropertyResolver propertyResolver = configuration . getBootstrapPropertyResolver ( ) ; errorBundleName = propertyResolver . getProperty ( ERROR_BUNDLE_NAME_CONFIG ) ; LOGGER . debug ( "erro... |
public class LinkHandler { /** * Overide the reconstitute method so we can set the
* message processor instance as this will have been done by the
* cursor . next method . */
protected void reconstitute ( MessageProcessor processor , HashMap durableSubscriptionsTable , int startMode ) throws SIResourceException { }... | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "reconstitute" , new Object [ ] { processor , durableSubscriptionsTable , new Integer ( startMode ) } ) ; getLocalisationManager ( ) . setMessageProcessor ( processor ) ; super . reconstitute ( processor , durableSubscriptio... |
public class RBBINode { RBBINode flattenVariables ( ) { } } | if ( fType == varRef ) { RBBINode retNode = fLeftChild . cloneTree ( ) ; retNode . fRuleRoot = this . fRuleRoot ; retNode . fChainIn = this . fChainIn ; return retNode ; } if ( fLeftChild != null ) { fLeftChild = fLeftChild . flattenVariables ( ) ; fLeftChild . fParent = this ; } if ( fRightChild != null ) { fRightChil... |
public class Servlets { /** * Create an ErrorPage instance for a given exception type
* @ param location The location to redirect to
* @ param exceptionType The exception type
* @ return The error page definition */
public static ErrorPage errorPage ( String location , Class < ? extends Throwable > exceptionType ... | return new ErrorPage ( location , exceptionType ) ; |
public class RuleBasedCollator { /** * Sets whether uppercase characters sort before lowercase characters or vice versa , in strength TERTIARY . The
* default mode is false , and so lowercase characters sort before uppercase characters . If true , sort upper case
* characters first .
* @ param upperfirst
* true... | checkNotFrozen ( ) ; if ( upperfirst == isUpperCaseFirst ( ) ) { return ; } CollationSettings ownedSettings = getOwnedSettings ( ) ; ownedSettings . setCaseFirst ( upperfirst ? CollationSettings . CASE_FIRST_AND_UPPER_MASK : 0 ) ; setFastLatinOptions ( ownedSettings ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EEnum getFNDFtWtClass ( ) { } } | if ( fndFtWtClassEEnum == null ) { fndFtWtClassEEnum = ( EEnum ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 34 ) ; } return fndFtWtClassEEnum ; |
public class AbstractQueryPersonAttributeDao { /** * Append the attribute and its canonicalized value / s to the
* { @ code queryBuilder } . Uses { @ code queryAttribute } to determine whether or
* not the value / s should be canonicalized . I . e . the behavior is controlled
* by { @ link # setCaseInsensitiveQue... | // All logging messages were previously in generateQuery ( ) and were
// copy / pasted verbatim
final List < Object > canonicalizedQueryValues = this . canonicalizeAttribute ( queryAttribute , queryValues , caseInsensitiveQueryAttributes ) ; if ( dataAttribute == null ) { // preserved from historical versions which jus... |
public class EntityCapsManager { /** * Verify DiscoverInfo and Caps Node as defined in XEP - 0115 5.4 Processing
* Method .
* @ see < a href = " http : / / xmpp . org / extensions / xep - 0115 . html # ver - proc " > XEP - 0115
* 5.4 Processing Method < / a >
* @ param ver
* @ param hash
* @ param info
* ... | // step 3.3 check for duplicate identities
if ( info . containsDuplicateIdentities ( ) ) return false ; // step 3.4 check for duplicate features
if ( info . containsDuplicateFeatures ( ) ) return false ; // step 3.5 check for well - formed packet extensions
if ( verifyPacketExtensions ( info ) ) return false ; String c... |
public class JmolSymmetryScriptGenerator { /** * Returns an instance of a JmolSymmetryScriptGenerator , based on the symmetry of a structure ( factory method )
* @ param axisAligner
* @ param rotationGroup
* @ return instance of JmolSymmetryScriptGenerator */
public static JmolSymmetryScriptGenerator getInstance ... | String symmetry = axisAligner . getSymmetry ( ) ; if ( symmetry . equals ( "C1" ) ) { return new JmolSymmetryScriptGeneratorC1 ( ( RotationAxisAligner ) axisAligner , name ) ; } else if ( symmetry . startsWith ( "C" ) ) { return new JmolSymmetryScriptGeneratorCn ( ( RotationAxisAligner ) axisAligner , name ) ; } else i... |
public class IotHubResourcesInner { /** * Update an existing IoT Hubs tags .
* Update an existing IoT Hub tags . to update other fields use the CreateOrUpdate method .
* @ param resourceGroupName Resource group identifier .
* @ param resourceName Name of iot hub to update .
* @ throws IllegalArgumentException t... | if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( resourc... |
public class ChannelFrameworkImpl { /** * Remove the chain from the framework and disconnect it from any groups
* that contain it .
* @ param chaindata */
private synchronized void removeChainInternal ( ChainData chaindata ) { } } | String chainName = chaindata . getName ( ) ; ChainData [ ] chains = null ; for ( String groupName : chainGroups . keySet ( ) ) { chains = chainGroups . get ( groupName ) . getChains ( ) ; int j = 0 ; for ( ; j < chains . length ; j ++ ) { if ( chainName . equals ( chains [ j ] . getName ( ) ) ) { if ( TraceComponent . ... |
public class RsyncIndexInfos { /** * Call to system RSync binary implementation , */
private void triggerRSyncSynchronization ( ) { } } | // Call RSync to retrieve actual index from coordinator
if ( modeHandler . getMode ( ) == IndexerIoMode . READ_ONLY ) { EmbeddedCacheManager cacheManager = cache . getCacheManager ( ) ; if ( cacheManager . getCoordinator ( ) instanceof JGroupsAddress && cacheManager . getTransport ( ) instanceof JGroupsTransport ) { JG... |
public class YamlShardingDataSourceFactory { /** * Create sharding data source .
* @ param dataSourceMap data source map
* @ param yamlFile YAML file for rule configuration of databases and tables sharding without data sources
* @ return sharding data source
* @ throws SQLException SQL exception
* @ throws IO... | YamlRootShardingConfiguration config = YamlEngine . unmarshal ( yamlFile , YamlRootShardingConfiguration . class ) ; return ShardingDataSourceFactory . createDataSource ( dataSourceMap , new ShardingRuleConfigurationYamlSwapper ( ) . swap ( config . getShardingRule ( ) ) , config . getProps ( ) ) ; |
public class AbstractProperties { /** * Loads the application configuration .
* There are two potential sources of application configuration . The
* fallback configuration should always be there . The default configuration
* directory , < code > / etc / ec - cas - server < / code > , may optionally have an
* ap... | this . configDir = System . getProperty ( CONFIG_DIR_SYS_PROP ) ; if ( this . configDir == null ) { this . configDir = getDefaultConfigDir ( ) ; } if ( this . configDir == null ) { throw new AssertionError ( "eureka.config.dir not specified in " + FALLBACK_CONFIG_FILE ) ; } File configFile = new File ( this . configDir... |
public class ECKey { /** * Convert a Java JCE ECPublicKey into a BouncyCastle ECPoint */
public static ECPoint extractPublicKey ( final ECPublicKey ecPublicKey ) { } } | final java . security . spec . ECPoint publicPointW = ecPublicKey . getW ( ) ; final BigInteger xCoord = publicPointW . getAffineX ( ) ; final BigInteger yCoord = publicPointW . getAffineY ( ) ; return CURVE . getCurve ( ) . createPoint ( xCoord , yCoord ) ; |
public class Lexer { /** * 单行注释 , 开始状态 100 , 关注换行与 EOF */
boolean scanSingleLineComment ( ) { } } | while ( true ) { switch ( state ) { case 100 : if ( peek ( ) == '#' && next ( ) == '#' && next ( ) == '#' ) { state = 101 ; continue ; } return fail ( ) ; case 101 : for ( char c = next ( ) ; true ; c = next ( ) ) { if ( c == '\n' ) { if ( deletePreviousTextTokenBlankTails ( ) ) { return prepareNextScan ( 1 ) ; } else ... |
public class RpcProtocol { /** * Parses an invocation from an rpc request . */
public Invocation getInvocation ( final RpcRequest request , InterfaceDescriptor < ? > descriptor ) { } } | if ( request == null ) throw new NullPointerException ( "request" ) ; if ( descriptor == null ) throw new NullPointerException ( "descriptor" ) ; Invocation invocation = null ; LinkedList < String > parts = splitPath ( request . getRelativePath ( ) ) ; while ( ! parts . isEmpty ( ) ) { String part = parts . removeFirst... |
public class IntentsClient { /** * Returns the list of all intents in the specified agent .
* < p > Sample code :
* < pre > < code >
* try ( IntentsClient intentsClient = IntentsClient . create ( ) ) {
* ProjectAgentName parent = ProjectAgentName . of ( " [ PROJECT ] " ) ;
* for ( Intent element : intentsClie... | ListIntentsRequest request = ListIntentsRequest . newBuilder ( ) . setParent ( parent ) . build ( ) ; return listIntents ( request ) ; |
public class PBS { /** * Executes a PBS command .
* @ param cmdLine command
* @ param out output stream
* @ param err err stream
* @ return execute handler
* @ throws ExecuteException
* @ throws IOException */
static DefaultExecuteResultHandler execute ( CommandLine cmdLine , OutputStream out , OutputStream... | return execute ( cmdLine , Collections . < String , String > emptyMap ( ) , out , err ) ; |
public class SetContextClassLoaderPrivileged { /** * 146064.3 */
public Object run ( ) { } } | Thread currentThread = Thread . currentThread ( ) ; oldClassLoader = threadContextAccessor . getContextClassLoader ( currentThread ) ; // 369927
// The following tests are done in a certain order to maximize performance
if ( newClassLoader == oldClassLoader ) { wasChanged = false ; } else if ( ( newClassLoader == null ... |
public class ZWaveMultiInstanceCommandClass { /** * Gets a SerialMessage with the MULTI INSTANCE ENCAP command .
* Encapsulates a message for a specific instance .
* @ param serialMessage the serial message to encapsulate
* @ param instance the number of the instance to encapsulate the message for .
* @ return ... | logger . debug ( "Creating new message for application command MULTI_INSTANCE_ENCAP for node {} and instance {}" , this . getNode ( ) . getNodeId ( ) , instance ) ; byte [ ] payload = serialMessage . getMessagePayload ( ) ; byte [ ] newPayload = new byte [ payload . length + 3 ] ; System . arraycopy ( payload , 0 , new... |
public class ServiceBuilder { /** * Builds a new service object with the given parameters .
* @ return the newly - built service object */
public T build ( ) { } } | C clientObject = client ; if ( clientObject == null ) { clientObject = createClient ( ) ; } return factory . create ( clientObject ) ; |
public class SipRequest { /** * Indicates if the request URI in the request message is a URI with a scheme of " sip " or " sips " .
* @ return true if the request URI scheme is " sip " or " sips " , false otherwise . */
public boolean isSipURI ( ) { } } | if ( ( message == null ) || ( ( ( Request ) message ) . getRequestURI ( ) == null ) ) { return false ; } return ( ( Request ) message ) . getRequestURI ( ) . isSipURI ( ) ; |
public class FilePath { /** * { @ link File # getParent ( ) } etc cannot handle " . . " and " . " in the path component very well ,
* so remove them . */
@ Restricted ( NoExternalUse . class ) public static String normalize ( @ Nonnull String path ) { } } | StringBuilder buf = new StringBuilder ( ) ; // Check for prefix designating absolute path
Matcher m = ABSOLUTE_PREFIX_PATTERN . matcher ( path ) ; if ( m . find ( ) ) { buf . append ( m . group ( 1 ) ) ; path = path . substring ( m . end ( ) ) ; } boolean isAbsolute = buf . length ( ) > 0 ; // Split remaining path into... |
public class BTreeMutable { /** * for test only ! ! ! */
protected boolean delete ( @ NotNull ByteIterable key , @ Nullable ByteIterable value ) { } } | if ( deleteImpl ( key , value ) ) { TreeCursorMutable . notifyCursors ( this ) ; return true ; } return false ; |
public class AmazonIdentityManagementClient { /** * Lists the names of the inline policies that are embedded in the specified IAM group .
* An IAM group can also have managed policies attached to it . To list the managed policies that are attached to a
* group , use < a > ListAttachedGroupPolicies < / a > . For mor... | request = beforeClientExecution ( request ) ; return executeListGroupPolicies ( request ) ; |
public class Helpers { /** * Returns the string form of a JSON object with the specified key mapping to a JSON object
* enclosing the selector .
* < pre >
* { @ code
* Selector selector = eq ( " year " , 2017 ) ;
* System . out . println ( selector . toString ( ) ) ;
* / / Output : " year " : { " $ eq " : 2... | return String . format ( "{%s}" , withKey ( key , selector ) ) ; |
public class JpaConfigHelper { public static String getCacheAnnotation ( PackageImportAdder packageImportAdder , CacheConfigGetter ... cacheConfigGetters ) { } } | if ( cacheConfigGetters == null ) { return "" ; } for ( CacheConfigGetter cacheConfigGetter : cacheConfigGetters ) { if ( cacheConfigGetter != null ) { CacheConfig cacheConfig = cacheConfigGetter . getCacheConfig ( ) ; if ( cacheConfig != null ) { if ( cacheConfig . getUsage ( ) . isNone ( ) ) { return "" ; // cleaner ... |
public class AbstractCounter { /** * { @ inheritDoc } */
@ Override public DataPoint [ ] getSeries ( long timestampStartMs , long timestampEndMs , DataPoint . Type type ) { } } | return getSeries ( timestampStartMs , timestampEndMs , 1 , type ) ; |
public class BlockHouseHolder_DDRB { /** * Performs a standard QR decomposition on the specified submatrix that is one block wide .
* @ param blockLength
* @ param Y
* @ param gamma */
public static boolean decomposeQR_block_col ( final int blockLength , final DSubmatrixD1 Y , final double gamma [ ] ) { } } | int width = Y . col1 - Y . col0 ; int height = Y . row1 - Y . row0 ; int min = Math . min ( width , height ) ; for ( int i = 0 ; i < min ; i ++ ) { // compute the householder vector
if ( ! computeHouseHolderCol ( blockLength , Y , gamma , i ) ) return false ; // apply to rest of the columns in the block
rank1UpdateMult... |
public class CmsContentCheck { /** * Starts the content check . < p >
* @ param cms the CmsObject
* @ param report StringBuffer for reporting
* @ throws Exception if something goes wrong */
public void startContentCheck ( CmsObject cms , I_CmsReport report ) throws Exception { } } | m_report = report ; m_report . println ( Messages . get ( ) . container ( Messages . RPT_CONTENT_CHECK_BEGIN_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; // collect all resources
m_report . print ( Messages . get ( ) . container ( Messages . RPT_CONTENT_COLLECT_BEGIN_0 ) , I_CmsReport . FORMAT_HEADLINE ) ; m_report . printl... |
public class AbstractSpatialInsertGenerator { /** * If the old value is a geometry or a Well - Known Text , convert it to the appropriate new value .
* Otherwise , this method returns the old value .
* @ param oldValue
* the old value .
* @ param database
* the database instance .
* @ return the new value .... | final Object newValue = WktConversionUtils . handleColumnValue ( oldValue , database , this ) ; return newValue ; |
public class CloseableIterators { /** * Exhausts the { @ link com . merakianalytics . datapipelines . iterators . CloseableIterator } to populate a { @ link java . util . Set } . The
* { @ link com . merakianalytics . datapipelines . iterators . CloseableIterator } will be closed once exhausted .
* @ param < T >
... | final Set < T > set = new HashSet < > ( ) ; while ( iterator . hasNext ( ) ) { set . add ( iterator . next ( ) ) ; } iterator . close ( ) ; return set ; |
public class WebContainerListener { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . container . service . metadata . ModuleMetaDataListener # moduleMetaDataCreated ( com . ibm . ws . container . service . metadata . MetaDataEvent )
* This method listens for when WebModuleMetaData is first created . We use this... | // We only save meta data if it is for a web module
if ( event . getMetaData ( ) instanceof WebModuleMetaData ) { String appName = event . getMetaData ( ) . getJ2EEName ( ) . getApplication ( ) ; // Synchronization needed here , so only the first web module in an app initializes the data structures .
// The if conditio... |
public class Active { /** * Use concreteFlatMap to access a flatMap operator that works with the concrete type ( rather than the higher kind encoding )
* e . g . using a vavr Vector
* < pre >
* { @ code
* Active < vector , Integer > vector = Vectors . allTypeclasses ( Vector . of ( 1,2,3 ) ) ;
* vector . conc... | return new NarrowedFlatMap < > ( widen ) ; |
public class CacheStoreService { /** * Declarative Services method to deactivate this component .
* Best practice : this should be a protected method , not public or private
* @ param context for this component instance */
protected void deactivate ( ComponentContext context ) { } } | final boolean trace = TraceComponent . isAnyTracingEnabled ( ) ; // Block the progress of deactivate so that session manager is able to access the cache until it finishes stopping applications .
// The approach of blocking is copied from DatabaseStoreService as a temporary workaround . It would be nice to have a better... |
public class ClusterEntrypoint { /** * Clean up of temporary directories created by the { @ link ClusterEntrypoint } .
* @ throws IOException if the temporary directories could not be cleaned up */
private void cleanupDirectories ( ) throws IOException { } } | ShutdownHookUtil . removeShutdownHook ( shutDownHook , getClass ( ) . getSimpleName ( ) , LOG ) ; final String webTmpDir = configuration . getString ( WebOptions . TMP_DIR ) ; FileUtils . deleteDirectory ( new File ( webTmpDir ) ) ; |
public class PluginXmlAccess { /** * Merge the contents of the given plugin . xml into this one . */
public boolean merge ( final PluginXmlAccess other ) { } } | boolean _xblockexpression = false ; { String _path = this . getPath ( ) ; String _path_1 = other . getPath ( ) ; boolean _notEquals = ( ! Objects . equal ( _path , _path_1 ) ) ; if ( _notEquals ) { String _path_2 = this . getPath ( ) ; String _plus = ( "Merging plugin.xml files with different paths: " + _path_2 ) ; Str... |
public class JavaColonNamespaceBindings { /** * Looks up a binding .
* @ param name the name passed to { @ link # bind }
* @ return the binding , or null if unavailable
* @ throws NotContextException if a lookup attempts to use a binding as a
* context name */
public T lookup ( String name ) throws NamingExcept... | T binding = super . get ( name ) ; if ( binding != null ) { return binding ; } // Binding does not exist . Check if any the contexts are bindings .
String contextName = name ; while ( ! ( contextName = getContextName ( contextName ) ) . isEmpty ( ) ) { if ( containsKey ( contextName ) ) { throw new NotContextException ... |
public class CreateFunctionDefinitionVersionRequest { /** * A list of Lambda functions in this function definition version .
* @ param functions
* A list of Lambda functions in this function definition version . */
public void setFunctions ( java . util . Collection < Function > functions ) { } } | if ( functions == null ) { this . functions = null ; return ; } this . functions = new java . util . ArrayList < Function > ( functions ) ; |
public class RestProxy { /** * Create a publisher that ( 1 ) emits error if the provided response { @ code decodedResponse } has
* ' disallowed status code ' OR ( 2 ) emits provided response if it ' s status code ia allowed .
* ' disallowed status code ' is one of the status code defined in the provided SwaggerMeth... | final int responseStatusCode = decodedResponse . sourceResponse ( ) . statusCode ( ) ; final Mono < HttpDecodedResponse > asyncResult ; if ( ! methodParser . isExpectedResponseStatusCode ( responseStatusCode , additionalAllowedStatusCodes ) ) { Mono < String > bodyAsString = decodedResponse . sourceResponse ( ) . bodyA... |
public class Tags { /** * Create a new tag instance . */
public static Tag newTag ( String key , String value ) { } } | Tag newTag = new BasicTag ( intern ( key ) , intern ( value ) ) ; return intern ( newTag ) ; |
public class Reflections { /** * 根据字段名称获取字段
* @ param cls
* @ param fieldName
* @ return */
public static Field getDeclaredField ( final Class cls , final String fieldName ) { } } | return getField ( cls , fieldName , true ) ; |
public class NumberMap { /** * Creates a NumberMap for BigDecimals .
* @ param < K >
* @ return NumberMap & lt ; K , BigDecimal & gt ; */
public static < K > NumberMap < K , BigDecimal > newBigDecimalMap ( ) { } } | return new NumberMap < K , BigDecimal > ( ) { @ Override public void add ( K key , BigDecimal addend ) { put ( key , containsKey ( key ) ? get ( key ) . add ( addend ) : addend ) ; } @ Override public void sub ( K key , BigDecimal subtrahend ) { put ( key , ( containsKey ( key ) ? get ( key ) : BigDecimal . ZERO ) . su... |
public class CodePointTranslator { /** * Implementation of translate that maps onto the abstract translate ( int , Writer ) method .
* { @ inheritDoc } */
@ Override public final int translate ( final CharSequence input , final int index , final Writer out ) throws IOException { } } | final int codepoint = Character . codePointAt ( input , index ) ; final boolean consumed = translate ( codepoint , out ) ; return consumed ? 1 : 0 ; |
public class TransportFormatAdapter { /** * Export JSON .
* @ param serializable Serializable
* @ param output OutputStream
* @ throws IOException e */
public static void writeJson ( Serializable serializable , OutputStream output ) throws IOException { } } | TransportFormat . JSON . writeSerializableTo ( serializable , output ) ; |
public class ChromeCustomTabs { /** * Checks to see if this device supports Chrome Custom Tabs and if Chrome Custom Tabs are available .
* @ param context
* @ return { @ code true } if Chrome Custom Tabs are supported and available . */
public static boolean isAvailable ( Context context ) { } } | if ( SDK_INT < JELLY_BEAN_MR2 ) { return false ; } Intent serviceIntent = new Intent ( "android.support.customtabs.action.CustomTabsService" ) . setPackage ( "com.android.chrome" ) ; ServiceConnection connection = new ServiceConnection ( ) { @ Override public void onServiceConnected ( ComponentName name , IBinder servi... |
public class CxDxClientSessionImpl { /** * ( non - Javadoc )
* @ see org . jdiameter . api . cxdx . ClientCxDxSession # sendRegistrationTerminationAnswer ( org . jdiameter . api . cxdx . events . JRegistrationTerminationAnswer ) */
@ Override public void sendRegistrationTerminationAnswer ( JRegistrationTerminationAns... | send ( Event . Type . SEND_MESSAGE , null , answer ) ; |
public class ApplicationExtensions { /** * Sets the deployment settings for deployment mode for the given application .
* @ param application
* the application to set the settings */
public static void setDeploymentModeConfiguration ( final Application application ) { } } | application . getMarkupSettings ( ) . setStripComments ( true ) ; // The resources are never polled . This are properties , html ,
// css , js files .
application . getResourceSettings ( ) . setResourcePollFrequency ( null ) ; application . getResourceSettings ( ) . setJavaScriptCompressor ( new DefaultJavaScriptCompre... |
public class ServerSentEventService { /** * Sends data to all connections for a given URI resource
* @ param uri The URI resource for the connection
* @ param data The event data */
public void send ( String uri , String data ) { } } | Objects . requireNonNull ( uri , Required . URI . toString ( ) ) ; final Set < ServerSentEventConnection > uriConnections = getConnections ( uri ) ; if ( uriConnections != null ) { uriConnections . stream ( ) . filter ( ServerSentEventConnection :: isOpen ) . forEach ( ( ServerSentEventConnection connection ) -> connec... |
public class AbstractSignalEventDefinitionBuilder { /** * Sets a " camunda : in " parameter to pass an expression from the signal - throwing
* process instance to a variable in the signal - catching process instance
* @ param sourceExpression the expression in the signal - throwing process instance
* @ param targ... | CamundaIn param = modelInstance . newInstance ( CamundaIn . class ) ; param . setCamundaSourceExpression ( sourceExpression ) ; param . setCamundaTarget ( target ) ; addExtensionElement ( param ) ; return myself ; |
public class ModifyVpcEndpointRequest { /** * ( Interface endpoint ) One or more subnets IDs in which to remove the endpoint .
* @ param removeSubnetIds
* ( Interface endpoint ) One or more subnets IDs in which to remove the endpoint . */
public void setRemoveSubnetIds ( java . util . Collection < String > removeSu... | if ( removeSubnetIds == null ) { this . removeSubnetIds = null ; return ; } this . removeSubnetIds = new com . amazonaws . internal . SdkInternalList < String > ( removeSubnetIds ) ; |
public class FSImageSerialization { /** * Save one inode ' s attributes to the image . */
static void saveINode2Image ( INode node , DataOutputStream out ) throws IOException { } } | byte [ ] name = node . getLocalNameBytes ( ) ; out . writeShort ( name . length ) ; out . write ( name ) ; out . writeLong ( node . getId ( ) ) ; if ( node instanceof INodeHardLinkFile ) { // Process the hard link file :
// If the hard link has more than 1 reference cnt , then store its type with the hard link ID
// Ot... |
public class DocumentRootImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public NotificationChain basicSetBinomialDistribution ( BinomialDistributionType newBinomialDistribution , NotificationChain msgs ) { } } | return ( ( FeatureMap . Internal ) getMixed ( ) ) . basicAdd ( BpsimPackage . Literals . DOCUMENT_ROOT__BINOMIAL_DISTRIBUTION , newBinomialDistribution , msgs ) ; |
public class StringUtil { /** * < p > removeDiacritics . < / p >
* @ param s a { @ link java . lang . String } object .
* @ return a { @ link java . lang . String } object . */
public static String removeDiacritics ( String s ) { } } | return Normalizer . normalize ( s , Normalizer . Form . NFD ) . replaceAll ( "\\p{InCombiningDiacriticalMarks}+" , "" ) ; |
public class KxPublisherActor { /** * see onError ( ) comment */
public void _onSubscribe ( Subscription subscription ) { } } | producer = subscription ; ArrayList < Runnable > tmp = this . doOnSubscribe ; this . doOnSubscribe = null ; tmp . forEach ( runnable -> runnable . run ( ) ) ; |
public class ComponentUtils { /** * Retrieve a sub entity by its relationship .
* @ param entity cannot be < code > null < / code > .
* @ param rel cannot be < code > null < / code > or empty .
* @ return the located entity or < code > null < / code > if not found . */
public static Entity getSubEntityByRel ( Ent... | if ( entity == null ) { throw new IllegalArgumentException ( "entity cannot be null." ) ; } if ( ArrayUtils . isEmpty ( rel ) ) { throw new IllegalArgumentException ( "rel cannot be null or empty" ) ; } List < Entity > entities = entity . getEntities ( ) ; if ( entities == null ) return null ; Entity ent = null ; for (... |
public class SpatialReferenceSystemDao { /** * { @ inheritDoc } */
@ Override public SpatialReferenceSystem queryForSameId ( SpatialReferenceSystem data ) throws SQLException { } } | SpatialReferenceSystem srs = super . queryForSameId ( data ) ; setDefinition_12_063 ( srs ) ; return srs ; |
public class IntSet { /** * Reverses an array .
* @ param array the array
* @ param start the index to start at
* @ param end the index to end at */
private static void reverse ( int [ ] array , int start , int end ) { } } | for ( int i = start , j = end ; i < -- j ; ++ i ) { int t = array [ i ] ; array [ i ] = array [ j ] ; array [ j ] = t ; } |
public class MathUtils { /** * Computes interpolation between two values , using the interpolation factor t .
* The interpolation formula is ( end - start ) * t + start .
* However , the computation ensures that t = 0 produces exactly start , and t = 1 , produces exactly end .
* It also guarantees that for 0 < = ... | // When end = = start , we want result to be equal to start , for all t
// values . At the same time , when end ! = start , we want the result to be
// equal to start for t = = 0 and end for t = = 1.0
// The regular formula end _ * t + ( 1.0 - t ) * start _ , when end _ = =
// start _ , and t at 1/3 , produces value di... |
public class GeoPackageIOUtils { /** * Copy an input stream to a file location
* @ param copyFrom
* from file
* @ param copyTo
* to file
* @ param progress
* progress tracker
* @ throws IOException
* upon failure */
public static void copyStream ( InputStream copyFrom , File copyTo , GeoPackageProgress ... | OutputStream to = new FileOutputStream ( copyTo ) ; copyStream ( copyFrom , to , progress ) ; // Try to delete the file if progress was cancelled
if ( progress != null && ! progress . isActive ( ) && progress . cleanupOnCancel ( ) ) { copyTo . delete ( ) ; } |
public class JsonUnitResultMatchers { /** * Fails if the selected JSON is not an Object or is not present . */
public ResultMatcher isObject ( ) { } } | return new AbstractResultMatcher ( path , configuration ) { public void doMatch ( Object actual ) { isPresent ( actual ) ; Node node = getNode ( actual ) ; if ( node . getNodeType ( ) != OBJECT ) { failOnType ( node , "an object" ) ; } } } ; |
public class FacesConfigFlowDefinitionFacesMethodCallTypeImpl { /** * If not already created , a new < code > parameter < / code > element will be created and returned .
* Otherwise , the first existing < code > parameter < / code > element will be returned .
* @ return the instance defined for the element < code >... | List < Node > nodeList = childNode . get ( "parameter" ) ; if ( nodeList != null && nodeList . size ( ) > 0 ) { return new FacesConfigFlowDefinitionFlowCallParameterTypeImpl < FacesConfigFlowDefinitionFacesMethodCallType < T > > ( this , "parameter" , childNode , nodeList . get ( 0 ) ) ; } return createParameter ( ) ; |
public class RepositoryServiceImpl { /** * { @ inheritDoc } */
public void removeRepository ( final String name , boolean forceRemove ) throws RepositoryException { } } | // Need privileges to manage repository .
SecurityManager security = System . getSecurityManager ( ) ; if ( security != null ) { security . checkPermission ( JCRRuntimePermissions . MANAGE_REPOSITORY_PERMISSION ) ; } if ( ! forceRemove && ! canRemoveRepository ( name ) ) { throw new RepositoryException ( "Repository " ... |
public class BrokerNodeGroupInfoMarshaller { /** * Marshall the given parameter object . */
public void marshall ( BrokerNodeGroupInfo brokerNodeGroupInfo , ProtocolMarshaller protocolMarshaller ) { } } | if ( brokerNodeGroupInfo == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( brokerNodeGroupInfo . getBrokerAZDistribution ( ) , BROKERAZDISTRIBUTION_BINDING ) ; protocolMarshaller . marshall ( brokerNodeGroupInfo . getClientSubnets ( ) , CLI... |
public class CmsExportHelper { /** * Writes the OpenCms manifest . xml file to the export . < p >
* @ param xmlSaxWriter the SAX writer to use
* @ throws SAXException in case of issues creating the manifest . xml
* @ throws IOException in case of file access issues */
public void writeManifest ( CmsXmlSaxWriter x... | if ( m_isExportAsFiles ) { writeManifest2Rfs ( xmlSaxWriter ) ; } else { writeManifest2Zip ( xmlSaxWriter ) ; } |
public class GrowingArrayUtils { /** * Primitive boolean version of { @ link # append ( Object [ ] , int , Object ) } . */
public static boolean [ ] append ( boolean [ ] array , int currentSize , boolean element ) { } } | assert currentSize <= array . length ; if ( currentSize + 1 > array . length ) { boolean [ ] newArray = new boolean [ growSize ( currentSize ) ] ; System . arraycopy ( array , 0 , newArray , 0 , currentSize ) ; array = newArray ; } array [ currentSize ] = element ; return array ; |
public class LoadMultipartitionTable { /** * These parameters , with the exception of ctx , map to user provided values .
* @ param ctx
* Internal . Not a user - supplied parameter .
* @ param tableName
* Name of persistent table receiving data .
* @ param table
* A VoltTable with schema matching tableName ... | // if tableName is replicated , just send table everywhere .
// otherwise , create a VoltTable for each partition and
// split up the incoming table . . then send those partial
// tables to the appropriate sites .
Table catTable = ctx . getDatabase ( ) . getTables ( ) . getIgnoreCase ( tableName ) ; if ( catTable == nu... |
public class PaxDate { /** * Obtains a { @ code PaxDate } from a temporal object .
* This obtains a date in the Pax calendar system based on the specified temporal .
* A { @ code TemporalAccessor } represents an arbitrary set of date and time information ,
* which this factory converts to an instance of { @ code ... | if ( temporal instanceof PaxDate ) { return ( PaxDate ) temporal ; } return PaxDate . ofEpochDay ( temporal . getLong ( EPOCH_DAY ) ) ; |
public class CommercePriceListLocalServiceBaseImpl { /** * Returns all the commerce price lists matching the UUID and company .
* @ param uuid the UUID of the commerce price lists
* @ param companyId the primary key of the company
* @ return the matching commerce price lists , or an empty list if no matches were ... | return commercePriceListPersistence . findByUuid_C ( uuid , companyId ) ; |
public class AfplibPackageImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public EClass getPGPRG ( ) { } } | if ( pgprgEClass == null ) { pgprgEClass = ( EClass ) EPackage . Registry . INSTANCE . getEPackage ( AfplibPackage . eNS_URI ) . getEClassifiers ( ) . get ( 423 ) ; } return pgprgEClass ; |
public class CmsContainerConfigurationCacheState { /** * Gets the container configuration for a given root path , name and locale . < p >
* @ param rootPath the root path
* @ param name the configuration name
* @ return the container configuration for the given combination of parameters */
public synchronized Cms... | String key = getCacheKey ( rootPath ) ; if ( m_configurationsByPath . containsKey ( key ) ) { CmsContainerConfigurationGroup group = m_configurationsByPath . get ( key ) ; CmsContainerConfiguration result = group . getConfiguration ( name ) ; return result ; } return null ; |
public class FilterBlur { /** * Compute blur point .
* @ param matrix The matrix used .
* @ param in The source pixels .
* @ param out The destination pixels .
* @ param x The current horizontal index .
* @ param index The current vertical index .
* @ param ioffset The index offset .
* @ param cols2 The h... | float r = 0 ; float g = 0 ; float b = 0 ; float a = 0 ; final int moffset = cols2 ; for ( int col = - cols2 ; col <= cols2 ; col ++ ) { final float f = matrix [ moffset + col ] ; if ( Double . doubleToRawLongBits ( f ) != 0L ) { final int ix = checkEdge ( width , x , col , edge ) ; final int rgb = in [ ioffset + ix ] ;... |
public class AmazonMTurkClient { /** * The < code > GetAccountBalance < / code > operation retrieves the amount of money in your Amazon Mechanical Turk
* account .
* @ param getAccountBalanceRequest
* @ return Result of the GetAccountBalance operation returned by the service .
* @ throws ServiceException
* Am... | request = beforeClientExecution ( request ) ; return executeGetAccountBalance ( request ) ; |
public class SpiderParam { /** * Sets the whether the spider parses the sitemap . xml for URIs .
* @ param parseSitemapXml the new value for parseSitemapXml */
public void setParseSitemapXml ( boolean parseSitemapXml ) { } } | this . parseSitemapXml = parseSitemapXml ; getConfig ( ) . setProperty ( SPIDER_PARSE_SITEMAP_XML , Boolean . toString ( parseSitemapXml ) ) ; |
public class SimpleConfig { /** * JavaBean stuff uses this */
static void addMissing ( List < ConfigException . ValidationProblem > accumulator , ConfigValueType refType , Path path , ConfigOrigin origin ) { } } | addMissing ( accumulator , getDesc ( refType ) , path , origin ) ; |
public class JaversSchemaManager { /** * JaVers 5.0 to 5.1 schema migration */
private void addCommitDateInstantColumnIfNeeded ( ) { } } | if ( ! columnExists ( getCommitTableNameWithSchema ( ) , COMMIT_COMMIT_DATE_INSTANT ) ) { addStringColumn ( getCommitTableNameWithSchema ( ) , COMMIT_COMMIT_DATE_INSTANT , 30 ) ; } else { extendStringColumnIfNeeded ( getCommitTableNameWithSchema ( ) , COMMIT_COMMIT_DATE_INSTANT , 30 ) ; } |
public class ApplicationMetadata { /** * Gets the mapped persistence unit .
* @ param clazz
* the clazz
* @ return the mapped persistence unit */
public List < String > getMappedPersistenceUnit ( Class < ? > clazz ) { } } | return this . clazzToPuMap != null ? this . clazzToPuMap . get ( clazz . getName ( ) ) : null ; |
public class HierarchicalProperty { /** * retrieves children property by name .
* @ param name child name
* @ return property or null if not found */
public HierarchicalProperty getChild ( QName name ) { } } | for ( HierarchicalProperty child : children ) { if ( child . getName ( ) . equals ( name ) ) return child ; } return null ; |
public class BacklogEndPointSupport { /** * Returns the endpoint of attachment file .
* @ param issueIdOrKey the issue identifier
* @ param attachmentId the attachment identifierr
* @ return the endpoint
* @ throws BacklogException */
public String getIssueAttachmentEndpoint ( Object issueIdOrKey , Object attac... | return buildEndpoint ( "issues/" + issueIdOrKey + "/attachments/" + attachmentId ) ; |
public class JFXTreeTableCell { /** * Returns the current disclosure node set in this cell . */
public final Node getDisclosureNode ( ) { } } | if ( disclosureNode . get ( ) == null ) { final StackPane disclosureNode = new StackPane ( ) ; disclosureNode . getStyleClass ( ) . setAll ( "tree-disclosure-node" ) ; disclosureNode . setMouseTransparent ( true ) ; final StackPane disclosureNodeArrow = new StackPane ( ) ; disclosureNodeArrow . getStyleClass ( ) . setA... |
public class LengthValidator { /** * / * ( non - Javadoc )
* @ see nz . co . senanque . validationengine . annotations1 . FieldValidator # init ( java . lang . annotation . Annotation ) */
public void init ( Length annotation , PropertyMetadata propertyMetadata ) { } } | m_minLength = annotation . minLength ( ) == null ? - 1 : Integer . valueOf ( annotation . minLength ( ) ) ; m_maxLength = annotation . maxLength ( ) == null ? - 1 : Integer . valueOf ( annotation . maxLength ( ) ) ; m_propertyMetadata = propertyMetadata ; m_message = annotation . message ( ) ; |
public class CommerceTierPriceEntryPersistenceImpl { /** * Returns the commerce tier price entry where companyId = & # 63 ; and externalReferenceCode = & # 63 ; or throws a { @ link NoSuchTierPriceEntryException } if it could not be found .
* @ param companyId the company ID
* @ param externalReferenceCode the exte... | CommerceTierPriceEntry commerceTierPriceEntry = fetchByC_ERC ( companyId , externalReferenceCode ) ; if ( commerceTierPriceEntry == null ) { StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "companyId=" ) ; msg . append ( companyId ) ; msg . append ( ", externalRe... |
public class HostResolver { /** * Assumes sorted input in scored */
private List < String > findMatchesWithLowestScore ( final List < ScoredHost > scored ) { } } | final int minScore = scored . get ( 0 ) . score ; final ImmutableList . Builder < String > minScoreHosts = ImmutableList . builder ( ) ; for ( final ScoredHost score : scored ) { if ( score . score == minScore ) { minScoreHosts . add ( score . host ) ; } } return minScoreHosts . build ( ) ; |
public class AbstractRStarTree { /** * Splits the specified node and returns the newly created split node .
* @ param node the node to be split
* @ return the newly created split node */
private N split ( N node ) { } } | // choose the split dimension and the split point
int minimum = node . isLeaf ( ) ? leafMinimum : dirMinimum ; long [ ] split = settings . nodeSplitter . split ( node , NodeArrayAdapter . STATIC , minimum ) ; // New node
final N newNode = node . isLeaf ( ) ? createNewLeafNode ( ) : createNewDirectoryNode ( ) ; // do th... |
public class Text { /** * Returns the n < sup > th < / sup > absolute parent of the path , where n = level .
* Example : < br >
* < code >
* Text . getAbsoluteParent ( " / foo / bar / test " , 1 ) = = " / foo / bar "
* < / code >
* @ param path
* the path of the page
* @ param level
* the level of the p... | int idx = 0 ; int len = path . length ( ) ; while ( level >= 0 && idx < len ) { idx = path . indexOf ( '/' , idx + 1 ) ; if ( idx < 0 ) { idx = len ; } level -- ; } return level >= 0 ? "" : path . substring ( 0 , idx ) ; |
public class Morphia { /** * It is best to use a Mongo singleton instance here .
* @ param mongoClient the representations of the connection to a MongoDB instance
* @ param dbName the name of the database
* @ return a Datastore that you can use to interact with MongoDB */
@ SuppressWarnings ( "deprecation" ) publ... | return new DatastoreImpl ( this , mongoClient , dbName ) ; |
public class SharedTreeMojoModel { /** * SET IN STONE FOR MOJO VERSION " 1.00 " - DO NOT CHANGE
* @ param tree
* @ param row
* @ param computeLeafAssignment
* @ return */
@ SuppressWarnings ( "ConstantConditions" ) // Complains that the code is too complex . Well duh !
public static double scoreTree0 ( byte [ ]... | ByteBufferWrapper ab = new ByteBufferWrapper ( tree ) ; GenmodelBitSet bs = null ; // Lazily set on hitting first group test
long bitsRight = 0 ; int level = 0 ; while ( true ) { int nodeType = ab . get1U ( ) ; int colId = ab . get2 ( ) ; if ( colId == 65535 ) return ab . get4f ( ) ; int naSplitDir = ab . get1U ( ) ; b... |
public class AWSStorageGatewayClient { /** * Gets a description for one or more Network File System ( NFS ) file shares from a file gateway . This operation is
* only supported for file gateways .
* @ param describeNFSFileSharesRequest
* DescribeNFSFileSharesInput
* @ return Result of the DescribeNFSFileShares ... | request = beforeClientExecution ( request ) ; return executeDescribeNFSFileShares ( request ) ; |
public class ApiOvhOrder { /** * Get prices and contracts information
* REST : GET / order / hosting / web / { serviceName } / cdn / { duration }
* @ param offer [ required ] Cdn offers you can add to your hosting
* @ param serviceName [ required ] The internal name of your hosting
* @ param duration [ required... | String qPath = "/order/hosting/web/{serviceName}/cdn/{duration}" ; StringBuilder sb = path ( qPath , serviceName , duration ) ; query ( sb , "offer" , offer ) ; String resp = exec ( qPath , "GET" , sb . toString ( ) , null ) ; return convertTo ( resp , OvhOrder . class ) ; |
public class ChunkAnnotationUtils { /** * Return chunk offsets
* @ param chunkList - List of chunks
* @ param charStart - character begin offset
* @ param charEnd - character end offset
* @ return chunk offsets */
public static Interval < Integer > getChunkOffsetsUsingCharOffsets ( List < ? extends CoreMap > ch... | int chunkStart = 0 ; int chunkEnd = chunkList . size ( ) ; // Find first chunk with start > charStart
for ( int i = 0 ; i < chunkList . size ( ) ; i ++ ) { int start = chunkList . get ( i ) . get ( CoreAnnotations . CharacterOffsetBeginAnnotation . class ) ; if ( start > charStart ) { break ; } chunkStart = i ; } // Fi... |
public class CreateColumnFamilyStatement { /** * Returns a CFMetaData instance based on the parameters parsed from this
* < code > CREATE < / code > statement , or defaults where applicable .
* @ param keyspace keyspace to apply this column family to
* @ return a CFMetaData instance corresponding to the values pa... | validate ( variables ) ; try { boolean isDense = columns . isEmpty ( ) ; CFMetaData newCFMD = new CFMetaData ( keyspace , name , ColumnFamilyType . Standard , CellNames . fromAbstractType ( cfProps . getComparator ( ) , isDense ) ) ; if ( CFMetaData . DEFAULT_COMPRESSOR != null && cfProps . compressionParameters . isEm... |
public class SQLUtils { /** * 生成update语句
* @ param t
* @ param values
* @ param withNull
* @ param postSql
* @ return 返回值为null表示不需要更新操作 , 这个是这个方法特别之处 */
public static < T > String getUpdateSQL ( T t , List < Object > values , boolean withNull , String postSql ) { } } | StringBuilder sql = new StringBuilder ( ) ; sql . append ( "UPDATE " ) ; Table table = DOInfoReader . getTable ( t . getClass ( ) ) ; List < Field > keyFields = DOInfoReader . getKeyColumns ( t . getClass ( ) ) ; List < Field > notKeyFields = DOInfoReader . getNotKeyColumns ( t . getClass ( ) ) ; sql . append ( getTabl... |
public class CmsDomUtil { /** * Positions an element in the DOM relative to another element . < p >
* @ param elem the element to position
* @ param referenceElement the element relative to which the first element should be positioned
* @ param dx the x offset relative to the reference element
* @ param dy the ... | com . google . gwt . dom . client . Style style = elem . getStyle ( ) ; style . setLeft ( 0 , Unit . PX ) ; style . setTop ( 0 , Unit . PX ) ; int myX = elem . getAbsoluteLeft ( ) ; int myY = elem . getAbsoluteTop ( ) ; int refX = referenceElement . getAbsoluteLeft ( ) ; int refY = referenceElement . getAbsoluteTop ( )... |
public class KafkaConsumerRunner { /** * add trackers for new topic - partition in this importer */
private void calculateTrackers ( Collection < TopicPartition > partitions ) { } } | Map < TopicPartition , CommitTracker > trackers = new HashMap < > ( ) ; trackers . putAll ( m_trackerMap . get ( ) ) ; Map < TopicPartition , AtomicLong > lastCommittedOffSets = new HashMap < > ( ) ; lastCommittedOffSets . putAll ( m_lastCommittedOffSets . get ( ) ) ; boolean newTopicPartition = false ; for ( TopicPart... |
public class AbstractXmlMojo { /** * Converts the given set of file names into a set of { @ link File } instances . The file names may be relative to the
* given base directory . */
protected File [ ] asFiles ( File pDir , String [ ] pFileNames ) { } } | if ( pFileNames == null ) { return new File [ 0 ] ; } File dir = asAbsoluteFile ( pDir ) ; File [ ] result = new File [ pFileNames . length ] ; for ( int i = 0 ; i < pFileNames . length ; i ++ ) { result [ i ] = new File ( dir , pFileNames [ i ] ) ; } return result ; |
public class SeleniumSpec { /** * Get dcos - auth - cookie */
@ Then ( "^I save selenium dcos acs auth cookie in variable '(.+?)'$" ) public void getDcosAcsAuthCookie ( String envVar ) throws Exception { } } | if ( commonspec . getSeleniumCookies ( ) != null && commonspec . getSeleniumCookies ( ) . size ( ) != 0 ) { for ( Cookie cookie : commonspec . getSeleniumCookies ( ) ) { if ( cookie . getName ( ) . contains ( "dcos-acs-auth-cookie" ) ) { // It ' s this cookie where we have to extract the value
ThreadProperty . set ( en... |
public class LogInputReader { /** * Determine the approximate progress for this shard assuming the RequestLogs are uniformly
* distributed across the entire time range . */
@ Override public Double getProgress ( ) { } } | if ( ( shardLogQuery . getStartTimeUsec ( ) == null ) || ( shardLogQuery . getEndTimeUsec ( ) == null ) ) { return null ; } else if ( lastLog == null ) { return 0.0 ; } else { long processedTimeUsec = shardLogQuery . getEndTimeUsec ( ) - lastLog . getEndTimeUsec ( ) ; long totalTimeUsec = shardLogQuery . getEndTimeUsec... |
public class CompositeListener { /** * { @ inheritDoc }
* @ since 3.0M2 */
@ Override public void endMetaData ( MetaData metadata ) { } } | for ( Listener listener : this . listeners ) { listener . endMetaData ( metadata ) ; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.