org.apache.flink.cep.nfa.sharedbuffer.SharedBufferNode Java Examples

The following examples show how to use org.apache.flink.cep.nfa.sharedbuffer.SharedBufferNode. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SharedBuffer.java    From Flink-CEPplus with Apache License 2.0 5 votes vote down vote up
public SharedBuffer(
		Map<EventId, Lockable<V>> eventsBuffer,
		Map<NodeId, Lockable<SharedBufferNode>> pages,
		Map<Tuple2<String, ValueTimeWrapper<V>>, NodeId> mappingContext,
		Map<Integer, EventId> starters) {

	this.eventsBuffer = eventsBuffer;
	this.pages = pages;
	this.mappingContext = mappingContext;
	this.starters = starters;
}
 
Example #2
Source File: SharedBuffer.java    From flink with Apache License 2.0 5 votes vote down vote up
public SharedBuffer(
		Map<EventId, Lockable<V>> eventsBuffer,
		Map<NodeId, Lockable<SharedBufferNode>> pages,
		Map<Tuple2<String, ValueTimeWrapper<V>>, NodeId> mappingContext,
		Map<Integer, EventId> starters) {

	this.eventsBuffer = eventsBuffer;
	this.pages = pages;
	this.mappingContext = mappingContext;
	this.starters = starters;
}
 
Example #3
Source File: SharedBuffer.java    From flink with Apache License 2.0 5 votes vote down vote up
public SharedBuffer(
		Map<EventId, Lockable<V>> eventsBuffer,
		Map<NodeId, Lockable<SharedBufferNode>> pages,
		Map<Tuple2<String, ValueTimeWrapper<V>>, NodeId> mappingContext,
		Map<Integer, EventId> starters) {

	this.eventsBuffer = eventsBuffer;
	this.pages = pages;
	this.mappingContext = mappingContext;
	this.starters = starters;
}
 
Example #4
Source File: NFASerializerUpgradeTest.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public SharedBufferNode createTestData() {
	SharedBufferNode result = new SharedBufferNode();
	result.addEdge(new SharedBufferEdge(
			new NodeId(new EventId(42, 42L), "page"),
			new DeweyNumber(42)));
	return result;
}
 
Example #5
Source File: NFASerializerUpgradeTest.java    From flink with Apache License 2.0 5 votes vote down vote up
@Override
public Matcher<SharedBufferNode> testDataMatcher() {
	SharedBufferNode result = new SharedBufferNode();
	result.addEdge(new SharedBufferEdge(
			new NodeId(new EventId(42, 42L), "page"),
			new DeweyNumber(42)));
	return is(result);
}
 
Example #6
Source File: SharedBuffer.java    From Flink-CEPplus with Apache License 2.0 4 votes vote down vote up
public Map<NodeId, Lockable<SharedBufferNode>> getPages() {
	return pages;
}
 
Example #7
Source File: SharedBuffer.java    From flink with Apache License 2.0 4 votes vote down vote up
public Map<NodeId, Lockable<SharedBufferNode>> getPages() {
	return pages;
}
 
Example #8
Source File: SharedBuffer.java    From flink with Apache License 2.0 4 votes vote down vote up
public Map<NodeId, Lockable<SharedBufferNode>> getPages() {
	return pages;
}
 
Example #9
Source File: NFASerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<SharedBufferNode> createPriorSerializer() {
	return new SharedBufferNode.SharedBufferNodeSerializer();
}
 
Example #10
Source File: NFASerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public TypeSerializer<SharedBufferNode> createUpgradedSerializer() {
	return new SharedBufferNode.SharedBufferNodeSerializer();
}
 
Example #11
Source File: NFASerializerUpgradeTest.java    From flink with Apache License 2.0 4 votes vote down vote up
@Override
public Matcher<TypeSerializerSchemaCompatibility<SharedBufferNode>> schemaCompatibilityMatcher(MigrationVersion version) {
	return TypeSerializerMatchers.isCompatibleAsIs();
}