Make Grok-specific classes package-protected.

This commit is contained in:
Tal Levy 2015-11-02 21:27:53 -08:00
parent 95e6b99d2b
commit d935a3ab81
4 changed files with 3 additions and 12 deletions

View File

@ -19,10 +19,6 @@
package org.elasticsearch.ingest.processor.grok;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.Object;
import java.lang.String;
import java.lang.StringIndexOutOfBoundsException;
@ -36,7 +32,7 @@ import org.jcodings.specific.UTF8Encoding;
import org.joni.*;
import org.joni.exception.ValueException;
public class Grok {
final class Grok {
private static final String NAME_GROUP = "name";
private static final String SUBNAME_GROUP = "subname";

View File

@ -24,7 +24,7 @@ import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
public class GrokMatchGroup {
final class GrokMatchGroup {
private static final String DEFAULT_TYPE = "string";
private final String patternName;
private final String fieldName;

View File

@ -19,16 +19,11 @@
package org.elasticsearch.ingest.processor.grok;
import org.elasticsearch.common.inject.Inject;
import org.elasticsearch.env.Environment;
import org.elasticsearch.ingest.Data;
import org.elasticsearch.ingest.processor.Processor;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.DirectoryStream;
import java.nio.file.Files;
import java.nio.file.Path;

View File

@ -25,7 +25,7 @@ import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.Map;
public final class PatternUtils {
final class PatternUtils {
private PatternUtils() {}
public static void loadBankFromStream(Map<String, String> patternBank, InputStream inputStream) throws IOException {