Package com.facebook.hiveio.input.parser.array

Examples of com.facebook.hiveio.input.parser.array.ArrayParser


    RecordParser<Writable> parser = null;

    if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
      parser = new BytesParser(partitionValues, numColumns, data);
    } else {
      parser = new ArrayParser(partitionValues, numColumns, data);
    }

    LOG.info("Using {} to parse hive records from table {}",
        parser.getClass().getSimpleName(), tableName.dotString());
    return parser;
View Full Code Here


    RecordParser<Writable> parser = null;

    if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
      parser = new BytesParser(partitionValues, numColumns, data);
    } else {
      parser = new ArrayParser(partitionValues, numColumns, data);
    }

    Class<? extends RecordParser> forcedParserClass = FORCE_PARSER.get(conf);
    if (forcedParserClass == null) {
      LOG.info("Using {} to parse hive records from table {}",
View Full Code Here

  {
    RecordParser<Writable> forcedParser;
    if (BytesParser.class.equals(forcedParserClass)) {
      forcedParser = new BytesParser(partitionValues, numColumns, data);
    } else if (ArrayParser.class.equals(forcedParserClass)) {
      forcedParser = new ArrayParser(partitionValues, numColumns, data);
    } else if (DefaultParser.class.equals(forcedParserClass)) {
      forcedParser = new DefaultParser(deserializer, partitionValues, numColumns);
    } else {
      throw new IllegalArgumentException("Don't know how to create parser " +
          forcedParserClass.getCanonicalName());
View Full Code Here

    RecordParser<Writable> parser = null;

    if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
      parser = new BytesParser(partitionValues, data);
    } else {
      parser = new ArrayParser(partitionValues, data);
    }

    Class<? extends RecordParser> forcedParserClass = FORCE_PARSER.get(conf);
    if (forcedParserClass == null) {
      LOG.info("Using {} to parse hive records from table {}",
View Full Code Here

  {
    RecordParser<Writable> forcedParser;
    if (BytesParser.class.equals(forcedParserClass)) {
      forcedParser = new BytesParser(partitionValues, data);
    } else if (ArrayParser.class.equals(forcedParserClass)) {
      forcedParser = new ArrayParser(partitionValues, data);
    } else if (DefaultParser.class.equals(forcedParserClass)) {
      forcedParser = new DefaultParser(deserializer, partitionValues, schema);
    } else {
      throw new IllegalArgumentException("Don't know how to create parser " +
          forcedParserClass.getCanonicalName());
View Full Code Here

    RecordParser<Writable> parser = null;

    if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
      parser = new BytesParser(partitionValues, data);
    } else {
      parser = new ArrayParser(partitionValues, data);
    }

    Class<? extends RecordParser> forcedParserClass = FORCE_PARSER.get(conf);
    if (forcedParserClass == null) {
      LOG.info("Using {} to parse hive records from table {}",
View Full Code Here

  {
    RecordParser<Writable> forcedParser;
    if (BytesParser.class.equals(forcedParserClass)) {
      forcedParser = new BytesParser(partitionValues, data);
    } else if (ArrayParser.class.equals(forcedParserClass)) {
      forcedParser = new ArrayParser(partitionValues, data);
    } else if (DefaultParser.class.equals(forcedParserClass)) {
      forcedParser = new DefaultParser(deserializer, partitionValues, schema);
    } else {
      throw new IllegalArgumentException("Don't know how to create parser " +
          forcedParserClass.getCanonicalName());
View Full Code Here

    RecordParser<Writable> parser = null;

    if (!hasCollections && exampleValue instanceof BytesRefArrayWritable) {
      parser = new BytesParser(partitionValues, numColumns, data);
    } else {
      parser = new ArrayParser(partitionValues, numColumns, data);
    }

    Class<? extends RecordParser> forcedParserClass = FORCE_PARSER.get(conf);
    if (forcedParserClass == null) {
      LOG.info("Using {} to parse hive records from table {}",
View Full Code Here

  {
    RecordParser<Writable> forcedParser;
    if (BytesParser.class.equals(forcedParserClass)) {
      forcedParser = new BytesParser(partitionValues, numColumns, data);
    } else if (ArrayParser.class.equals(forcedParserClass)) {
      forcedParser = new ArrayParser(partitionValues, numColumns, data);
    } else if (DefaultParser.class.equals(forcedParserClass)) {
      forcedParser = new DefaultParser(deserializer, partitionValues, numColumns);
    } else {
      throw new IllegalArgumentException("Don't know how to create parser " +
          forcedParserClass.getCanonicalName());
View Full Code Here

TOP

Related Classes of com.facebook.hiveio.input.parser.array.ArrayParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.