Package com.facebook.hive.orc

Examples of com.facebook.hive.orc.DynamicByteArray


    // read the dictionary blob
    name = new StreamName(columnId,
        OrcProto.Stream.Kind.DICTIONARY_DATA);
    in = streams.get(name);
    if (in.available() > 0) {
      dictionaryBuffer = new DynamicByteArray(dictionaryOffsets[dictionarySize],
          DUMMY_MEMORY_ESTIMATE);
      dictionaryBuffer.readAll(in);
    } else {
      dictionaryBuffer = null;
    }
View Full Code Here


      offset += (int) directLengths.next();
    }
    strideDictionaryOffsets[unitDictionarySize] = offset;
    if (offset != 0) {
      directReader.seek(indexEntry);
      strideDictionaryBuffer = new DynamicByteArray(offset, DUMMY_MEMORY_ESTIMATE);
      strideDictionaryBuffer.read(directReader, offset);
    } else {
      // It only contains the empty string
      strideDictionaryBuffer = null;
    }
View Full Code Here

    // read the dictionary blob
    name = new StreamName(columnId,
        OrcProto.Stream.Kind.DICTIONARY_DATA);
    in = streams.get(name);
    if (in.available() > 0) {
      dictionaryBuffer = new DynamicByteArray(dictionaryOffsets[dictionarySize]);
      dictionaryBuffer.readAll(in);
    } else {
      dictionaryBuffer = null;
    }
    in.close();
View Full Code Here

      offset += (int) directLengths.next();
    }
    strideDictionaryOffsets[unitDictionarySize] = offset;
    if (offset != 0) {
      directReader.seek(indexEntry);
      strideDictionaryBuffer = new DynamicByteArray(offset);
      strideDictionaryBuffer.read(directReader, offset);
    } else {
      // It only contains the empty string
      strideDictionaryBuffer = null;
    }
View Full Code Here

TOP

Related Classes of com.facebook.hive.orc.DynamicByteArray

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.