Codota Logo
ThreadLocalTaskInfo
Code IndexAdd Codota to your IDE (free)

How to use
ThreadLocalTaskInfo
in
org.apache.carbondata.core.util

Best Java code snippets using org.apache.carbondata.core.util.ThreadLocalTaskInfo (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: org.apache.carbondata/carbondata-core

 public static CarbonTaskInfo getCarbonTaskInfo() {
  if (null == threadLocal.get()) {
   CarbonTaskInfo carbonTaskInfo = new CarbonTaskInfo();
   carbonTaskInfo.setTaskId(CarbonUtil.generateUUID());
   ThreadLocalTaskInfo.setCarbonTaskInfo(carbonTaskInfo);
  }
  return threadLocal.get();
 }
}
origin: org.apache.carbondata/carbondata-core

.freeMemoryAll(ThreadLocalTaskInfo.getCarbonTaskInfo().getTaskId());
origin: org.apache.carbondata/carbondata-processing

public UnsafeSortDataRows(SortParameters parameters,
  UnsafeIntermediateMerger unsafeInMemoryIntermediateFileMerger, int inMemoryChunkSize) {
 this.parameters = parameters;
 this.tableFieldStat = new TableFieldStat(parameters);
 this.reUsableByteArrayDataOutputStream = new ThreadLocal<ReUsableByteArrayDataOutputStream>() {
  @Override protected ReUsableByteArrayDataOutputStream initialValue() {
   ByteArrayOutputStream byteStream = new ByteArrayOutputStream();
   return new ReUsableByteArrayDataOutputStream(byteStream);
  }
 };
 this.unsafeInMemoryIntermediateFileMerger = unsafeInMemoryIntermediateFileMerger;
 // observer of writing file in thread
 this.threadStatusObserver = new ThreadStatusObserver();
 this.taskId = ThreadLocalTaskInfo.getCarbonTaskInfo().getTaskId();
 this.inMemoryChunkSize = inMemoryChunkSize * 1024L * 1024L;
 enableInMemoryIntermediateMerge = Boolean.parseBoolean(CarbonProperties.getInstance()
   .getProperty(CarbonCommonConstants.ENABLE_INMEMORY_MERGE_SORT,
     CarbonCommonConstants.ENABLE_INMEMORY_MERGE_SORT_DEFAULT));
 this.maxSizeAllowed = parameters.getBatchSortSizeinMb();
 if (maxSizeAllowed <= 0) {
  // If user does not input any memory size, then take half the size of usable memory configured
  // in sort memory size.
  this.maxSizeAllowed = UnsafeMemoryManager.INSTANCE.getUsableMemory() / 2;
 } else {
  this.maxSizeAllowed = this.maxSizeAllowed * 1024L * 1024L;
 }
}
origin: org.apache.carbondata/carbondata-search

CarbonTaskInfo carbonTaskInfo = new CarbonTaskInfo();
carbonTaskInfo.setTaskId(CarbonUtil.generateUUID());
ThreadLocalTaskInfo.setCarbonTaskInfo(carbonTaskInfo);
TableInfo tableInfo = request.tableInfo();
CarbonTable table = CarbonTable.buildFromTableInfo(tableInfo);
org.apache.carbondata.core.utilThreadLocalTaskInfo

Javadoc

Class to keep all the thread local variable for task

Most used methods

  • getCarbonTaskInfo
  • setCarbonTaskInfo

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Collectors (java.util.stream)
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • JTextField (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