Tabnine Logo
CachingTableDescriptor.validate
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Socket (java.net)
    Provides a client-side TCP socket.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JList (javax.swing)
  • Top PhpStorm 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