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

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

Best Java code snippets using org.apache.carbondata.format.BlockletMinMaxIndex.isSetMin_max_presence (Showing top 11 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

@Override
public int hashCode() {
 List<Object> list = new ArrayList<Object>();
 boolean present_min_values = true && (isSetMin_values());
 list.add(present_min_values);
 if (present_min_values)
  list.add(min_values);
 boolean present_max_values = true && (isSetMax_values());
 list.add(present_max_values);
 if (present_max_values)
  list.add(max_values);
 boolean present_min_max_presence = true && (isSetMin_max_presence());
 list.add(present_min_max_presence);
 if (present_min_max_presence)
  list.add(min_max_presence);
 return list.hashCode();
}
origin: org.apache.carbondata/carbondata-format

/**
 * Performs a deep copy on <i>other</i>.
 */
public BlockletMinMaxIndex(BlockletMinMaxIndex other) {
 if (other.isSetMin_values()) {
  List<ByteBuffer> __this__min_values = new ArrayList<ByteBuffer>(other.min_values);
  this.min_values = __this__min_values;
 }
 if (other.isSetMax_values()) {
  List<ByteBuffer> __this__max_values = new ArrayList<ByteBuffer>(other.max_values);
  this.max_values = __this__max_values;
 }
 if (other.isSetMin_max_presence()) {
  List<Boolean> __this__min_max_presence = new ArrayList<Boolean>(other.min_max_presence);
  this.min_max_presence = __this__min_max_presence;
 }
}
origin: org.apache.carbondata/carbondata-format

/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
public boolean isSet(_Fields field) {
 if (field == null) {
  throw new IllegalArgumentException();
 }
 switch (field) {
 case MIN_VALUES:
  return isSetMin_values();
 case MAX_VALUES:
  return isSetMax_values();
 case MIN_MAX_PRESENCE:
  return isSetMin_max_presence();
 }
 throw new IllegalStateException();
}
origin: org.apache.carbondata/carbondata-format

if (isSetMin_max_presence()) {
 if (!first) sb.append(", ");
 sb.append("min_max_presence:");
origin: org.apache.carbondata/carbondata-format

lastComparison = Boolean.valueOf(isSetMin_max_presence()).compareTo(other.isSetMin_max_presence());
if (lastComparison != 0) {
 return lastComparison;
if (isSetMin_max_presence()) {
 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.min_max_presence, other.min_max_presence);
 if (lastComparison != 0) {
origin: org.apache.carbondata/carbondata-format

public boolean equals(BlockletMinMaxIndex that) {
 if (that == null)
  return false;
 boolean this_present_min_values = true && this.isSetMin_values();
 boolean that_present_min_values = true && that.isSetMin_values();
 if (this_present_min_values || that_present_min_values) {
  if (!(this_present_min_values && that_present_min_values))
   return false;
  if (!this.min_values.equals(that.min_values))
   return false;
 }
 boolean this_present_max_values = true && this.isSetMax_values();
 boolean that_present_max_values = true && that.isSetMax_values();
 if (this_present_max_values || that_present_max_values) {
  if (!(this_present_max_values && that_present_max_values))
   return false;
  if (!this.max_values.equals(that.max_values))
   return false;
 }
 boolean this_present_min_max_presence = true && this.isSetMin_max_presence();
 boolean that_present_min_max_presence = true && that.isSetMin_max_presence();
 if (this_present_min_max_presence || that_present_min_max_presence) {
  if (!(this_present_min_max_presence && that_present_min_max_presence))
   return false;
  if (!this.min_max_presence.equals(that.min_max_presence))
   return false;
 }
 return true;
}
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-format

if (struct.isSetMin_max_presence()) {
 optionals.set(0);
if (struct.isSetMin_max_presence()) {
origin: org.apache.carbondata/carbondata-format

if (struct.isSetMin_max_presence()) {
 oprot.writeFieldBegin(MIN_MAX_PRESENCE_FIELD_DESC);
origin: org.apache.carbondata/carbondata-core

eachPageLength[i] = dataChunk.getData_chunk_list().get(i).getNumberOfRowsInpage();
boolean isMinMaxFlagSet =
  dataChunk.getData_chunk_list().get(i).getMin_max().isSetMin_max_presence();
if (isMinMaxFlagSet) {
 minMaxFlag[i] =
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));
}
org.apache.carbondata.formatBlockletMinMaxIndexisSetMin_max_presence

Javadoc

Returns true if field min_max_presence is set (has been assigned a value) and false otherwise

Popular methods of BlockletMinMaxIndex

  • getMax_values
  • getMin_max_presence
  • getMin_values
  • <init>
    Performs a deep copy on other.
  • 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
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Collectors (java.util.stream)
  • JFileChooser (javax.swing)
  • JOptionPane (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
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