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

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

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

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

private StdData[] wrapArguments(StdUDF stdUDF, Type[] types, Object[] arguments) {
 StdFactory stdFactory = stdUDF.getStdFactory();
 StdData[] stdData = new StdData[arguments.length];
 // TODO: Reuse wrapper objects by creating them once upon initialization and reuse them here
 // along the same lines of what we do in Hive implementation.
 // JIRA: https://jira01.corp.linkedin.com:8443/browse/LIHADOOP-34894
 for (int i = 0; i < stdData.length; i++) {
  stdData[i] = PrestoWrapper.createStdData(arguments[i], types[i], stdFactory);
 }
 return stdData;
}
origin: linkedin/transport

private StdData[] wrapArguments(StdUDF stdUDF, Type[] types, Object[] arguments) {
 StdFactory stdFactory = stdUDF.getStdFactory();
 StdData[] stdData = new StdData[arguments.length];
 // TODO: Reuse wrapper objects by creating them once upon initialization and reuse them here
 // along the same lines of what we do in Hive implementation.
 // JIRA: https://jira01.corp.linkedin.com:8443/browse/LIHADOOP-34894
 for (int i = 0; i < stdData.length; i++) {
  stdData[i] = PrestoWrapper.createStdData(arguments[i], types[i], stdFactory);
 }
 return stdData;
}
com.linkedin.transport.api.udfStdUDFgetStdFactory

Javadoc

Returns a StdFactory object which can be used to create StdData and StdType objects

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
  • numberOfArguments
    Returns the number of input arguments for the StdUDF

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JTable (javax.swing)
  • Top plugins for WebStorm
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