Codota Logo
BlockletMinMaxIndex.getMin_max_presence
Code IndexAdd Codota to your IDE (free)

How to use
getMin_max_presence
method
in
org.apache.carbondata.format.BlockletMinMaxIndex

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Charset c =
  • Codota IconString charsetName;Charset.forName(charsetName)
  • Codota IconCharset.defaultCharset()
  • Codota IconContentType contentType;contentType.getCharset()
  • Smart code suggestions by Codota
}
origin: org.apache.carbondata/carbondata-format

public Object getFieldValue(_Fields field) {
 switch (field) {
 case MIN_VALUES:
  return getMin_values();
 case MAX_VALUES:
  return getMax_values();
 case MIN_MAX_PRESENCE:
  return getMin_max_presence();
 }
 throw new IllegalStateException();
}
origin: org.apache.carbondata/carbondata-core

/**
 * convert external thrift BlockletMinMaxIndex to BlockletMinMaxIndex of carbon metadata
 */
public static org.apache.carbondata.core.metadata.blocklet.index.BlockletMinMaxIndex
  convertExternalMinMaxIndex(BlockletMinMaxIndex minMaxIndex) {
 if (minMaxIndex == null) {
  return null;
 }
 List<Boolean> isMinMaxSet = null;
 if (minMaxIndex.isSetMin_max_presence()) {
  isMinMaxSet = minMaxIndex.getMin_max_presence();
 } else {
  Boolean[] minMaxFlag = new Boolean[minMaxIndex.getMax_values().size()];
  Arrays.fill(minMaxFlag, true);
  isMinMaxSet = Arrays.asList(minMaxFlag);
 }
 return new org.apache.carbondata.core.metadata.blocklet.index.BlockletMinMaxIndex(
   minMaxIndex.getMin_values(), minMaxIndex.getMax_values(), isMinMaxSet);
}
origin: org.apache.carbondata/carbondata-core

if (isMinMaxFlagSet) {
 minMaxFlag[i] =
   dataChunk.getData_chunk_list().get(i).getMin_max().getMin_max_presence().get(0);
origin: org.apache.carbondata/carbondata-core

/**
 * Below method will be used to convert the blocklet index of thrift to
 * wrapper
 *
 * @param blockletIndexThrift
 * @return blocklet index wrapper
 */
protected BlockletIndex getBlockletIndex(
  org.apache.carbondata.format.BlockletIndex blockletIndexThrift) {
 org.apache.carbondata.format.BlockletBTreeIndex btreeIndex =
   blockletIndexThrift.getB_tree_index();
 org.apache.carbondata.format.BlockletMinMaxIndex minMaxIndex =
   blockletIndexThrift.getMin_max_index();
 List<Boolean> isMinMaxSet = null;
 // Below logic is added to handle backward compatibility
 if (minMaxIndex.isSetMin_max_presence()) {
  isMinMaxSet = minMaxIndex.getMin_max_presence();
 } else {
  Boolean[] minMaxFlag = new Boolean[minMaxIndex.getMax_values().size()];
  Arrays.fill(minMaxFlag, true);
  isMinMaxSet = Arrays.asList(minMaxFlag);
 }
 return new BlockletIndex(
   new BlockletBTreeIndex(btreeIndex.getStart_key(), btreeIndex.getEnd_key()),
   new BlockletMinMaxIndex(minMaxIndex.getMin_values(), minMaxIndex.getMax_values(),
     isMinMaxSet));
}
origin: org.apache.carbondata/carbondata-processing

  new BlockletMinMaxIndex(index.getMin_max_index().getMin_values(),
    index.getMin_max_index().getMax_values(),
    index.getMin_max_index().getMin_max_presence());
org.apache.carbondata.core.metadata.blocklet.index.BlockletIndex bIndex =
  new org.apache.carbondata.core.metadata.blocklet.index.BlockletIndex(bTreeIndex,
org.apache.carbondata.formatBlockletMinMaxIndexgetMin_max_presence

Popular methods of BlockletMinMaxIndex

  • getMax_values
  • getMin_values
  • <init>
    Performs a deep copy on other.
  • isSetMin_max_presence
    Returns true if field min_max_presence is set (has been assigned a value) and false otherwise
  • setMin_max_presence
  • addToMax_values
  • addToMin_max_presence
  • addToMin_values
  • equals
  • isSetMax_values
    Returns true if field max_values is set (has been assigned a value) and false otherwise
  • isSetMin_values
    Returns true if field min_values is set (has been assigned a value) and false otherwise
  • read
  • isSetMin_values,
  • read,
  • setMax_values,
  • setMax_valuesIsSet,
  • setMin_max_presenceIsSet,
  • setMin_values,
  • setMin_valuesIsSet,
  • toString,
  • unsetMax_values

Popular in Java

  • Making http post requests using okhttp
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • setContentView (Activity)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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