Tabnine Logo
TableWriteFunction.init
Code IndexAdd Tabnine to your IDE (free)

How to use
init
method
in
org.apache.samza.table.remote.TableWriteFunction

Best Java code snippets using org.apache.samza.table.remote.TableWriteFunction.init (Showing top 8 results out of 315)

origin: apache/samza

private TableWriteFunction<?, ?> getWriteFn(JavaTableConfig tableConfig) {
 TableWriteFunction<?, ?> writeFn = deserializeObject(tableConfig, RemoteTableDescriptor.WRITE_FN);
 if (writeFn != null) {
  writeFn.init(this.context);
 }
 return writeFn;
}
origin: apache/samza

@Override
public void init(Context context) {
 readFn.init(context);
 if (writeFn != null) {
  writeFn.init(context);
 }
}
origin: org.apache.samza/samza-core

 private TableWriteFunction<?, ?> getWriteFn() {
  TableWriteFunction<?, ?> writeFn = deserializeObject(WRITE_FN);
  if (writeFn != null) {
   writeFn.init(this.context);
  }
  return writeFn;
 }
}
origin: org.apache.samza/samza-core_2.10

 private TableWriteFunction<?, ?> getWriteFn() {
  TableWriteFunction<?, ?> writeFn = deserializeObject(WRITE_FN);
  if (writeFn != null) {
   writeFn.init(this.context);
  }
  return writeFn;
 }
}
origin: org.apache.samza/samza-core_2.11

 private TableWriteFunction<?, ?> getWriteFn() {
  TableWriteFunction<?, ?> writeFn = deserializeObject(WRITE_FN);
  if (writeFn != null) {
   writeFn.init(this.context);
  }
  return writeFn;
 }
}
origin: org.apache.samza/samza-core_2.12

 private TableWriteFunction<?, ?> getWriteFn() {
  TableWriteFunction<?, ?> writeFn = deserializeObject(WRITE_FN);
  if (writeFn != null) {
   writeFn.init(this.context);
  }
  return writeFn;
 }
}
origin: apache/samza

@Test
public void testInit() {
 roTable.init(mock(Context.class));
 verify(readFn, times(1)).init(any());
 verify(writeFn, times(0)).init(any());
 rwTable.init(mock(Context.class));
 verify(readFn, times(2)).init(any());
 verify(writeFn, times(1)).init(any());
}
origin: apache/samza

table.init(TestRemoteTable.getMockContext());
verify(readFn, times(1)).init(any());
verify(writeFn, times(1)).init(any());
table.putAsync("foo", "bar").get();
verify(writeFn, times(1)).putAsync(any(), any());
org.apache.samza.table.remoteTableWriteFunctioninit

Popular methods of TableWriteFunction

  • deleteAllAsync
    Asynchronously delete all records with the specified keys from the remote store. The default impleme
  • deleteAsync
    Asynchronously delete the record with specified key from the remote store
  • putAllAsync
    Asynchronously store the table records with specified keys. This method must be thread-safe. The def
  • putAsync
    Asynchronously store single table record with specified key. This method must be thread-safe.
  • close
  • flush
    Flush the remote store (optional)
  • isRetriable
    Determine whether the current operation can be retried with the last thrown exception.

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text 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