public class SignificanceHeuristicStreams extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
SignificanceHeuristicStreams.Stream
A stream that knows how to read an heuristic from the input.
|
Constructor and Description |
---|
SignificanceHeuristicStreams() |
Modifier and Type | Method and Description |
---|---|
static SignificanceHeuristic |
read(StreamInput in) |
static void |
registerStream(SignificanceHeuristicStreams.Stream stream,
String... names)
Registers the given stream and associate it with the given types.
|
static SignificanceHeuristicStreams.Stream |
stream(String name)
Returns the stream that is registered for the given name
|
public static SignificanceHeuristic read(StreamInput in) throws IOException
IOException
public static void registerStream(SignificanceHeuristicStreams.Stream stream, String... names)
stream
- The stream to registernames
- The names associated with the streamspublic static SignificanceHeuristicStreams.Stream stream(String name)
name
- The given nameCopyright © 2009–2015. All rights reserved.