Toggle navigation
Home
java.util.ArrayList<java.lang.Long> to java.lang.Long
No. of Instances - 2
No. of Commits - 1
No. of Projects - {'orientdb'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Update Class Instacne Creation
new Thread(new Runnable(){ @Override public void run(){ context.threadId=currentThread; context.totalPerThread=context.threadId < concurrencyLevel - 1 ? totalPerThread : totalPerLastThread; context.init(dbIdentifier); try { final int startIdx=totalPerThread * context.threadId; for (int i=0; i < context.totalPerThread; ++i) { context.currentIdx=startIdx + i; final long startOp=System.nanoTime(); try { callback.call(context); } catch ( Exception e) { errors.add(e.toString()); if (errors.size() > MAX_ERRORS) { e.printStackTrace(); break; } } finally { operationTiming.set(context.currentIdx,System.nanoTime() - startOp); } } } finally { context.close(); } } } )
to
new Thread(new Runnable(){ @Override public void run(){ context.threadId=currentThread; context.totalPerThread=context.threadId < concurrencyLevel - 1 ? totalPerThread : totalPerLastThread; context.init(dbIdentifier); try { final int startIdx=totalPerThread * context.threadId; for (int i=0; i < context.totalPerThread; ++i) { context.currentIdx=startIdx + i; final long startOp=System.nanoTime(); try { callback.call(context); } catch ( Exception e) { errors.add(e.toString()); if (errors.size() > MAX_ERRORS) { e.printStackTrace(); break; } } finally { operationTiming[context.currentIdx]=System.nanoTime() - startOp; } } } finally { context.close(); } } } )
Add or Remove Method invocation
operationTiming.size()
to
operationTiming.length
sortedResults.size()
to
sortedResults.length
sortedResults.size()
to
sortedResults.length