MCPcopy
hub / github.com/OpenTSDB/opentsdb / shift

Method shift

src/tools/OpenTSDBMain.java:554–559  ·  view source on GitHub ↗

Drops the first array item in the passed array. If the passed array is null or empty, returns an empty array @param args The array to shift @return the shifted array

(String[] args)

Source from the content-addressed store, hash-verified

552 * @return the shifted array
553 */
554 private static String[] shift(String[] args) {
555 if(args==null || args.length==0 | args.length==1) return new String[0];
556 String[] newArgs = new String[args.length-1];
557 System.arraycopy(args, 1, newArgs, 0, newArgs.length);
558 return newArgs;
559 }
560
561
562 private static void registerShutdownHook(final TSDB tsdb) {

Callers 3

mainMethod · 0.95
processMethod · 0.95
shiftDataPointMethod · 0.45

Calls

no outgoing calls

Tested by 1

shiftDataPointMethod · 0.36