signature stringlengths 43 39.1k | implementation stringlengths 0 450k |
|---|---|
public class ConstantPool { /** * Get maximum i such that < tt > start < = i < = end < / tt > and
* < tt > s . substring ( start , i ) < / tt > fits JVM UTF string encoding limit . */
int getUtfEncodingLimit ( String s , int start , int end ) { } } | if ( ( end - start ) * 3 <= MAX_UTF_ENCODING_SIZE ) { return end ; } int limit = MAX_UTF_ENCODING_SIZE ; for ( int i = start ; i != end ; i ++ ) { int c = s . charAt ( i ) ; if ( 0 != c && c <= 0x7F ) { -- limit ; } else if ( c < 0x7FF ) { limit -= 2 ; } else { limit -= 3 ; } if ( limit < 0 ) { return i ; } } return en... |
public class ConcurrentLinkedHashMap { /** * Drains the buffers and applies the pending operations .
* @ param maxToDrain the maximum number of operations to drain */
@ GuardedBy ( "evictionLock" ) void drainBuffers ( int maxToDrain ) { } } | // A mostly strict ordering is achieved by observing that each buffer
// contains tasks in a weakly sorted order starting from the last drain .
// The buffers can be merged into a sorted list in O ( n ) time by using
// counting sort and chaining on a collision .
// The output is capped to the expected number of tasks ... |
public class UniverseApi { /** * Get structure information Returns information on requested structure if
* you are on the ACL . Otherwise , returns \ & quot ; Forbidden \ & quot ; for all
* inputs . - - - This route is cached for up to 3600 seconds
* @ param structureId
* An Eve structure ID ( required )
* @ ... | com . squareup . okhttp . Call call = getUniverseStructuresStructureIdValidateBeforeCall ( structureId , datasource , ifNoneMatch , token , null ) ; Type localVarReturnType = new TypeToken < StructureResponse > ( ) { } . getType ( ) ; return apiClient . execute ( call , localVarReturnType ) ; |
public class TouchAction { /** * Get the mjsonwp parameters for this Action .
* @ return A map of parameters for this touch action to pass as part of mjsonwp . */
protected Map < String , List < Object > > getParameters ( ) { } } | List < ActionParameter > actionList = parameterBuilder . build ( ) ; return ImmutableMap . of ( "actions" , actionList . stream ( ) . map ( ActionParameter :: getParameterMap ) . collect ( toList ( ) ) ) ; |
public class Nodes { /** * Loads the nodes from disk .
* @ throws IOException if the nodes could not be deserialized . */
public void load ( ) throws IOException { } } | final File nodesDir = getNodesDir ( ) ; final File [ ] subdirs = nodesDir . listFiles ( new FileFilter ( ) { public boolean accept ( File child ) { return child . isDirectory ( ) ; } } ) ; final Map < String , Node > newNodes = new TreeMap < > ( ) ; if ( subdirs != null ) { for ( File subdir : subdirs ) { try { XmlFile... |
public class GenericsUtils { /** * for TypeVariableUtils access */
@ SuppressWarnings ( "PMD.AvoidProtectedMethodInFinalClassNotExtending" ) protected static Type [ ] resolveTypeVariables ( final Type [ ] types , final Map < String , Type > generics , final boolean countPreservedVariables ) { } } | if ( types . length == 0 ) { return NO_TYPES ; } final Type [ ] resolved = new Type [ types . length ] ; for ( int i = 0 ; i < types . length ; i ++ ) { resolved [ i ] = resolveTypeVariables ( types [ i ] , generics , countPreservedVariables ) ; } return resolved ; |
public class ServerDef { /** * < pre >
* The name of the job of which this server is a member .
* NOTE ( mrry ) : The ` cluster ` field must contain a ` JobDef ` with a ` name ` field
* that matches this name .
* < / pre >
* < code > optional string job _ name = 2 ; < / code > */
public java . lang . String g... | java . lang . Object ref = jobName_ ; if ( ref instanceof java . lang . String ) { return ( java . lang . String ) ref ; } else { com . google . protobuf . ByteString bs = ( com . google . protobuf . ByteString ) ref ; java . lang . String s = bs . toStringUtf8 ( ) ; jobName_ = s ; return s ; } |
public class DbcHelper { /** * Detect database vender info .
* @ param conn
* @ return
* @ throws SQLException */
public static DatabaseVendor detectDbVendor ( Connection conn ) throws SQLException { } } | DatabaseMetaData dmd = conn . getMetaData ( ) ; String dpn = dmd . getDatabaseProductName ( ) ; if ( StringUtils . equalsAnyIgnoreCase ( "MySQL" , dpn ) ) { return DatabaseVendor . MYSQL ; } if ( StringUtils . equalsAnyIgnoreCase ( "PostgreSQL" , dpn ) ) { return DatabaseVendor . POSTGRESQL ; } if ( StringUtils . equal... |
public class MariaDbStatement { /** * executes a select query .
* @ param sql the query to send to the server
* @ return a result set
* @ throws SQLException if something went wrong */
public ResultSet executeQuery ( String sql ) throws SQLException { } } | if ( executeInternal ( sql , fetchSize , Statement . NO_GENERATED_KEYS ) ) { return results . getResultSet ( ) ; } return SelectResultSet . createEmptyResultSet ( ) ; |
public class Href { /** * Add this path to the URI .
* @ param suffix The suffix
* @ return New HREF */
public Href path ( final Object suffix ) { } } | return new Href ( URI . create ( new StringBuilder ( Href . TRAILING_SLASH . matcher ( this . uri . toString ( ) ) . replaceAll ( "" ) ) . append ( '/' ) . append ( Href . encode ( suffix . toString ( ) ) ) . toString ( ) ) , this . params , this . fragment ) ; |
public class AbstractHttpWriter { /** * Sends request using single thread pool so that it can be easily terminated ( use case : time out )
* { @ inheritDoc }
* @ see org . apache . gobblin . writer . http . HttpWriterDecoration # sendRequest ( org . apache . http . client . methods . HttpUriRequest ) */
@ Override ... | return singleThreadPool . submit ( new Callable < CloseableHttpResponse > ( ) { @ Override public CloseableHttpResponse call ( ) throws Exception { return client . execute ( request ) ; } } ) ; |
public class ActionDefaultPointcut { protected boolean isCallbackMethodImplementation ( Method method ) { } } | if ( ! ActionHook . class . isAssignableFrom ( method . getDeclaringClass ( ) ) ) { return false ; // not required if statement but for performance
} for ( Method callbackMethod : callbackMethodSet ) { if ( isImplementsMethod ( method , callbackMethod ) ) { return true ; } } return false ; |
public class DisambiguatedAlchemyEntity { /** * Set the website associated with this concept tag .
* @ param website website associated with this concept tag */
public void setWebsite ( String website ) { } } | if ( website != null ) { website = website . trim ( ) ; } this . website = website ; |
public class GlobalStateConfigurationBuilder { /** * Defines the @ { @ link LocalConfigurationStorage } . Defaults to @ { @ link org . infinispan . globalstate . impl . VolatileLocalConfigurationStorage } */
public GlobalStateConfigurationBuilder configurationStorageSupplier ( Supplier < ? extends LocalConfigurationSto... | configurationStorage ( ConfigurationStorage . CUSTOM ) ; attributes . attribute ( CONFIGURATION_STORAGE_SUPPLIER ) . set ( configurationStorageSupplier ) ; return this ; |
public class UriEscape { /** * Perform am URI path < strong > unescape < / strong > operation
* on a < tt > String < / tt > input using < tt > UTF - 8 < / tt > as encoding , writing results to a < tt > Writer < / tt > .
* This method will unescape every percent - encoded ( < tt > % HH < / tt > ) sequences present i... | unescapeUriPath ( text , writer , DEFAULT_ENCODING ) ; |
public class StringUtils { /** * Formats a string with or without line breaks into a string with lines with less than a supplied number of
* characters per line .
* @ param aString A string to format
* @ param aCount A number of characters to allow per line
* @ return A string formatted using the supplied count... | final StringBuilder builder = new StringBuilder ( ) ; final String [ ] words = aString . split ( "\\s" ) ; int count = 0 ; for ( final String word : words ) { count += word . length ( ) ; if ( count < aCount ) { builder . append ( word ) ; if ( ( count += 1 ) < aCount ) { builder . append ( ' ' ) ; } else { builder . a... |
public class ImageMemoryCache { /** * Return all bitmaps in memory cache associated with the given image URI . < br / > */
public static List < Bitmap > getCachedBitmapsForImageUri ( String imageUri , ImageMemoryCache memoryCache ) { } } | List < Bitmap > values = new ArrayList < Bitmap > ( ) ; for ( String key : memoryCache . getKeySet ( ) ) { if ( key . startsWith ( imageUri ) ) { values . add ( ( Bitmap ) memoryCache . getObjectFromCache ( key ) ) ; } } return values ; |
public class AbstractXmlHttpMessageConverter { /** * Transforms the given { @ code Source } to the { @ code Result } .
* @ param source the source to transform from
* @ param result the result to transform to
* @ throws TransformerException in case of transformation errors */
protected void transform ( Source sou... | this . transformerFactory . newTransformer ( ) . transform ( source , result ) ; |
public class EnumLiteralDeclarationImpl { /** * < ! - - begin - user - doc - - >
* < ! - - end - user - doc - - >
* @ generated */
public void setLiteral ( Keyword newLiteral ) { } } | if ( newLiteral != literal ) { NotificationChain msgs = null ; if ( literal != null ) msgs = ( ( InternalEObject ) literal ) . eInverseRemove ( this , EOPPOSITE_FEATURE_BASE - XtextPackage . ENUM_LITERAL_DECLARATION__LITERAL , null , msgs ) ; if ( newLiteral != null ) msgs = ( ( InternalEObject ) newLiteral ) . eInvers... |
public class GrabAnnotationTransformation { /** * Adds the annotation to the internal target list if a match is found .
* @ param node the AST node we are processing */
public void visitAnnotations ( AnnotatedNode node ) { } } | super . visitAnnotations ( node ) ; for ( AnnotationNode an : node . getAnnotations ( ) ) { String name = an . getClassNode ( ) . getName ( ) ; if ( ( GRAB_CLASS_NAME . equals ( name ) ) || ( allowShortGrab && GRAB_SHORT_NAME . equals ( name ) ) || ( grabAliases . contains ( name ) ) ) { grabAnnotations . add ( an ) ; ... |
public class AmazonWorkDocsClient { /** * Deactivates the specified user , which revokes the user ' s access to Amazon WorkDocs .
* @ param deactivateUserRequest
* @ return Result of the DeactivateUser operation returned by the service .
* @ throws EntityNotExistsException
* The resource does not exist .
* @ ... | request = beforeClientExecution ( request ) ; return executeDeactivateUser ( request ) ; |
public class TransliteratorIDParser { /** * Parse a global filter of the form " [ f ] " or " ( [ f ] ) " , depending
* on ' withParens ' .
* @ param id the pattern the parse
* @ param pos INPUT - OUTPUT parameter . On input , the position of
* the first character to parse . On output , the position after
* th... | UnicodeSet filter = null ; int start = pos [ 0 ] ; if ( withParens [ 0 ] == - 1 ) { withParens [ 0 ] = Utility . parseChar ( id , pos , OPEN_REV ) ? 1 : 0 ; } else if ( withParens [ 0 ] == 1 ) { if ( ! Utility . parseChar ( id , pos , OPEN_REV ) ) { pos [ 0 ] = start ; return null ; } } pos [ 0 ] = PatternProps . skipW... |
public class ArmeriaConfigurationUtil { /** * Adds { @ link Port } s to the specified { @ link ServerBuilder } . */
public static void configurePorts ( ServerBuilder server , List < Port > ports ) { } } | requireNonNull ( server , "server" ) ; requireNonNull ( ports , "ports" ) ; ports . forEach ( p -> { final String ip = p . getIp ( ) ; final String iface = p . getIface ( ) ; final int port = p . getPort ( ) ; final List < SessionProtocol > protocols = p . getProtocols ( ) ; if ( ip == null ) { if ( iface == null ) { s... |
public class HumanName { /** * syntactic sugar */
public StringType addSuffixElement ( ) { } } | StringType t = new StringType ( ) ; if ( this . suffix == null ) this . suffix = new ArrayList < StringType > ( ) ; this . suffix . add ( t ) ; return t ; |
public class BaseSecurityService { /** * Changes the user ' s password .
* @ param oldPassword Current password .
* @ param newPassword New password .
* @ return Null or empty if succeeded . Otherwise , displayable reason why change failed . */
@ Override public String changePassword ( final String oldPassword , ... | return Security . changePassword ( brokerSession , oldPassword , newPassword ) ; |
public class GetDataCatalogEncryptionSettingsRequestMarshaller { /** * Marshall the given parameter object . */
public void marshall ( GetDataCatalogEncryptionSettingsRequest getDataCatalogEncryptionSettingsRequest , ProtocolMarshaller protocolMarshaller ) { } } | if ( getDataCatalogEncryptionSettingsRequest == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( getDataCatalogEncryptionSettingsRequest . getCatalogId ( ) , CATALOGID_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unab... |
public class FormValidator { public static boolean validateSingleView ( Activity activity , View targetView , IValidationCallback callback ) { } } | return validateSingleView ( activity , activity . getWindow ( ) . getDecorView ( ) , targetView , callback ) ; |
public class ResultUtil { /** * Convert a timestamp internal value ( scaled number of seconds + fractional
* seconds ) into a SFTimestamp .
* @ param timestampStr timestamp object
* @ param scale timestamp scale
* @ param internalColumnType snowflake timestamp type
* @ param resultVersion For new result versi... | logger . debug ( "public Timestamp getTimestamp(int columnIndex)" ) ; try { TimeUtil . TimestampType tsType = null ; switch ( internalColumnType ) { case Types . TIMESTAMP : tsType = TimeUtil . TimestampType . TIMESTAMP_NTZ ; break ; case SnowflakeUtil . EXTRA_TYPES_TIMESTAMP_TZ : tsType = TimeUtil . TimestampType . TI... |
public class IvyMultiBranchProject { /** * Stapler URL binding used by the configure page to check the location of
* alternate settings file .
* @ param value file to check
* @ return validation of file */
@ SuppressWarnings ( UNUSED ) public FormValidation doCheckIvySettingsFile ( @ QueryParameter String value )... | String v = Util . fixEmpty ( value ) ; if ( ( v == null ) || ( v . length ( ) == 0 ) ) { // Null values are allowed .
return FormValidation . ok ( ) ; } if ( v . startsWith ( "/" ) || v . startsWith ( "\\" ) || v . matches ( "^\\w\\:\\\\.*" ) ) { return FormValidation . error ( "Ivy settings file must be a relative pat... |
public class AbstractLinearClassifierFactory { /** * Trains a { @ link Classifier } on a { @ link Dataset } .
* @ return A { @ link Classifier } trained on the data . */
public LinearClassifier < L , F > trainClassifier ( GeneralDataset < L , F > data ) { } } | labelIndex = data . labelIndex ( ) ; featureIndex = data . featureIndex ( ) ; double [ ] [ ] weights = trainWeights ( data ) ; return new LinearClassifier < L , F > ( weights , featureIndex , labelIndex ) ; |
public class LinearSolverQr_DDRM { /** * Solves for X using the QR decomposition .
* @ param B A matrix that is n by m . Not modified .
* @ param X An n by m matrix where the solution is written to . Modified . */
@ Override public void solve ( DMatrixRMaj B , DMatrixRMaj X ) { } } | if ( B . numRows != numRows ) throw new IllegalArgumentException ( "Unexpected dimensions for X: X rows = " + X . numRows + " expected = " + numCols ) ; X . reshape ( numCols , B . numCols ) ; int BnumCols = B . numCols ; Y . reshape ( numRows , 1 , false ) ; Z . reshape ( numRows , 1 , false ) ; // solve each column o... |
public class QrHelperFunctions_ZDRM { /** * Extracts a house holder vector from the rows of A and stores it in u
* @ param A Complex matrix with householder vectors stored in the upper right triangle
* @ param row Row in A
* @ param col0 first row in A ( implicitly assumed to be r + i0)
* @ param col1 last row ... | int indexU = ( offsetU + col0 ) * 2 ; u [ indexU ] = 1 ; u [ indexU + 1 ] = 0 ; int indexA = ( row * A . numCols + ( col0 + 1 ) ) * 2 ; System . arraycopy ( A . data , indexA , u , indexU + 2 , ( col1 - col0 - 1 ) * 2 ) ; |
public class filterpostbodyinjection { /** * Use this API to unset the properties of filterpostbodyinjection resource .
* Properties that need to be unset are specified in args array . */
public static base_response unset ( nitro_service client , filterpostbodyinjection resource , String [ ] args ) throws Exception {... | filterpostbodyinjection unsetresource = new filterpostbodyinjection ( ) ; return unsetresource . unset_resource ( client , args ) ; |
public class PackageSummaryBuilder { /** * Build the content for the package doc .
* @ param node the XML element that specifies which components to document
* @ param contentTree the content tree to which the package contents
* will be added */
public void buildContent ( XMLNode node , Content contentTree ) { } ... | Content packageContentTree = packageWriter . getContentHeader ( ) ; buildChildren ( node , packageContentTree ) ; contentTree . addContent ( packageContentTree ) ; |
public class IntUtils { /** * Produces a permutation of the integers from 0 ( inclusive ) to numElements ( exclusive ) which can
* then be used to permute other things .
* @ deprecated Use { @ link com . bbn . bue . common . math . Permutation # createForNElements ( int , Random ) }
* instead , which prevents bug... | final int [ ] permutation = arange ( numElements ) ; shuffle ( permutation , checkNotNull ( rng ) ) ; return permutation ; |
public class DOMHelper { /** * Figure out whether node2 should be considered as being later
* in the document than node1 , in Document Order as defined
* by the XPath model . This may not agree with the ordering defined
* by other XML applications .
* There are some cases where ordering isn ' t defined , and ne... | if ( node1 == node2 || isNodeTheSame ( node1 , node2 ) ) return true ; // Default return value , if there is no defined ordering
boolean isNodeAfter = true ; Node parent1 = getParentOfNode ( node1 ) ; Node parent2 = getParentOfNode ( node2 ) ; // Optimize for most common case
if ( parent1 == parent2 || isNodeTheSame ( ... |
public class RectifyImageOps { /** * Creates a transform that goes from rectified to original distorted pixel coordinates .
* Rectification includes removal of lens distortion . Used for rendering rectified images .
* @ param param Intrinsic parameters .
* @ param rectify Transform for rectifying the image .
* ... | return ImplRectifyImageOps_F64 . transformRectToPixel ( param , rectify ) ; |
public class AuditCollectorUtil { /** * Get security audit results */
private static Audit getSecurityAudit ( JSONArray jsonArray , JSONArray global ) { } } | LOGGER . info ( "NFRR Audit Collector auditing STATIC_SECURITY_ANALYSIS" ) ; Audit audit = new Audit ( ) ; audit . setType ( AuditType . STATIC_SECURITY_ANALYSIS ) ; Audit basicAudit ; if ( ( basicAudit = doBasicAuditCheck ( jsonArray , global , AuditType . STATIC_SECURITY_ANALYSIS ) ) != null ) { return basicAudit ; }... |
public class UpgradeProcess { /** * Analyzes the difference between a set of files and a set
* of installed files . Computes which files should be added ,
* upgraded , deleted and left alone because of collisions .
* @ return A report describing the result of the analysis .
* @ throws Exception */
public Upgrad... | if ( null == upgradedFilesDir ) { throw new Exception ( "Upgraded files directory must be specified" ) ; } if ( null == targetDir ) { throw new Exception ( "Target directory must be specified" ) ; } if ( null == installedManifest ) { installedManifest = new FileSetManifest ( ) ; } UpgradeReport report = new UpgradeRepo... |
public class Bindable { /** * Create an updated { @ link Bindable } instance with an existing value .
* @ param existingValue the existing value
* @ return an updated { @ link Bindable } */
public Bindable < T > withExistingValue ( T existingValue ) { } } | Assert . isTrue ( existingValue == null || this . type . isArray ( ) || this . boxedType . resolve ( ) . isInstance ( existingValue ) , ( ) -> "ExistingValue must be an instance of " + this . type ) ; Supplier < T > value = ( existingValue != null ) ? ( ) -> existingValue : null ; return new Bindable < > ( this . type ... |
public class GhprbExtensionContext { /** * Overrides global settings for cancelling builds when a PR was updated */
void cancelBuildsOnUpdate ( Runnable closure ) { } } | GhprbCancelBuildsOnUpdateContext context = new GhprbCancelBuildsOnUpdateContext ( ) ; ContextExtensionPoint . executeInContext ( closure , context ) ; extensions . add ( new GhprbCancelBuildsOnUpdate ( context . getOverrideGlobal ( ) ) ) ; |
public class LocalDateTime { /** * Gets the value of the field at the specified index .
* This method is required to support the < code > ReadablePartial < / code >
* interface . The supported fields are Year , MonthOfDay , DayOfMonth and MillisOfDay .
* @ param index the index , zero to two
* @ return the valu... | switch ( index ) { case YEAR : return getChronology ( ) . year ( ) . get ( getLocalMillis ( ) ) ; case MONTH_OF_YEAR : return getChronology ( ) . monthOfYear ( ) . get ( getLocalMillis ( ) ) ; case DAY_OF_MONTH : return getChronology ( ) . dayOfMonth ( ) . get ( getLocalMillis ( ) ) ; case MILLIS_OF_DAY : return getChr... |
public class ListTopicsDetectionJobsResult { /** * A list containing the properties of each job that is returned .
* @ param topicsDetectionJobPropertiesList
* A list containing the properties of each job that is returned . */
public void setTopicsDetectionJobPropertiesList ( java . util . Collection < TopicsDetect... | if ( topicsDetectionJobPropertiesList == null ) { this . topicsDetectionJobPropertiesList = null ; return ; } this . topicsDetectionJobPropertiesList = new java . util . ArrayList < TopicsDetectionJobProperties > ( topicsDetectionJobPropertiesList ) ; |
public class UAgentInfo { /** * Detects a phone ( probably ) running the Firefox OS .
* @ return detection of a Firefox OS phone */
public boolean detectFirefoxOSPhone ( ) { } } | // First , let ' s make sure we ' re NOT on another major mobile OS .
if ( detectIos ( ) || detectAndroid ( ) || detectSailfish ( ) ) { return false ; } if ( ( userAgent . indexOf ( engineFirefox ) != - 1 ) && ( userAgent . indexOf ( mobile ) != - 1 ) ) { return true ; } return false ; |
public class Interpreter { /** * Blocking call to read a line from the parser .
* @ return true on EOF or false
* @ throws ParseException on parser exception */
private boolean readLine ( ) throws ParseException { } } | try { return parser . Line ( ) ; } catch ( ParseException e ) { yield ( ) ; if ( EOF ) return true ; throw e ; } |
public class AlluxioMaster { /** * Starts the Alluxio master .
* @ param args command line arguments , should be empty */
public static void main ( String [ ] args ) { } } | if ( args . length != 0 ) { LOG . info ( "java -cp {} {}" , RuntimeConstants . ALLUXIO_JAR , AlluxioMaster . class . getCanonicalName ( ) ) ; System . exit ( - 1 ) ; } CommonUtils . PROCESS_TYPE . set ( CommonUtils . ProcessType . MASTER ) ; MasterProcess process ; try { process = AlluxioMasterProcess . Factory . creat... |
public class EncodingSupport { /** * Converts a chunk of data into base 64 encoding .
* @ param rawData
* @ param lineLength optional length of lines in return value
* @ return */
public static String encodeBase64 ( byte [ ] rawData , int lineLength ) { } } | if ( rawData == null ) { return "" ; } StringBuffer retval = new StringBuffer ( ) ; int i = 0 ; int n = 0 ; for ( ; i < rawData . length - 2 ; i += 3 ) { if ( lineLength > 0 && i > 0 && i % lineLength == 0 ) { retval . append ( "\n" ) ; } // n is a 32 bit number
// shift all the way to left first to get rid of sign
// ... |
public class OracleSpatialUtils { /** * Generates the SQL to convert the given string to a CLOB .
* @ param varchar
* the value to convert .
* @ return the SQL to convert the string to a CLOB . */
public static String convertToClob ( final String varchar ) { } } | int startIndex = 0 ; int endIndex = Math . min ( startIndex + 4000 , varchar . length ( ) ) ; final StringBuilder clobs = new StringBuilder ( "TO_CLOB('" ) . append ( varchar . substring ( startIndex , endIndex ) ) . append ( "')" ) ; while ( endIndex < varchar . length ( ) ) { startIndex = endIndex ; endIndex = Math .... |
public class RelationalOperations { /** * Returns true if polyline _ a overlaps polyline _ b . */
private static boolean polylineOverlapsPolyline_ ( Polyline polyline_a , Polyline polyline_b , double tolerance , ProgressTracker progress_tracker ) { } } | // Quick rasterize test to see whether the the geometries are disjoint .
if ( tryRasterizedContainsOrDisjoint_ ( polyline_a , polyline_b , tolerance , false ) == Relation . disjoint ) return false ; return linearPathOverlapsLinearPath_ ( polyline_a , polyline_b , tolerance ) ; |
public class PolygonalDomain { /** * Check whether this polygon contains a given point .
* @ param point The coordinates specifying the point to check .
* @ return < code > true < / code > this { @ link PolygonalDomain } contains this point . */
public boolean containsPoint ( Coordinate point ) { } } | Point p = new GeometryFactory ( ) . createPoint ( point ) ; return this . getGeometry ( ) . contains ( p ) ; |
public class FSInputChecker { /** * Seek to the given position in the stream .
* The next read ( ) will be from that position .
* < p > This method may seek past the end of the file .
* This produces no exception and an attempt to read from
* the stream will result in - 1 indicating the end of the file .
* @ ... | if ( pos < 0 ) { return ; } // optimize : check if the pos is in the buffer
long start = chunkPos - this . count ; if ( pos >= start && pos < chunkPos ) { this . pos = ( int ) ( pos - start ) ; return ; } // reset the current state
resetState ( ) ; // seek to a checksum boundary
chunkPos = getChunkPosition ( pos ) ; //... |
public class ParseBigDecimal { /** * Fixes the symbols in the input String ( currently only decimal separator and grouping separator ) so that the
* String can be parsed as a BigDecimal .
* @ param s
* the String to fix
* @ param symbols
* the decimal format symbols
* @ return the fixed String */
private st... | final char groupingSeparator = symbols . getGroupingSeparator ( ) ; final char decimalSeparator = symbols . getDecimalSeparator ( ) ; return s . replace ( String . valueOf ( groupingSeparator ) , "" ) . replace ( decimalSeparator , DEFAULT_DECIMAL_SEPARATOR ) ; |
public class AbstractDestinationHandler { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . impl . interfaces . DestinationHandler # closeConsumers ( ) */
public void closeConsumers ( ) throws SIResourceException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) SibTr . entry ( tc , "closeConsumers" ) ; // Tell any destinations that target this destination to close their consumers
if ( aliasesThatTargetThisDest != null ) { synchronized ( aliasesThatTargetThisDest ) { Iterator i = aliasesThatTargetThisDe... |
public class AbstractWebApplicationServiceResponseBuilder { /** * Determine response type response .
* @ param finalService the final service
* @ return the response type */
protected Response . ResponseType getWebApplicationServiceResponseType ( final WebApplicationService finalService ) { } } | val request = HttpRequestUtils . getHttpServletRequestFromRequestAttributes ( ) ; val methodRequest = request != null ? request . getParameter ( CasProtocolConstants . PARAMETER_METHOD ) : null ; final Function < String , String > func = FunctionUtils . doIf ( StringUtils :: isBlank , t -> { val registeredService = thi... |
public class AttributeCriterionPane { private void buildUI ( ) { } } | // Attribute select :
attributeSelect = new SelectItem ( "attributeItem" ) ; attributeSelect . setWidth ( 140 ) ; attributeSelect . setShowTitle ( false ) ; attributeSelect . setValueMap ( getSearchableAttributes ( layer ) ) ; attributeSelect . setHint ( I18nProvider . getSearch ( ) . gridChooseAttribute ( ) ) ; attrib... |
public class CommercePriceListPersistenceImpl { /** * Returns the last commerce price list in the ordered set where groupId = & # 63 ; and status = & # 63 ; .
* @ param groupId the group ID
* @ param status the status
* @ param orderByComparator the comparator to order the set by ( optionally < code > null < / co... | CommercePriceList commercePriceList = fetchByG_S_Last ( groupId , status , orderByComparator ) ; if ( commercePriceList != null ) { return commercePriceList ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "groupId=" ) ; msg . append ( groupId ) ; msg . append... |
public class JobExecutionStatusDetailsMarshaller { /** * Marshall the given parameter object . */
public void marshall ( JobExecutionStatusDetails jobExecutionStatusDetails , ProtocolMarshaller protocolMarshaller ) { } } | if ( jobExecutionStatusDetails == null ) { throw new SdkClientException ( "Invalid argument passed to marshall(...)" ) ; } try { protocolMarshaller . marshall ( jobExecutionStatusDetails . getDetailsMap ( ) , DETAILSMAP_BINDING ) ; } catch ( Exception e ) { throw new SdkClientException ( "Unable to marshall request to ... |
public class SeekableStreamIndexTaskRunner { /** * Returns true if , given that we want to start reading from recordSequenceNumber and end at endSequenceNumber , there
* is more left to read . Used in pre - read checks to determine if there is anything left to read . */
private boolean isMoreToReadBeforeReadingRecord... | final int compareToEnd = createSequenceNumber ( recordSequenceNumber ) . compareTo ( createSequenceNumber ( endSequenceNumber ) ) ; return isEndOffsetExclusive ( ) ? compareToEnd < 0 : compareToEnd <= 0 ; |
public class LByteSupplierBuilder { /** * Builds the functional interface implementation and if previously provided calls the consumer . */
@ Nonnull public final LByteSupplier build ( ) { } } | final LByteSupplier eventuallyFinal = this . eventually ; LByteSupplier retval ; final Case < LBoolSupplier , LByteSupplier > [ ] casesArray = cases . toArray ( new Case [ cases . size ( ) ] ) ; retval = LByteSupplier . byteSup ( ( ) -> { try { for ( Case < LBoolSupplier , LByteSupplier > aCase : casesArray ) { if ( aC... |
public class Messager { /** * Print a message .
* Part of DocErrorReporter .
* @ param pos the position where the error occurs
* @ param msg message to print */
public void printNotice ( SourcePosition pos , String msg ) { } } | if ( diagListener != null ) { report ( DiagnosticType . NOTE , pos , msg ) ; return ; } PrintWriter noticeWriter = getWriter ( WriterKind . NOTICE ) ; if ( pos == null ) noticeWriter . println ( msg ) ; else noticeWriter . println ( pos + ": " + msg ) ; noticeWriter . flush ( ) ; |
public class VirtualLinkControl { /** * / * ( non - Javadoc )
* @ see com . ibm . ws . sib . processor . runtime . SIMPVirtualLinkControllable # getForeignBusControlAdapter ( ) */
public SIMPForeignBusControllable getForeignBusControllable ( ) { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { SibTr . entry ( tc , "getForeignBusControlAdapter" ) ; SibTr . exit ( tc , "getForeignBusControlAdapter" ) ; } return ( SIMPForeignBusControllable ) _messageProcessor . getDestinationManager ( ) . getForeignBusIndex ( ) . findByName ( _link . ... |
public class AbstractCanalInstance { /** * 初始化单个eventParser , 不需要考虑group */
protected void startEventParserInternal ( CanalEventParser eventParser , boolean isGroup ) { } } | if ( eventParser instanceof AbstractEventParser ) { AbstractEventParser abstractEventParser = ( AbstractEventParser ) eventParser ; // 首先启动log position管理器
CanalLogPositionManager logPositionManager = abstractEventParser . getLogPositionManager ( ) ; if ( ! logPositionManager . isStart ( ) ) { logPositionManager . start... |
public class ShardedDistributedMessageQueue { /** * Return the shard for this timestamp
* @ param messageTime
* @ param modShard
* @ return */
private String getShardKey ( long messageTime , int modShard ) { } } | long timePartition ; if ( metadata . getPartitionDuration ( ) != null ) timePartition = ( messageTime / metadata . getPartitionDuration ( ) ) % metadata . getPartitionCount ( ) ; else timePartition = 0 ; return getName ( ) + ":" + timePartition + ":" + modShard ; |
public class Controller { /** * Returns the value of a request parameter as a String , or default value if the parameter does not exist .
* @ param name a String specifying the name of the parameter
* @ param defaultValue a String value be returned when the value of parameter is null
* @ return a String represent... | String result = request . getParameter ( name ) ; return result != null && ! "" . equals ( result ) ? result : defaultValue ; |
public class ColorNames { /** * Replies the color value for the given color name .
* < p > See the documentation of the { @ link # ColorNames } type for obtaining a list of the colors .
* @ param colorName the color name .
* @ param defaultValue if the given name does not corresponds to a known color , this value... | final Integer value = COLOR_MATCHES . get ( Strings . nullToEmpty ( colorName ) . toLowerCase ( ) ) ; if ( value != null ) { return value . intValue ( ) ; } return defaultValue ; |
public class CommercePaymentMethodGroupRelPersistenceImpl { /** * Returns the last commerce payment method group rel in the ordered set where groupId = & # 63 ; and active = & # 63 ; .
* @ param groupId the group ID
* @ param active the active
* @ param orderByComparator the comparator to order the set by ( optio... | CommercePaymentMethodGroupRel commercePaymentMethodGroupRel = fetchByG_A_Last ( groupId , active , orderByComparator ) ; if ( commercePaymentMethodGroupRel != null ) { return commercePaymentMethodGroupRel ; } StringBundler msg = new StringBundler ( 6 ) ; msg . append ( _NO_SUCH_ENTITY_WITH_KEY ) ; msg . append ( "group... |
public class RoundRobin { public boolean addAll ( Collection < T > items ) { } } | boolean wasAllAdded = true ; for ( T item : items ) { if ( ! add ( item ) ) wasAllAdded = false ; } return wasAllAdded ; |
public class U { /** * Documented , # random */
public static int random ( final int min , final int max ) { } } | return min + new java . security . SecureRandom ( ) . nextInt ( max - min + 1 ) ; |
public class BoxApiFile { /** * Gets a request that copies a file
* @ param id id of the file to copy
* @ param parentId id of the parent folder to copy the file into
* @ return request to copy a file */
public BoxRequestsFile . CopyFile getCopyRequest ( String id , String parentId ) { } } | BoxRequestsFile . CopyFile request = new BoxRequestsFile . CopyFile ( id , parentId , getFileCopyUrl ( id ) , mSession ) ; return request ; |
public class SimpleGraphRelationshipGenerator { /** * { @ inheritDoc }
* Returns an edge - set corresponding to a randomly chosen simple graph . */
@ Override protected List < Pair < Integer , Integer > > doGenerateEdges ( ) { } } | List < Pair < Integer , Integer > > edges = new ArrayList < > ( ) ; MutableDegreeDistribution distribution = new MutableSimpleDegreeDistribution ( getConfiguration ( ) . getDegrees ( ) ) ; while ( ! distribution . isZeroList ( ) ) { // int length = distribution . size ( ) ;
int index = 0 ; long min = Long . MAX_VALUE ;... |
public class CmsDefaultPageEditor { /** * Performs the delete locale action . < p >
* @ throws JspException if something goes wrong */
public void actionDeleteElementLocale ( ) throws JspException { } } | try { Locale loc = getElementLocale ( ) ; m_page . removeLocale ( loc ) ; // write the modified xml content
m_file . setContents ( m_page . marshal ( ) ) ; m_file = getCms ( ) . writeFile ( m_file ) ; List < Locale > locales = m_page . getLocales ( ) ; if ( locales . size ( ) > 0 ) { // set first locale as new display ... |
public class AdUnit { /** * Gets the effectiveLabelFrequencyCaps value for this AdUnit .
* @ return effectiveLabelFrequencyCaps * Contains the set of labels applied directly to the ad unit
* as well as
* those inherited from parent ad units . This field
* is readonly and is
* assigned by Google . */
public co... | return effectiveLabelFrequencyCaps ; |
public class Model { /** * Bulk score the frame < code > fr < / code > , producing a Frame result ; the 1st Vec is the
* predicted class , the remaining Vecs are the probability distributions .
* For Regression ( single - class ) models , the 1st and only Vec is the
* prediction value .
* The flat < code > adap... | if ( isSupervised ( ) ) { int ridx = fr . find ( responseName ( ) ) ; if ( ridx != - 1 ) { // drop the response for scoring !
fr = new Frame ( fr ) ; fr . remove ( ridx ) ; } } // Adapt the Frame layout - returns adapted frame and frame containing only
// newly created vectors
Frame [ ] adaptFrms = adapt ? adapt ( fr ,... |
public class StreamExecutionEnvironment { /** * Registers the given type with the serialization stack . If the type is
* eventually serialized as a POJO , then the type is registered with the
* POJO serializer . If the type ends up being serialized with Kryo , then it
* will be registered at Kryo to make sure tha... | if ( type == null ) { throw new NullPointerException ( "Cannot register null type class." ) ; } TypeInformation < ? > typeInfo = TypeExtractor . createTypeInfo ( type ) ; if ( typeInfo instanceof PojoTypeInfo ) { config . registerPojoType ( type ) ; } else { config . registerKryoType ( type ) ; } |
public class RoundingParams { /** * Sets the border around the rounded drawable
* @ param color of the border
* @ param width of the width */
public RoundingParams setBorder ( @ ColorInt int color , float width ) { } } | Preconditions . checkArgument ( width >= 0 , "the border width cannot be < 0" ) ; mBorderWidth = width ; mBorderColor = color ; return this ; |
public class Intersection { /** * Perform intersect set operation on the two given sketch arguments and return the result as an
* ordered CompactSketch on the heap .
* @ param a The first sketch argument
* @ param b The second sketch argument
* @ return an ordered CompactSketch on the heap */
public CompactSket... | return intersect ( a , b , true , null ) ; |
public class AtomBlog { /** * { @ inheritDoc } */
@ Override public Iterator < BlogEntry > getEntries ( ) throws BlogClientException { } } | if ( entriesCollection == null ) { throw new BlogClientException ( "No primary entry collection" ) ; } return new AtomEntryIterator ( entriesCollection ) ; |
public class WSRdbOnePhaseXaResourceImpl { /** * XAER _ RMERR return code in XAException */
public void rollback ( Xid xid ) throws XAException { } } | if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) Tr . entry ( this , tc , "rollback" , new Object [ ] { ivManagedConnection , AdapterUtil . toString ( xid ) } ) ; if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { String cId = null ; try { cId = ivManagedConnection . ... |
public class ArticleFeatureExtractor { public FeatureVector getFeatureVector ( Area node ) { } } | FeatureVector ret = new FeatureVector ( ) ; String text = node . getText ( ) ; int plen = text . length ( ) ; if ( plen == 0 ) plen = 1 ; // kvuli deleni nulou
ret . setFontSize ( node . getFontSize ( ) / avgfont ) ; ret . setWeight ( node . getFontWeight ( ) ) ; ret . setStyle ( node . getFontStyle ( ) ) ; ret . setRe... |
public class TimestampUtils { /** * Load date / time information into the provided calendar returning the fractional seconds . */
private ParsedTimestamp parseBackendTimestamp ( String str ) throws SQLException { } } | char [ ] s = str . toCharArray ( ) ; int slen = s . length ; // This is pretty gross . .
ParsedTimestamp result = new ParsedTimestamp ( ) ; // We try to parse these fields in order ; all are optional
// ( but some combinations don ' t make sense , e . g . if you have
// both date and time then they must be whitespace -... |
public class PropertyValuesHolder { /** * Internal function ( called from ObjectAnimator ) to set up the setter and getter
* prior to running the animation . If the setter has not been manually set for this
* object , it will be derived automatically given the property name , target object , and
* types of values... | // if ( mProperty ! = null ) {
// / / check to make sure that mProperty is on the class of target
// try {
// Object testValue = mProperty . get ( target ) ;
// for ( Keyframe kf : mKeyframeSet . mKeyframes ) {
// if ( ! kf . hasValue ( ) ) {
// kf . setValue ( mProperty . get ( target ) ) ;
// return ;
// } catch ( Cl... |
public class ST_CoordDim { /** * Returns the dimension of the coordinates of the given geometry .
* @ param geom Geometry
* @ return The dimension of the coordinates of the given geometry
* @ throws IOException */
public static Integer getCoordinateDimension ( byte [ ] geom ) throws IOException { } } | if ( geom == null ) { return null ; } return GeometryMetaData . getMetaDataFromWKB ( geom ) . dimension ; |
public class TrivialSwap { /** * Swap the elements of two lists at the specified positions . The run time of this method
* depends on the implementation of the lists since elements are removed and added in the
* lists .
* @ param < E > the type of elements in this list .
* @ param list1 one of the lists that wi... | if ( list1 . get ( list1Index ) != list2 . get ( list2Index ) ) { E hold = list1 . remove ( list1Index ) ; if ( list1 != list2 || list1Index > list2Index ) { list1 . add ( list1Index , list2 . get ( list2Index ) ) ; } else { list1 . add ( list1Index , list2 . get ( list2Index - 1 ) ) ; } list2 . remove ( list2Index ) ;... |
public class InterconnectAttachmentClient { /** * Creates an InterconnectAttachment in the specified project using the data included in the
* request .
* < p > Sample code :
* < pre > < code >
* try ( InterconnectAttachmentClient interconnectAttachmentClient = InterconnectAttachmentClient . create ( ) ) {
* P... | InsertInterconnectAttachmentHttpRequest request = InsertInterconnectAttachmentHttpRequest . newBuilder ( ) . setRegion ( region == null ? null : region . toString ( ) ) . setInterconnectAttachmentResource ( interconnectAttachmentResource ) . build ( ) ; return insertInterconnectAttachment ( request ) ; |
public class ListTargetsForPolicyResult { /** * A list of structures , each of which contains details about one of the entities to which the specified policy is
* attached .
* @ param targets
* A list of structures , each of which contains details about one of the entities to which the specified
* policy is att... | if ( targets == null ) { this . targets = null ; return ; } this . targets = new java . util . ArrayList < PolicyTargetSummary > ( targets ) ; |
public class SchemaService { /** * Get the given application ' s StorageService option . If none is found , assign and
* return the default . Unlike { @ link # getStorageService ( ApplicationDefinition ) } , this
* method will not throw an exception if the storage service is unknown or has not
* been initialized ... | String ssName = appDef . getOption ( CommonDefs . OPT_STORAGE_SERVICE ) ; if ( Utils . isEmpty ( ssName ) ) { ssName = DoradusServer . instance ( ) . getDefaultStorageService ( ) ; appDef . setOption ( CommonDefs . OPT_STORAGE_SERVICE , ssName ) ; } return ssName ; |
public class ProgressSource { /** * Update progress . */
public void updateProgress ( long latestProgress , long expectedProgress ) { } } | lastProgress = progress ; progress = latestProgress ; expected = expectedProgress ; if ( connected ( ) == false ) state = State . CONNECTED ; else state = State . UPDATE ; // The threshold effectively divides the progress into
// different set of ranges :
// Range 0 : 0 . . threshold - 1,
// Range 1 : threshold . . 2 *... |
public class TreeElement { /** * Set the target scope for this anchor ' s URI . Any page flow that handles the URI will be made active within the
* given scope . Scopes allow multiple page flows to be active within the same user session ; page flows in different
* scopes do not in general interact with each other .... | ExtendedInfo info = getInfo ( scope ) ; if ( info != null ) info . _scope = scope ; |
public class HillSlope { /** * / * ( non - Javadoc )
* @ see org . hortonmachine . hmachine . modules . hydrogeomorphology . adige . core . IHillSlope # getLinkSlope ( ) */
public double getLinkSlope ( ) { } } | if ( ( int ) linkSlope == - 1 ) { // hillslopeFeature . getAttribute ( baricenterElevationAttribute ) ;
double startElev = ( Double ) linkFeature . getAttribute ( NetworkChannel . STARTELEVNAME ) ; double endElev = ( Double ) linkFeature . getAttribute ( NetworkChannel . ENDELEVNAME ) ; linkSlope = ( startElev - endEle... |
public class DynamicLibrariesManager { /** * Open a resource from the given class loader . */
public IO . Readable getResourceFrom ( ClassLoader cl , String path , byte priority ) { } } | IOProvider . Readable provider = new IOProviderFromPathUsingClassloader ( cl ) . get ( path ) ; if ( provider == null ) return null ; try { return provider . provideIOReadable ( priority ) ; } catch ( IOException e ) { return null ; } |
public class Transport { /** * @ param timeout
* @ throws TransportException */
private synchronized void cleanupThread ( long timeout ) throws TransportException { } } | Thread t = this . thread ; if ( t != null && Thread . currentThread ( ) != t ) { this . thread = null ; try { log . debug ( "Interrupting transport thread" ) ; t . interrupt ( ) ; log . debug ( "Joining transport thread" ) ; t . join ( timeout ) ; log . debug ( "Joined transport thread" ) ; } catch ( InterruptedExcepti... |
public class TrieNode { /** * Gets string .
* @ param root the root
* @ return the string */
public String getString ( TrieNode root ) { } } | if ( this == root ) return "" ; String parentStr = null == getParent ( ) ? "" : getParent ( ) . getString ( root ) ; return parentStr + getToken ( ) ; |
public class RTreeIndexCoreExtension { /** * Create Triggers to Maintain Spatial Index Values
* @ param tableName
* table name
* @ param geometryColumnName
* geometry column name
* @ param idColumnName
* id column name */
public void createAllTriggers ( String tableName , String geometryColumnName , String ... | createInsertTrigger ( tableName , geometryColumnName , idColumnName ) ; createUpdate1Trigger ( tableName , geometryColumnName , idColumnName ) ; createUpdate2Trigger ( tableName , geometryColumnName , idColumnName ) ; createUpdate3Trigger ( tableName , geometryColumnName , idColumnName ) ; createUpdate4Trigger ( tableN... |
public class BaseCondition { /** * Returns the topmost condition , never { @ code null } .
* @ return the topmost condition following up the parent chain or { @ code this } if parent is { @ code null } . */
public BaseCondition getRoot ( ) { } } | BaseCondition p = this ; while ( p . getParent ( ) != null ) { p = p . getParent ( ) ; } return p ; |
public class EmptyField { /** * Constructor .
* @ param record The parent record .
* @ param strName The field name .
* @ param iDataLength The maximum string length ( pass - 1 for default ) .
* @ param strDesc The string description ( usually pass null , to use the resource file desc ) .
* @ param strDefault... | super . init ( record , Constants . BLANK , 0 , Constants . BLANK , null ) ; m_data = Constants . BLANK ; |
public class HorizontalRecordsProcessor { /** * 名前の定義の範囲を修正する 。
* @ param sheet
* @ param recordOperation */
private void correctNameRange ( final Sheet sheet , final RecordOperation recordOperation ) { } } | if ( recordOperation . isNotExecuteRecordOperation ( ) ) { return ; } final Workbook workbook = sheet . getWorkbook ( ) ; final int numName = workbook . getNumberOfNames ( ) ; if ( numName == 0 ) { return ; } // 操作をしていないセルの範囲の取得
final CellRangeAddress notOperateRange = new CellRangeAddress ( recordOperation . getTopLef... |
public class LogRepositoryListener { /** * ( non - Javadoc )
* @ see org . eclipse . aether . util . listener . AbstractRepositoryListener # metadataInstalled
* ( org . eclipse . aether . RepositoryEvent ) */
@ Override public void metadataInstalled ( RepositoryEvent event ) { } } | log . fine ( "Installed " + event . getMetadata ( ) + " to " + event . getFile ( ) ) ; |
public class Common { /** * Read the Reader line for line and return the result in a list */
public static List < String > readToList ( Reader r ) throws IOException { } } | try ( BufferedReader in = new BufferedReader ( r ) ) { List < String > l = new ArrayList < > ( ) ; String line = null ; while ( ( line = in . readLine ( ) ) != null ) l . add ( line ) ; return Collections . unmodifiableList ( l ) ; } |
public class AwsSecurityFindingFilters { /** * The AWS account ID in which a finding is generated .
* < b > NOTE : < / b > This method appends the values to the existing list ( if any ) . Use
* { @ link # setAwsAccountId ( java . util . Collection ) } or { @ link # withAwsAccountId ( java . util . Collection ) } if... | if ( this . awsAccountId == null ) { setAwsAccountId ( new java . util . ArrayList < StringFilter > ( awsAccountId . length ) ) ; } for ( StringFilter ele : awsAccountId ) { this . awsAccountId . add ( ele ) ; } return this ; |
public class DbLoadAction { /** * 返回结果为已处理成功的记录 */
public DbLoadContext load ( RowBatch rowBatch , WeightController controller ) { } } | Assert . notNull ( rowBatch ) ; Identity identity = rowBatch . getIdentity ( ) ; DbLoadContext context = buildContext ( identity ) ; try { List < EventData > datas = rowBatch . getDatas ( ) ; context . setPrepareDatas ( datas ) ; // 执行重复录入数据过滤
datas = context . getPrepareDatas ( ) ; if ( datas == null || datas . size (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.