Codota Logo
CachingTableDescriptor.validate
Code IndexAdd Codota to your IDE (free)

How to use
validate
method
in
org.apache.samza.table.caching.descriptors.CachingTableDescriptor

Best Java code snippets using org.apache.samza.table.caching.descriptors.CachingTableDescriptor.validate (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: org.apache.samza/samza-core_2.10

@Override
public TableSpec getTableSpec() {
 validate();
 Map<String, String> tableSpecConfig = new HashMap<>();
 generateTableSpecConfig(tableSpecConfig);
 if (cache != null) {
  tableSpecConfig.put(CachingTableProvider.CACHE_TABLE_ID, ((BaseTableDescriptor) cache).getTableSpec().getId());
 } else {
  if (readTtl != null) {
   tableSpecConfig.put(CachingTableProvider.READ_TTL_MS, String.valueOf(readTtl.toMillis()));
  }
  if (writeTtl != null) {
   tableSpecConfig.put(CachingTableProvider.WRITE_TTL_MS, String.valueOf(writeTtl.toMillis()));
  }
  if (cacheSize > 0) {
   tableSpecConfig.put(CachingTableProvider.CACHE_SIZE, String.valueOf(cacheSize));
  }
 }
 tableSpecConfig.put(CachingTableProvider.REAL_TABLE_ID, ((BaseTableDescriptor) table).getTableSpec().getId());
 tableSpecConfig.put(CachingTableProvider.WRITE_AROUND, String.valueOf(isWriteAround));
 return new TableSpec(tableId, serde, CachingTableProviderFactory.class.getName(), tableSpecConfig);
}
origin: org.apache.samza/samza-core_2.12

@Override
public TableSpec getTableSpec() {
 validate();
 Map<String, String> tableSpecConfig = new HashMap<>();
 generateTableSpecConfig(tableSpecConfig);
 if (cache != null) {
  tableSpecConfig.put(CachingTableProvider.CACHE_TABLE_ID, ((BaseTableDescriptor) cache).getTableSpec().getId());
 } else {
  if (readTtl != null) {
   tableSpecConfig.put(CachingTableProvider.READ_TTL_MS, String.valueOf(readTtl.toMillis()));
  }
  if (writeTtl != null) {
   tableSpecConfig.put(CachingTableProvider.WRITE_TTL_MS, String.valueOf(writeTtl.toMillis()));
  }
  if (cacheSize > 0) {
   tableSpecConfig.put(CachingTableProvider.CACHE_SIZE, String.valueOf(cacheSize));
  }
 }
 tableSpecConfig.put(CachingTableProvider.REAL_TABLE_ID, ((BaseTableDescriptor) table).getTableSpec().getId());
 tableSpecConfig.put(CachingTableProvider.WRITE_AROUND, String.valueOf(isWriteAround));
 return new TableSpec(tableId, serde, CachingTableProviderFactory.class.getName(), tableSpecConfig);
}
origin: org.apache.samza/samza-core

@Override
public TableSpec getTableSpec() {
 validate();
 Map<String, String> tableSpecConfig = new HashMap<>();
 generateTableSpecConfig(tableSpecConfig);
 if (cache != null) {
  tableSpecConfig.put(CachingTableProvider.CACHE_TABLE_ID, ((BaseTableDescriptor) cache).getTableSpec().getId());
 } else {
  if (readTtl != null) {
   tableSpecConfig.put(CachingTableProvider.READ_TTL_MS, String.valueOf(readTtl.toMillis()));
  }
  if (writeTtl != null) {
   tableSpecConfig.put(CachingTableProvider.WRITE_TTL_MS, String.valueOf(writeTtl.toMillis()));
  }
  if (cacheSize > 0) {
   tableSpecConfig.put(CachingTableProvider.CACHE_SIZE, String.valueOf(cacheSize));
  }
 }
 tableSpecConfig.put(CachingTableProvider.REAL_TABLE_ID, ((BaseTableDescriptor) table).getTableSpec().getId());
 tableSpecConfig.put(CachingTableProvider.WRITE_AROUND, String.valueOf(isWriteAround));
 return new TableSpec(tableId, serde, CachingTableProviderFactory.class.getName(), tableSpecConfig);
}
origin: org.apache.samza/samza-core_2.11

@Override
public TableSpec getTableSpec() {
 validate();
 Map<String, String> tableSpecConfig = new HashMap<>();
 generateTableSpecConfig(tableSpecConfig);
 if (cache != null) {
  tableSpecConfig.put(CachingTableProvider.CACHE_TABLE_ID, ((BaseTableDescriptor) cache).getTableSpec().getId());
 } else {
  if (readTtl != null) {
   tableSpecConfig.put(CachingTableProvider.READ_TTL_MS, String.valueOf(readTtl.toMillis()));
  }
  if (writeTtl != null) {
   tableSpecConfig.put(CachingTableProvider.WRITE_TTL_MS, String.valueOf(writeTtl.toMillis()));
  }
  if (cacheSize > 0) {
   tableSpecConfig.put(CachingTableProvider.CACHE_SIZE, String.valueOf(cacheSize));
  }
 }
 tableSpecConfig.put(CachingTableProvider.REAL_TABLE_ID, ((BaseTableDescriptor) table).getTableSpec().getId());
 tableSpecConfig.put(CachingTableProvider.WRITE_AROUND, String.valueOf(isWriteAround));
 return new TableSpec(tableId, serde, CachingTableProviderFactory.class.getName(), tableSpecConfig);
}
org.apache.samza.table.caching.descriptorsCachingTableDescriptorvalidate

Popular methods of CachingTableDescriptor

  • generateTableSpecConfig

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • putExtra (Intent)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now