Package com.facebook.hive.orc.lazy

Examples of com.facebook.hive.orc.lazy.OrcLazyBinary.materialize()


        OrcLazyObjectInspectorUtils.createLazyObjectInspector(TypeInfoFactory.binaryTypeInfo);

    OrcLazyBinary lazyBinary2 = (OrcLazyBinary) binaryOI.copyObject(lazyBinary);

    Assert.assertEquals("a", new String(((BytesWritable) lazyBinary.materialize()).getBytes()));
    Assert.assertEquals("a", new String(((BytesWritable) lazyBinary2.materialize()).getBytes()));
  }

  /**
   * Tests that after copying a lazy boolean object, calling materialize on the original and the
   * copy doesn't advance the tree reader twice
View Full Code Here


        OrcLazyObjectInspectorUtils.createLazyObjectInspector(TypeInfoFactory.binaryTypeInfo);

    OrcLazyBinary lazyBinary2 = (OrcLazyBinary) binaryOI.copyObject(lazyBinary);

    Assert.assertEquals("a", new String(((BytesWritable) lazyBinary.materialize()).getBytes()));
    Assert.assertEquals("a", new String(((BytesWritable) lazyBinary2.materialize()).getBytes()));
  }

  /**
   * Tests that after copying a lazy boolean object, calling materialize on the original and the
   * copy doesn't advance the tree reader twice
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.