Max Allowed Packet and String-Valued Function Results

Rishi Raj
Updated on 30-Jul-2019 22:30:21

250 Views

String-valued functions return NULL if the length of the result would be greater than the value of the max_allowed_packet system variable. Actually, max_allowed_packet is a dynamic global variable which can accept the integer type values. These values can be set for a session only. It can accept 1024 as the minimum value and 1073741824 as the maximum value. The by the default value of this system variable is 1048576.

Show a While Loop Using a Flow Chart in JavaScript

Sai Subramanyam
Updated on 30-Jul-2019 22:30:21

302 Views

The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true. Once the expression becomes false, the loop terminates. Let’s see how to show while loop using flowchart in JavaScript −

Text Data Analysis and Search Capability in SAP HANA

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

157 Views

Preprocessor server provides text data analysis and search capabilities in HANA system. Preprocessor server is used by Index search to analyze the text data and to perform any search on the text data. This server is used to extract the information based on text search capabilities in HANA system.

Performance Data of Servers in SAP HANA

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

222 Views

Statistics server is used to manage health of your HANA system. You can take information related to status, performance consumption of resources from all the servers in your system landscape. You can also pull the reports related to performance of server components for analysis.

Reverse an ArrayList in Java

Srinivas Gorla
Updated on 30-Jul-2019 22:30:21

492 Views

The Collections class provides a method named reverse() this method accepts a list and reverses the order of elements in it.Example:import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; public class Sample {    public static void main(String[] args){       ArrayList list = new ArrayList();       list.add("JavaFx");       list.add("Java");       list.add("WebGL");       list.add("OpenCV");       Set set = new LinkedHashSet(list);       System.out.println(set);       Collections.reverse(list);       System.out.println(list);    } }Output:[JavaFx, Java, WebGL, OpenCV] [OpenCV, WebGL, Java, JavaFx]

Constructors of StringBuffer Class in Java

Akshaya Akki
Updated on 30-Jul-2019 22:30:21

1K+ Views

Following are the various constructors provided by the StringBuffer class.S.N.Constructor & Description1StringBuffer()This constructs a string buffer with no characters in it and an initial capacity of 16 characters.2StringBuffer(CharSequence seq)This constructs a string buffer that contains the same characters as the specified CharSequence.3StringBuffer(int capacity)This constructs a string buffer with no characters in it and the specified initial capacity.4StringBuffer(String str)This constructs a string buffer initialized to the contents of the specified string.

Reverse Toggle Each Word in a String using Java

Manikanth Mani
Updated on 30-Jul-2019 22:30:21

869 Views

To perform a reverse toggle split the words of a string, reverse each word using the split() method, change the first letter of each word to lower case and remaining letters to upper case.Example Live Demoimport java.lang.StringBuffer; public class ToggleReverse {    public static void main(String args[]){       String sample = "Hello How are you";       String[] words = sample.split(" ");       String result = "";       for(String word:words){          StringBuffer s = new StringBuffer(word);          word = s.reverse().toString();          String firstSub = word.substring(0, 1);          String secondSub = word.substring(1);          result = result+firstSub.toLowerCase()+secondSub.toUpperCase()+" ";       }       System.out.println(result);    } }OutputoLLEH wOH eRA uOY

Data Compression in SAP HANA System

Anil SAP Gupta
Updated on 30-Jul-2019 22:30:21

597 Views

SAP HANA system combines OLAP and OLTP processing into a single in-memory database and it removes the disk bottlenecks and offering groundbreaking performance. This ACID-compliant, in-memory columnar database stores provides data compression up to 11 times as compared to other conventional database, parallel processing across multiprocessor cores, and supports single instruction multiple data (SIMD) commands.

Synchronize an ArrayList in Java

Nikitha N
Updated on 30-Jul-2019 22:30:21

288 Views

The synchronizedList(List list) method of the Collections class accepts a List object and returns a synchronized list backed by the specified list.Example:import java.util.ArrayList; import java.util.Collections; import java.util.LinkedHashSet; import java.util.Set; public class ArrayListSample {    public static void main(String[] args){       ArrayList list = new ArrayList();       list.add("JavaFx");       list.add("Java");       list.add("WebGL");       list.add("OpenCV");       Set set = new LinkedHashSet(list);       Collections.synchronizedList(list);       System.out.println(list);    } }Output:[JavaFx, Java, WebGL, OpenCV]

Difference Between StringBuffer and StringBuilder in Java

Manikanth Mani
Updated on 30-Jul-2019 22:30:21

425 Views

The StringBuffer and StringBuilder classes are used when there is a necessity to make a lot of modifications to Strings of characters.Unlike Strings, objects of type StringBuffer and String builder can be modified over and over again without leaving behind a lot of new unused objects.The StringBuilder class was introduced as of Java 5 and the main difference between the StringBuffer and StringBuilder is that StringBuilder’s methods do not thread safe (not synchronized).It is recommended to use StringBuilder whenever possible because it is faster than StringBuffer. However, if the thread safety is necessary, the best option is StringBuffer objects. Read More

Advertisements