Tabnine Logo
BlockletIndex.setMin_max_index
Code IndexAdd Tabnine to your IDE (free)

How to use
setMin_max_index
method
in
org.apache.carbondata.format.BlockletIndex

Best Java code snippets using org.apache.carbondata.format.BlockletIndex.setMin_max_index (Showing top 5 results out of 315)

origin: org.apache.carbondata/carbondata-format

public void setFieldValue(_Fields field, Object value) {
 switch (field) {
 case MIN_MAX_INDEX:
  if (value == null) {
   unsetMin_max_index();
  } else {
   setMin_max_index((BlockletMinMaxIndex)value);
  }
  break;
 case B_TREE_INDEX:
  if (value == null) {
   unsetB_tree_index();
  } else {
   setB_tree_index((BlockletBTreeIndex)value);
  }
  break;
 }
}
origin: org.apache.carbondata/carbondata-streaming

void apppendBlocklet(DataOutputStream outputStream) throws IOException {
 outputStream.write(CarbonStreamOutputFormat.CARBON_SYNC_MARKER);
 BlockletInfo blockletInfo = new BlockletInfo();
 blockletInfo.setNum_rows(getRowIndex() + 1);
 BlockletHeader blockletHeader = new BlockletHeader();
 blockletHeader.setBlocklet_length(getCount());
 blockletHeader.setMutation(MutationType.INSERT);
 blockletHeader.setBlocklet_info(blockletInfo);
 // add blocklet level min/max
 blockletMinMaxIndex = generateBlockletMinMax();
 if (blockletInfo.getNum_rows() > 1) {
  BlockletIndex blockletIndex = new BlockletIndex();
  blockletIndex.setMin_max_index(CarbonMetadataUtil.convertMinMaxIndex(blockletMinMaxIndex));
  blockletHeader.setBlocklet_index(blockletIndex);
 }
 byte[] headerBytes = CarbonUtil.getByteArray(blockletHeader);
 outputStream.writeInt(headerBytes.length);
 outputStream.write(headerBytes);
 byte[] compressed = compressor.compressByte(getBytes(), getCount());
 outputStream.writeInt(compressed.length);
 outputStream.write(compressed);
}
origin: org.apache.carbondata/carbondata-core

public static BlockletIndex getBlockletIndex(
  org.apache.carbondata.core.metadata.blocklet.index.BlockletIndex info) {
 BlockletMinMaxIndex blockletMinMaxIndex = convertMinMaxIndex(info.getMinMaxIndex());
 BlockletBTreeIndex blockletBTreeIndex = new BlockletBTreeIndex();
 blockletBTreeIndex.setStart_key(info.getBtreeIndex().getStartKey());
 blockletBTreeIndex.setEnd_key(info.getBtreeIndex().getEndKey());
 BlockletIndex blockletIndex = new BlockletIndex();
 blockletIndex.setMin_max_index(blockletMinMaxIndex);
 blockletIndex.setB_tree_index(blockletBTreeIndex);
 return blockletIndex;
}
origin: org.apache.carbondata/carbondata-streaming

StreamFileIndex streamFileIndex = indexMap.get(blockIndex.getFile_name());
if (streamFileIndex != null) {
 blockletIndex.setMin_max_index(
   CarbonMetadataUtil.convertMinMaxIndex(streamFileIndex.getMinMaxIndex()));
 blockIndex.setNum_rows(streamFileIndex.getRowCount());
origin: org.apache.carbondata/carbondata-core

blockletBTreeIndex.setEnd_key(endKey);
BlockletIndex blockletIndex = new BlockletIndex();
blockletIndex.setMin_max_index(blockletMinMaxIndex);
blockletIndex.setB_tree_index(blockletBTreeIndex);
return blockletIndex;
org.apache.carbondata.formatBlockletIndexsetMin_max_index

Popular methods of BlockletIndex

  • getMin_max_index
  • <init>
    Performs a deep copy on other.
  • getB_tree_index
  • setB_tree_index
  • equals
  • isSetB_tree_index
    Returns true if field b_tree_index is set (has been assigned a value) and false otherwise
  • isSetMin_max_index
    Returns true if field min_max_index is set (has been assigned a value) and false otherwise
  • read
  • setB_tree_indexIsSet
  • setMin_max_indexIsSet
  • unsetB_tree_index
  • unsetMin_max_index
  • unsetB_tree_index,
  • unsetMin_max_index,
  • validate,
  • write

Popular in Java

  • Start an intent from android
  • setScale (BigDecimal)
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now