Package com.facebook.hive.orc.lazy.OrcLazyObject

Examples of com.facebook.hive.orc.lazy.OrcLazyObject.ValueNotPresentException


  @Override
  public int nextInt(boolean readStream) throws IOException {
    if (!readStream)
      return latestRead;
    if (!valuePresent)
      throw new ValueNotPresentException("Cannot materialize int.");
    return readInt();
  }
View Full Code Here


  public double nextDouble(boolean readStream) throws IOException {
    if (!readStream) {
      return latestRead;
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize double.");
    }
    return readDouble();
  }
View Full Code Here

  public short nextShort(boolean readStream) throws IOException {
    if (!readStream) {
      return latestValue();
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize short.");
    }
    return readShort();
  }
View Full Code Here

  @Override
  public long nextLong(boolean readStream) throws IOException {
    if (!readStream)
      return latestRead;
    if (!valuePresent)
      throw new ValueNotPresentException("Cannot materialize long.");
    return readLong();
  }
View Full Code Here

  public long nextLong(boolean readStream) throws IOException {
    if (!readStream) {
      return latestValue();
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize long.");
    }
    return readLong();
  }
View Full Code Here

  public float nextFloat(boolean readStream) throws IOException, ValueNotPresentException {
    if (!readStream) {
      return latestRead;
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize float..");
    }
    return readFloat();
  }
View Full Code Here

  public int nextInt(boolean readStream) throws IOException {
    if (!readStream) {
      return latestValue();
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize int.");
    }
    return readInt();
  }
View Full Code Here

  public boolean nextBoolean(boolean readStream) throws IOException {
    if (!readStream) {
      return latestRead;
    }
    if (!valuePresent) {
      throw new ValueNotPresentException("Cannot materialize boolean.");
    }
    return readBoolean();

  }
View Full Code Here

  @Override
  public short nextShort(boolean readStream) throws IOException {
    if (!readStream)
      return latestRead;
    if (!valuePresent)
      throw new ValueNotPresentException("Cannot materialize short.");
    return readShort();
  }
View Full Code Here

TOP

Related Classes of com.facebook.hive.orc.lazy.OrcLazyObject.ValueNotPresentException

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.