Tabnine Logo
StdUDF.numberOfArguments
Code IndexAdd Tabnine to your IDE (free)

How to use
numberOfArguments
method
in
com.linkedin.transport.api.udf.StdUDF

Best Java code snippets using com.linkedin.transport.api.udf.StdUDF.numberOfArguments (Showing top 4 results out of 315)

origin: com.linkedin.transport/transportable-udfs-api

/**
 * Returns an array of booleans indicating if any input argument is nullable.
 *
 * Nullable arguments are arguments that can receive a null value. For a nullable argument, the user must explicitly
 * handle null values in their implementation. For a non-nullable argument, the UDF returns null if the argument
 * is null. The length of the returned array should be equal to the number of input arguments. Defaults to all
 * arguments being non-nullable.
 */
public boolean[] getNullableArguments() {
 return new boolean[numberOfArguments()];
}
origin: linkedin/transport

/**
 * Returns an array of booleans indicating if any input argument is nullable.
 *
 * Nullable arguments are arguments that can receive a null value. For a nullable argument, the user must explicitly
 * handle null values in their implementation. For a non-nullable argument, the UDF returns null if the argument
 * is null. The length of the returned array should be equal to the number of input arguments. Defaults to all
 * arguments being non-nullable.
 */
public boolean[] getNullableArguments() {
 return new boolean[numberOfArguments()];
}
origin: com.linkedin.transport/transportable-udfs-api

/** Returns an array of booleans indicating if any input argument is nullable and also verifies its length */
public final boolean[] getAndCheckNullableArguments() {
 boolean[] nullableArguments = getNullableArguments();
 if (nullableArguments.length != numberOfArguments()) {
  throw new RuntimeException(
    "Unexpected number of nullable arguments. Expected:" + numberOfArguments() + " Received:"
      + nullableArguments.length);
 }
 return nullableArguments;
}
origin: linkedin/transport

/** Returns an array of booleans indicating if any input argument is nullable and also verifies its length */
public final boolean[] getAndCheckNullableArguments() {
 boolean[] nullableArguments = getNullableArguments();
 if (nullableArguments.length != numberOfArguments()) {
  throw new RuntimeException(
    "Unexpected number of nullable arguments. Expected:" + numberOfArguments() + " Received:"
      + nullableArguments.length);
 }
 return nullableArguments;
}
com.linkedin.transport.api.udfStdUDFnumberOfArguments

Javadoc

Returns the number of input arguments for the StdUDF

Popular methods of StdUDF

  • getAndCheckNullableArguments
    Returns an array of booleans indicating if any input argument is nullable and also verifies its leng
  • init
    Performs necessary initializations for a StdUDF. This method is called before any records are proces
  • processRequiredFiles
    Processes the localized files for the StdUDF. This method is called before any records are processed
  • getInputParameterSignatures
    Returns a List of type signature strings representing the input parameters to the UDF
  • getOutputParameterSignature
    Returns a type signature string representing the output parameter to the UDF
  • getNullableArguments
    Returns an array of booleans indicating if any input argument is nullable. Nullable arguments are ar
  • getStdFactory
    Returns a StdFactory object which can be used to create StdData and StdType objects

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • setScale (BigDecimal)
  • runOnUiThread (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now