Codota Logo
IndexHeader.getVersion
Code IndexAdd Codota to your IDE (free)

How to use
getVersion
method
in
org.apache.carbondata.format.IndexHeader

Best Java code snippets using org.apache.carbondata.format.IndexHeader.getVersion (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
DateTime d =
  • Codota Iconnew DateTime()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseDateTime(text)
  • Codota IconObject instant;new DateTime(instant)
  • Smart code suggestions by Codota
}
origin: org.apache.carbondata/carbondata-format

public Object getFieldValue(_Fields field) {
 switch (field) {
 case VERSION:
  return getVersion();
 case TABLE_COLUMNS:
  return getTable_columns();
 case SEGMENT_INFO:
  return getSegment_info();
 case BUCKET_ID:
  return getBucket_id();
 case SCHEMA_TIME_STAMP:
  return getSchema_time_stamp();
 }
 throw new IllegalStateException();
}
origin: org.apache.carbondata/carbondata-core

/**
 * This method will create a table block info object from index file info
 *
 * @param readBlockIndexInfo
 * @param readIndexHeader
 * @param parentPath
 * @return
 */
public TableBlockInfo getTableBlockInfo(BlockIndex readBlockIndexInfo,
  org.apache.carbondata.format.IndexHeader readIndexHeader, String parentPath) {
 TableBlockInfo tableBlockInfo = new TableBlockInfo();
 tableBlockInfo.setBlockOffset(readBlockIndexInfo.getOffset());
 ColumnarFormatVersion version =
   ColumnarFormatVersion.valueOf((short) readIndexHeader.getVersion());
 tableBlockInfo.setVersion(version);
 int blockletSize = getBlockletSize(readBlockIndexInfo);
 tableBlockInfo.getBlockletInfos().setNoOfBlockLets(blockletSize);
 String fileName = readBlockIndexInfo.file_name;
 // Take only name of file.
 if (fileName.lastIndexOf("/") > 0) {
  fileName = fileName.substring(fileName.lastIndexOf("/"));
 }
 fileName = (CarbonCommonConstants.FILE_SEPARATOR + fileName).replaceAll("//", "/");
 tableBlockInfo.setFilePath(parentPath + fileName);
 return tableBlockInfo;
}
origin: org.apache.carbondata/carbondata-core

tableBlockInfo.setBlockOffset(readBlockIndexInfo.getOffset());
tableBlockInfo.setVersion(
  ColumnarFormatVersion.valueOf((short) readIndexHeader.getVersion()));
int blockletSize = getBlockletSize(readBlockIndexInfo);
tableBlockInfo.getBlockletInfos().setNoOfBlockLets(blockletSize);
origin: org.apache.carbondata/carbondata-core

 indexReader.openThriftReader(fileData);
 IndexHeader indexHeader = indexReader.readIndexHeader();
 version = ColumnarFormatVersion.valueOf((short)indexHeader.getVersion());
 break;
} finally {
  indexReader.openThriftReader(fileData);
  IndexHeader indexHeader = indexReader.readIndexHeader();
  version = ColumnarFormatVersion.valueOf((short)indexHeader.getVersion());
  break;
 } finally {
org.apache.carbondata.formatIndexHeadergetVersion

Popular methods of IndexHeader

  • getTable_columns
  • <init>
    Performs a deep copy on other.
  • getSchema_time_stamp
  • getSegment_info
  • isSetSchema_time_stamp
    Returns true if field schema_time_stamp is set (has been assigned a value) and false otherwise
  • setBucket_id
  • setSchema_time_stamp
  • setSegment_info
  • setTable_columns
  • setVersion
  • equals
  • getBucket_id
  • equals,
  • getBucket_id,
  • isSetBucket_id,
  • isSetSegment_info,
  • isSetTable_columns,
  • isSetVersion,
  • read,
  • setBucket_idIsSet,
  • setSchema_time_stampIsSet

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • findViewById (Activity)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Collectors (java.util.stream)
  • JFrame (javax.swing)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now