/** * Get the target F0 values for this phone, with one value per Datagram in the phone's left and right units * * @return the target F0 values with one value per Datagram in an array */ public double[] getTargetF0Values() { double[] f0Targets = ArrayUtils.addAll(leftF0Targets, rightF0Targets); return f0Targets; }
public ChannelCounter(String name, String[] attributes) { super(MonitoredCounterGroup.Type.CHANNEL, name, (String[])ArrayUtils.addAll(attributes,ATTRIBUTES)); }
public SinkCounter(String name, String[] attributes) { super(MonitoredCounterGroup.Type.SINK, name, (String[]) ArrayUtils.addAll(attributes,ATTRIBUTES)); }
/** * Gets the column family of the index table based on the given column family and qualifier. * * @param columnFamily Presto column family * @param columnQualifier Presto column qualifier * @return ByteBuffer of the given index column family */ public static ByteBuffer getIndexColumnFamily(byte[] columnFamily, byte[] columnQualifier) { return wrap(ArrayUtils.addAll(ArrayUtils.add(columnFamily, UNDERSCORE), columnQualifier)); }
static PathPattern[] prepareMainExclusions(String[] sourceExclusions, String[] testInclusions) { String[] patterns = (String[]) ArrayUtils.addAll( sourceExclusions, testInclusions); return PathPattern.create(patterns); }
@Override public DataType[] getDataTypes() { return (DataType[]) ArrayUtils.addAll(super.getDataTypes(), dynGtDataTypes.toArray(new DataType[dynGtDataTypes.size()])); }
@Override public ImmutableBitSet[] getColumnBlocks() { return (ImmutableBitSet[]) ArrayUtils.addAll(super.getColumnBlocks(), dynGtColBlocks.toArray(new ImmutableBitSet[dynGtColBlocks.size()])); }
public double[] getDurationFactorsFramewise() { double[] f0Factors = null; for (Phone phone : phones) { double[] phoneF0Factors = phone.getFramewiseDurationFactors(); f0Factors = ArrayUtils.addAll(f0Factors, phoneF0Factors); } return f0Factors; }
public double[] getDurationFactorsFramewise() { double[] f0Factors = null; for (Phone phone : phones) { double[] phoneF0Factors = phone.getFramewiseDurationFactors(); f0Factors = ArrayUtils.addAll(f0Factors, phoneF0Factors); } return f0Factors; }
public double[] getF0Factors() { double[] f0Factors = null; for (Phone phone : phones) { double[] phoneF0Factors = phone.getF0Factors(); f0Factors = ArrayUtils.addAll(f0Factors, phoneF0Factors); } return f0Factors; }
public double[] getF0Factors() { double[] f0Factors = null; for (Phone phone : phones) { double[] phoneF0Factors = phone.getF0Factors(); f0Factors = ArrayUtils.addAll(f0Factors, phoneF0Factors); } return f0Factors; }
/** * Recover the F0 values from each Datagram in this phone's left and right units * * @return the F0 values for each Datagram in this phone, or null if either the left or the right unit contain a Datagram with * zero duration */ public double[] getUnitFrameF0s() { double[] leftUnitFrameF0s = getLeftUnitFrameF0s(); double[] rightUnitFrameF0s = getRightUnitFrameF0s(); double[] unitFrameF0s = ArrayUtils.addAll(leftUnitFrameF0s, rightUnitFrameF0s); return unitFrameF0s; }
/** * Get the durations (in seconds) of each Datagram in this phone's left and right units * * @return the durations of all Datagrams in this phone in an array */ public double[] getRealizedFrameDurations() { return ArrayUtils.addAll(getLeftUnitFrameDurations(), getRightUnitFrameDurations()); }
/** * Get the durations (in seconds) of each Datagram in this phone's left and right units * * @return the durations of all Datagrams in this phone in an array */ public double[] getRealizedFrameDurations() { return ArrayUtils.addAll(getLeftUnitFrameDurations(), getRightUnitFrameDurations()); }
/** * Get the F0 factor for each Datagram in this phone's left and right units * * @return the F0 factors, in an array with one value per Datagram */ public double[] getF0Factors() { return ArrayUtils.addAll(getLeftF0Factors(), getRightF0Factors()); }
/** * Recover the F0 values from each Datagram in this phone's left and right units * * @return the F0 values for each Datagram in this phone, or null if either the left or the right unit contain a Datagram with * zero duration */ public double[] getUnitFrameF0s() { double[] leftUnitFrameF0s = getLeftUnitFrameF0s(); double[] rightUnitFrameF0s = getRightUnitFrameF0s(); double[] unitFrameF0s = ArrayUtils.addAll(leftUnitFrameF0s, rightUnitFrameF0s); return unitFrameF0s; }
/** * Get all Datagrams in this phone's units * * @return the left and right unit's Datagrams in an array */ public Datagram[] getUnitDataFrames() { Datagram[] leftUnitFrames = getLeftUnitFrames(); Datagram[] rightUnitFrames = getRightUnitFrames(); Datagram[] frames = (Datagram[]) ArrayUtils.addAll(leftUnitFrames, rightUnitFrames); return frames; }
/** * Get the F0 factor for each Datagram in this phone's left and right units * * @return the F0 factors, in an array with one value per Datagram */ public double[] getF0Factors() { return ArrayUtils.addAll(getLeftF0Factors(), getRightF0Factors()); }
/** * Get all Datagrams in this phone's units * * @return the left and right unit's Datagrams in an array */ public Datagram[] getUnitDataFrames() { Datagram[] leftUnitFrames = getLeftUnitFrames(); Datagram[] rightUnitFrames = getRightUnitFrames(); Datagram[] frames = (Datagram[]) ArrayUtils.addAll(leftUnitFrames, rightUnitFrames); return frames; }
public static void main(String[] args) throws Exception { if (args.length <= 1) { LOG.error("Arguments should be of the form: <path_to_jar> [argument...]"); System.exit(-1); } Map<String,Object> conf = ConfigUtils.readStormConfig(); try (NimbusClient client = NimbusClient.getConfiguredClient(conf)) { NimbusSummary ns = client.getClient().getLeader(); String host = ns.get_host(); int port = ns.get_port(); String jarPath = StormSubmitter.submitJar(conf, args[0]); String[] newArgs = (String[]) ArrayUtils.addAll(Arrays.copyOfRange(args, 1, args.length), new String[]{host, String.valueOf(port), jarPath}); ServerUtils.execCommand(newArgs); } } }