Class TemplateUtil


  • public class TemplateUtil
    extends Object
    • Constructor Detail

      • TemplateUtil

        public TemplateUtil()
    • Method Detail

      • getTokenIndexOnMultiLineRecords

        public static Pair<ArrayList<Pair<Long,​Integer>>,​Long> getTokenIndexOnMultiLineRecords​(org.apache.hadoop.mapred.InputSplit split,
                                                                                                           org.apache.hadoop.mapred.TextInputFormat inputFormat,
                                                                                                           org.apache.hadoop.mapred.JobConf job,
                                                                                                           String token)
                                                                                                    throws IOException
        Throws:
        IOException
      • getEndPos

        public static int getEndPos​(String str,
                                    int strLen,
                                    int currPos,
                                    HashSet<String> endWithValueString)
      • getStringChunkOfBufferReader

        public static String getStringChunkOfBufferReader​(BufferedReader br,
                                                          String remainedStr,
                                                          int chunkSize)