private OrcFile.WriterOptions getOptions(JobConf conf, Properties props) { OrcFile.WriterOptions options = OrcFile.writerOptions(conf); String propVal ; if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.STRIPE_SIZE.getPropName(),props,conf)) != null){ options.stripeSize(Long.parseLong(propVal)); if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.COMPRESSION.getPropName(),props,conf)) != null){ options.compress(CompressionKind.valueOf(propVal)); if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.COMPRESSION_BLOCK_SIZE.getPropName(),props,conf)) != null){ options.bufferSize(Integer.parseInt(propVal)); if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.ROW_INDEX_STRIDE.getPropName(),props,conf)) != null){ options.rowIndexStride(Integer.parseInt(propVal)); if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.ENABLE_INDEXES.getPropName(),props,conf)) != null){ if ("false".equalsIgnoreCase(propVal)) { if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.BLOCK_PADDING.getPropName(),props,conf)) != null){ options.blockPadding(Boolean.parseBoolean(propVal)); if ((propVal = getSettingFromPropsFallingBackToConf( OrcFile.OrcTableProperties.ENCODING_STRATEGY.getPropName(),props,conf)) != null){ options.encodingStrategy(EncodingStrategy.valueOf(propVal));