Tabnine Logo
BlockletIndex.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.carbondata.format.BlockletIndex
constructor

Best Java code snippets using org.apache.carbondata.format.BlockletIndex.<init> (Showing top 17 results out of 315)

origin: org.apache.carbondata/carbondata-format

public BlockletIndex deepCopy() {
 return new BlockletIndex(this);
}
origin: org.apache.carbondata/carbondata-format

List<BlockletIndex> __this__blocklet_index_list = new ArrayList<BlockletIndex>(other.blocklet_index_list.size());
for (BlockletIndex other_element : other.blocklet_index_list) {
 __this__blocklet_index_list.add(new BlockletIndex(other_element));
origin: org.apache.carbondata/carbondata-format

List<BlockletIndex> __this__blocklet_index_list = new ArrayList<BlockletIndex>(other.blocklet_index_list.size());
for (BlockletIndex other_element : other.blocklet_index_list) {
 __this__blocklet_index_list.add(new BlockletIndex(other_element));
origin: org.apache.carbondata/carbondata-format

/**
 * Performs a deep copy on <i>other</i>.
 */
public BlockIndex(BlockIndex other) {
 __isset_bitfield = other.__isset_bitfield;
 this.num_rows = other.num_rows;
 if (other.isSetFile_name()) {
  this.file_name = other.file_name;
 }
 this.offset = other.offset;
 if (other.isSetBlock_index()) {
  this.block_index = new org.apache.carbondata.format.BlockletIndex(other.block_index);
 }
 if (other.isSetBlocklet_info()) {
  this.blocklet_info = new org.apache.carbondata.format.BlockletInfo3(other.blocklet_info);
 }
 this.file_size = other.file_size;
}
origin: org.apache.carbondata/carbondata-format

case 3: // BLOCKLET_INDEX
 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
  struct.blocklet_index = new BlockletIndex();
  struct.blocklet_index.read(iprot);
  struct.setBlocklet_indexIsSet(true);
origin: org.apache.carbondata/carbondata-format

case 4: // BLOCK_INDEX
 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) {
  struct.block_index = new org.apache.carbondata.format.BlockletIndex();
  struct.block_index.read(iprot);
  struct.setBlock_indexIsSet(true);
origin: org.apache.carbondata/carbondata-format

/**
 * Performs a deep copy on <i>other</i>.
 */
public BlockletHeader(BlockletHeader other) {
 __isset_bitfield = other.__isset_bitfield;
 this.blocklet_length = other.blocklet_length;
 if (other.isSetMutation()) {
  this.mutation = other.mutation;
 }
 if (other.isSetBlocklet_index()) {
  this.blocklet_index = new BlockletIndex(other.blocklet_index);
 }
 if (other.isSetBlocklet_info()) {
  this.blocklet_info = new BlockletInfo(other.blocklet_info);
 }
 if (other.isSetDictionary()) {
  this.dictionary = new org.apache.carbondata.format.ColumnDictionaryChunk(other.dictionary);
 }
}
origin: org.apache.carbondata/carbondata-format

for (int _i170 = 0; _i170 < _list168.size; ++_i170)
 _elem169 = new BlockletIndex();
 _elem169.read(iprot);
 struct.blocklet_index_list.add(_elem169);
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-format

for (int _i141 = 0; _i141 < _list139.size; ++_i141)
 _elem140 = new BlockletIndex();
 _elem140.read(iprot);
 struct.blocklet_index_list.add(_elem140);
origin: org.apache.carbondata/carbondata-format

for (int _i186 = 0; _i186 < _list184.size; ++_i186)
 _elem185 = new BlockletIndex();
 _elem185.read(iprot);
 struct.blocklet_index_list.add(_elem185);
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-format

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, BlockIndex struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.num_rows = iprot.readI64();
  struct.setNum_rowsIsSet(true);
  struct.file_name = iprot.readString();
  struct.setFile_nameIsSet(true);
  struct.offset = iprot.readI64();
  struct.setOffsetIsSet(true);
  struct.block_index = new org.apache.carbondata.format.BlockletIndex();
  struct.block_index.read(iprot);
  struct.setBlock_indexIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
   struct.blocklet_info = new org.apache.carbondata.format.BlockletInfo3();
   struct.blocklet_info.read(iprot);
   struct.setBlocklet_infoIsSet(true);
  }
  if (incoming.get(1)) {
   struct.file_size = iprot.readI64();
   struct.setFile_sizeIsSet(true);
  }
 }
}
origin: org.apache.carbondata/carbondata-format

 @Override
 public void read(org.apache.thrift.protocol.TProtocol prot, BlockletHeader struct) throws org.apache.thrift.TException {
  TTupleProtocol iprot = (TTupleProtocol) prot;
  struct.blocklet_length = iprot.readI32();
  struct.setBlocklet_lengthIsSet(true);
  struct.mutation = org.apache.carbondata.format.MutationType.findByValue(iprot.readI32());
  struct.setMutationIsSet(true);
  struct.blocklet_info = new BlockletInfo();
  struct.blocklet_info.read(iprot);
  struct.setBlocklet_infoIsSet(true);
  BitSet incoming = iprot.readBitSet(2);
  if (incoming.get(0)) {
   struct.blocklet_index = new BlockletIndex();
   struct.blocklet_index.read(iprot);
   struct.setBlocklet_indexIsSet(true);
  }
  if (incoming.get(1)) {
   struct.dictionary = new org.apache.carbondata.format.ColumnDictionaryChunk();
   struct.dictionary.read(iprot);
   struct.setDictionaryIsSet(true);
  }
 }
}
origin: org.apache.carbondata/carbondata-format

for (int _i161 = 0; _i161 < _list159.size; ++_i161)
 _elem160 = new BlockletIndex();
 _elem160.read(iprot);
 struct.blocklet_index_list.add(_elem160);
origin: org.apache.carbondata/carbondata-streaming

blockIndex.setOffset(-1);
BlockletIndex blockletIndex = new BlockletIndex();
blockIndex.setBlock_index(blockletIndex);
StreamFileIndex streamFileIndex = indexMap.get(blockIndex.getFile_name());
origin: org.apache.carbondata/carbondata-core

    .serializeEndKey();
blockletBTreeIndex.setEnd_key(endKey);
BlockletIndex blockletIndex = new BlockletIndex();
blockletIndex.setMin_max_index(blockletMinMaxIndex);
blockletIndex.setB_tree_index(blockletBTreeIndex);
org.apache.carbondata.formatBlockletIndex<init>

Javadoc

Performs a deep copy on other.

Popular methods of BlockletIndex

  • getMin_max_index
  • setMin_max_index
  • 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

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • findViewById (Activity)
  • Path (java.nio.file)
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 12 Jupyter Notebook extensions
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