StreamConfig.getStreamProperties
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.samza.config.StreamConfig.getStreamProperties (Showing top 7 results out of 315)

  • Common ways to obtain StreamConfig
private void myMethod () {
StreamConfig s =
  • Config config;new StreamConfig(config)
  • Context context;new StreamConfig(context.getJobContext().getConfig())
  • Smart code suggestions by Codota
}
origin: apache/samza

 public static StreamSpec getStreamSpec(String streamId, StreamConfig streamConfig) {
  String physicalName = streamConfig.getPhysicalName(streamId);
  String system = streamConfig.getSystem(streamId);
  Map<String, String> streamProperties = streamConfig.getStreamProperties(streamId);
  return new StreamSpec(streamId, physicalName, system, streamProperties);
 }
}
origin: org.apache.samza/samza-core_2.12

 public static StreamSpec getStreamSpec(String streamId, StreamConfig streamConfig) {
  String physicalName = streamConfig.getPhysicalName(streamId);
  String system = streamConfig.getSystem(streamId);
  Map<String, String> streamProperties = streamConfig.getStreamProperties(streamId);
  return new StreamSpec(streamId, physicalName, system, streamProperties);
 }
}
origin: org.apache.samza/samza-core_2.11

 public static StreamSpec getStreamSpec(String streamId, StreamConfig streamConfig) {
  String physicalName = streamConfig.getPhysicalName(streamId);
  String system = streamConfig.getSystem(streamId);
  Map<String, String> streamProperties = streamConfig.getStreamProperties(streamId);
  return new StreamSpec(streamId, physicalName, system, streamProperties);
 }
}
origin: org.apache.samza/samza-core_2.10

 public static StreamSpec getStreamSpec(String streamId, StreamConfig streamConfig) {
  String physicalName = streamConfig.getPhysicalName(streamId);
  String system = streamConfig.getSystem(streamId);
  Map<String, String> streamProperties = streamConfig.getStreamProperties(streamId);
  return new StreamSpec(streamId, physicalName, system, streamProperties);
 }
}
origin: org.apache.samza/samza-core

 public static StreamSpec getStreamSpec(String streamId, StreamConfig streamConfig) {
  String physicalName = streamConfig.getPhysicalName(streamId);
  String system = streamConfig.getSystem(streamId);
  Map<String, String> streamProperties = streamConfig.getStreamProperties(streamId);
  return new StreamSpec(streamId, physicalName, system, streamProperties);
 }
}
origin: apache/samza

assertEquals("1", config.getStreamProperties(STREAM1_STREAM_ID).get(nonSamzaProperty));
assertEquals("3", config.getStreamProperties(STREAM2_STREAM_ID).get(nonSamzaProperty));
assertEquals("5", config.getStreamProperties(STREAM3_STREAM_ID).get(nonSamzaProperty));
origin: apache/samza

 @Test
 public void testGenerateConfig() {
  // an example unbounded IO stream
  StreamSpec spec = new StreamSpec("stream-1", "physical-stream-1", "system-1", Collections.singletonMap("property1", "haha"));
  StreamEdge edge = new StreamEdge(spec, false, false, new MapConfig());
  Config config = edge.generateConfig();
  StreamConfig streamConfig = new StreamConfig(config);
  assertEquals(streamConfig.getSystem(spec.getId()), "system-1");
  assertEquals(streamConfig.getPhysicalName(spec.getId()), "physical-stream-1");
  assertEquals(streamConfig.getIsIntermediateStream(spec.getId()), false);
  assertEquals(streamConfig.getStreamProperties(spec.getId()).get("property1"), "haha");

  // bounded stream
  spec = new StreamSpec("stream-1", "physical-stream-1", "system-1", Collections.singletonMap("property1", "haha"));
  edge = new StreamEdge(spec, false, false, new MapConfig());
  config = edge.generateConfig();
  streamConfig = new StreamConfig(config);

  // intermediate stream
  edge = new StreamEdge(spec, true, false, new MapConfig());
  config = edge.generateConfig();
  streamConfig = new StreamConfig(config);
  assertEquals(streamConfig.getIsIntermediateStream(spec.getId()), true);
  assertEquals(streamConfig.getDefaultStreamOffset(spec.toSystemStream()).get(), "oldest");
  assertEquals(streamConfig.getPriority(spec.toSystemStream()), Integer.MAX_VALUE);
 }
}
org.apache.samza.configStreamConfiggetStreamProperties

Popular methods of StreamConfig

  • <init>
  • getPhysicalName
  • CONSUMER_OFFSET_DEFAULT_FOR_STREAM_ID
  • PHYSICAL_NAME_FOR_STREAM_ID
  • getSystem
  • KEY_SERDE
  • MSG_SERDE
  • STREAM_ID_PREFIX
  • SYSTEM_FOR_STREAM_ID
  • getBootstrapEnabled
  • getPriority
  • getStreamIds
  • getPriority,
  • getStreamIds,
  • BOOTSTRAP,
  • DELETE_COMMITTED_MESSAGES_FOR_STREAM_ID,
  • IS_INTERMEDIATE_FOR_STREAM_ID,
  • PRIORITY_FOR_STREAM_ID,
  • STREAM_PREFIX,
  • streamIdToSystemStream,
  • getStreamMsgSerde

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)