Skip navigation links
A B C D E G H I M N O P R S T U V W 

A

add(byte[], byte[]) - Static method in class co.cask.common.Bytes
Concatenate two byte arrays.
add(byte[], byte[], byte[]) - Static method in class co.cask.common.Bytes
Concatenate three byte arrays.
arrayToString(String[]) - Static method in class co.cask.common.StringUtils
Given an array of strings, return a comma-separated list of its elements.

B

ByteArrayComparator() - Constructor for class co.cask.common.Bytes.ByteArrayComparator
Constructor.
Bytes - Class in co.cask.common
Utility class that handles byte arrays, conversions to/from other types, comparisons, hash code generation, manufacturing keys for HashMaps or HashSets, etc.
Bytes() - Constructor for class co.cask.common.Bytes
 
Bytes.ByteArrayComparator - Class in co.cask.common
Byte array comparator class.
BYTES_COMPARATOR - Static variable in class co.cask.common.Bytes
Pass this to TreeMaps where byte [] are keys.

C

co.cask.common - package co.cask.common
 
co.cask.common.runtime - package co.cask.common.runtime
 
compare(byte[], byte[]) - Method in class co.cask.common.Bytes.ByteArrayComparator
 
compareTo(byte[], byte[]) - Static method in class co.cask.common.Bytes
Lexicographically compare two arrays.
compareTo(byte[], int, int, byte[], int, int) - Static method in class co.cask.common.Bytes
Lexicographically compare two arrays.
concat(byte[]...) - Static method in class co.cask.common.Bytes
Returns the values from each provided array combined into a single array.
createTempDir(File) - Static method in class co.cask.common.DirUtils
Creates a temp directory inside the given base directory.

D

DaemonMain - Class in co.cask.common.runtime
A abstract base class for bridging standard main method to method invoked through apache commons-daemon jsvc.
DaemonMain() - Constructor for class co.cask.common.runtime.DaemonMain
 
deleteDirectoryContents(File) - Static method in class co.cask.common.DirUtils
Wipes out all the a directory starting from a given directory.
destroy() - Method in class co.cask.common.runtime.DaemonMain
Invoked by jsvc for resource cleanup.
DirUtils - Class in co.cask.common
Copied from Google Guava as these methods are now deprecated.
doMain(String[]) - Method in class co.cask.common.runtime.DaemonMain
The main method.

E

EMPTY_BYTE_ARRAY - Static variable in class co.cask.common.Bytes
Byte array of size zero.
EMPTY_STRING_ARRAY - Static variable in class co.cask.common.StringUtils
 
equals(byte[], byte[]) - Static method in class co.cask.common.Bytes
Checks two byte arrays for equality.
equals(byte[], int, int, byte[], int, int) - Static method in class co.cask.common.Bytes
Checks segments of two byte arrays for equality.
equals(Object) - Method in class co.cask.common.ImmutablePair
Returns whether some other object "is equal" to this object.

G

getBytes(ByteBuffer) - Static method in class co.cask.common.Bytes
This method will get a sequence of bytes from pos -> limit, but will restore pos after.
getFirst() - Method in class co.cask.common.ImmutablePair
Returns first object from pair.
getRandomPort() - Static method in class co.cask.common.Networks
Find a random free port in localhost for binding.
getSecond() - Method in class co.cask.common.ImmutablePair
Return second object from pair.
getStringCollection(String) - Static method in class co.cask.common.StringUtils
Returns a collection of strings.
getStrings(String) - Static method in class co.cask.common.StringUtils
Returns an arraylist of strings.
getTrimmedStringCollection(String) - Static method in class co.cask.common.StringUtils
Splits a comma separated value String, trimming leading and trailing whitespace on each value.
getTrimmedStrings(String) - Static method in class co.cask.common.StringUtils
Splits a comma separated value String, trimming leading and trailing whitespace on each value.

H

hashBytes(byte[], int, int) - Static method in class co.cask.common.Bytes
Compute hash for binary data.
hashBytes(byte[], int) - Static method in class co.cask.common.Bytes
Compute hash for binary data.
hashCode(byte[]) - Static method in class co.cask.common.Bytes
Compute hash for binary data.
hashCode(byte[], int) - Static method in class co.cask.common.Bytes
Compute hash for binary data.
hashCode(byte[], int, int) - Static method in class co.cask.common.Bytes
 
hashCode() - Method in class co.cask.common.ImmutablePair
Returns a hash code value for this object.
head(byte[], int) - Static method in class co.cask.common.Bytes
Returns first length bytes from byte array.

I

ImmutablePair<A,B> - Class in co.cask.common
An ImmutablePair consists of two elements within.
ImmutablePair(A, B) - Constructor for class co.cask.common.ImmutablePair
Constructs a Immutable Pair.
immutableSortedMapOf(byte[], T) - Static method in class co.cask.common.Bytes
Creates immutable sorted map with one entry with given key and value.
immutableSortedMapOf(byte[], T, byte[], T) - Static method in class co.cask.common.Bytes
Creates immutable sorted map with two entries with given keys and values.
incrementBytes(byte[], long) - Static method in class co.cask.common.Bytes
Bytewise binary increment/deincrement of long contained in byte array on given amount.
init(String[]) - Method in class co.cask.common.runtime.DaemonMain
Invoked by jsvc to initialize the program.
iterateOnSplits(byte[], byte[], int) - Static method in class co.cask.common.Bytes
Iterate over keys within the passed range, splitting at an [a,b) boundary.
iterateOnSplits(byte[], byte[], boolean, int) - Static method in class co.cask.common.Bytes
Iterate over keys within the passed range.

M

mapKey(byte[]) - Static method in class co.cask.common.Bytes
Returns a hash of a byte array as an Integer that can be used as key in Maps.
mapKey(byte[], int) - Static method in class co.cask.common.Bytes
Returns a hash of a byte array segment as an Integer that can be used as key in Maps.
mkdirs(File) - Static method in class co.cask.common.DirUtils
Creates a directory if the directory doesn't exists.

N

Networks - Class in co.cask.common
Utility class to provide methods for common network related operations.
normalizeWebappDiscoveryName(String) - Static method in class co.cask.common.Networks
Normalizes the name by doing the following: Remove trailing slashes. Remove :80 from end of the host part if any. Replace '.', ':', '/' and '-' with '_'. URL encode the name.

O

of(A, B) - Static method in class co.cask.common.ImmutablePair
 

P

padHead(byte[], int) - Static method in class co.cask.common.Bytes
Return a byte array with value in a plus length prepended 0 bytes.
padTail(byte[], int) - Static method in class co.cask.common.Bytes
Return a byte array with value in a plus length appended 0 bytes.
putBigDecimal(byte[], int, BigDecimal) - Static method in class co.cask.common.Bytes
Put a BigDecimal value out to the specified byte array position.
putByte(byte[], int, byte) - Static method in class co.cask.common.Bytes
Write a single byte out to the specified byte array position.
putBytes(byte[], int, byte[], int, int) - Static method in class co.cask.common.Bytes
Put bytes at the specified byte array position.
putDouble(byte[], int, double) - Static method in class co.cask.common.Bytes
Put a double value out to the specified byte array position.
putFloat(byte[], int, float) - Static method in class co.cask.common.Bytes
Put a float value out to the specified byte array position.
putInt(byte[], int, int) - Static method in class co.cask.common.Bytes
Put an int value out to the specified byte array position.
putLong(byte[], int, long) - Static method in class co.cask.common.Bytes
Put a long value out to the specified byte array position.
putShort(byte[], int, short) - Static method in class co.cask.common.Bytes
Put a short value out to the specified byte array position.

R

resolve(String, InetAddress) - Static method in class co.cask.common.Networks
Resolves the given hostname into InetAddress.

S

SIZEOF_BOOLEAN - Static variable in class co.cask.common.Bytes
Size of boolean in bytes.
SIZEOF_BYTE - Static variable in class co.cask.common.Bytes
Size of byte in bytes.
SIZEOF_CHAR - Static variable in class co.cask.common.Bytes
Size of char in bytes.
SIZEOF_DOUBLE - Static variable in class co.cask.common.Bytes
Size of double in bytes.
SIZEOF_FLOAT - Static variable in class co.cask.common.Bytes
Size of float in bytes.
SIZEOF_INT - Static variable in class co.cask.common.Bytes
Size of int in bytes.
SIZEOF_LONG - Static variable in class co.cask.common.Bytes
Size of long in bytes.
SIZEOF_SHORT - Static variable in class co.cask.common.Bytes
Size of short in bytes.
split(byte[], byte[], int) - Static method in class co.cask.common.Bytes
Split passed range.
split(byte[], byte[], boolean, int) - Static method in class co.cask.common.Bytes
Split passed range.
start() - Method in class co.cask.common.runtime.DaemonMain
Invoked by jsvc to start the program.
startsWith(byte[], byte[]) - Static method in class co.cask.common.Bytes
Return true if the byte array on the right is a prefix of the byte array on the left.
stop() - Method in class co.cask.common.runtime.DaemonMain
Invoked by jsvc to stop the program.
stopKeyForPrefix(byte[]) - Static method in class co.cask.common.Bytes
Returns the given prefix, incremented by one, in the form that will be suitable for prefix matching.
string2long(String) - Static method in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
Convert a string to long.
StringUtils - Class in co.cask.common
Utility for strings.
StringUtils() - Constructor for class co.cask.common.StringUtils
 
StringUtils.TraditionalBinaryPrefix - Enum in co.cask.common
The traditional binary prefixes, kilo, mega, ..., exa, which can be represented by a 64-bit integer.
symbol - Variable in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
 

T

tail(byte[], int) - Static method in class co.cask.common.Bytes
Returns last length bytes from byte array.
toBigDecimal(byte[]) - Static method in class co.cask.common.Bytes
Converts a byte array to a BigDecimal.
toBigDecimal(byte[], int, int) - Static method in class co.cask.common.Bytes
Converts a byte array to a BigDecimal value.
toBinaryFromHex(byte) - Static method in class co.cask.common.Bytes
Takes a ASCII digit in the range A-F0-9 and returns the corresponding integer/ordinal value.
toBoolean(byte[]) - Static method in class co.cask.common.Bytes
toByteArrays(String[]) - Static method in class co.cask.common.Bytes
Returns an array of byte arrays made from passed array of Text.
toByteArrays(String) - Static method in class co.cask.common.Bytes
Returns an array of byte arrays where first and only entry is.
toByteArrays(byte[]) - Static method in class co.cask.common.Bytes
Returns an array of byte arrays where first and only entry is.
toBytes(ByteBuffer) - Static method in class co.cask.common.Bytes
Returns a new byte array, copied from the passed ByteBuffer.
toBytes(String) - Static method in class co.cask.common.Bytes
Converts a string to a UTF-8 byte array.
toBytes(boolean) - Static method in class co.cask.common.Bytes
Convert a boolean to a byte array.
toBytes(long) - Static method in class co.cask.common.Bytes
Convert a long value to a byte array using big-endian.
toBytes(float) - Static method in class co.cask.common.Bytes
 
toBytes(double) - Static method in class co.cask.common.Bytes
Serialize a double as the IEEE 754 double format output.
toBytes(int) - Static method in class co.cask.common.Bytes
Convert an int value to a byte array.
toBytes(short) - Static method in class co.cask.common.Bytes
Convert a short value to a byte array of Bytes.SIZEOF_SHORT bytes long.
toBytes(BigDecimal) - Static method in class co.cask.common.Bytes
Convert a BigDecimal value to a byte array.
toBytesBinary(String) - Static method in class co.cask.common.Bytes
 
toDouble(byte[]) - Static method in class co.cask.common.Bytes
Return double made from passed bytes.
toDouble(byte[], int) - Static method in class co.cask.common.Bytes
Return double made from passed bytes.
toFloat(byte[]) - Static method in class co.cask.common.Bytes
Presumes float encoded as IEEE 754 floating-point "single format".
toFloat(byte[], int) - Static method in class co.cask.common.Bytes
Presumes float encoded as IEEE 754 floating-point "single format".
toHexString(byte[]) - Static method in class co.cask.common.Bytes
Returns a string containing each byte, in order, as a two-digit unsigned hexadecimal number in lower case.
toInt(byte[]) - Static method in class co.cask.common.Bytes
Converts a byte array to an int value.
toInt(byte[], int) - Static method in class co.cask.common.Bytes
Converts a byte array to an int value.
toInt(byte[], int, int) - Static method in class co.cask.common.Bytes
Converts a byte array to an int value.
toLong(byte[]) - Static method in class co.cask.common.Bytes
Converts a byte array to a long value.
toLong(byte[], int) - Static method in class co.cask.common.Bytes
Converts a byte array to a long value.
toLong(byte[], int, int) - Static method in class co.cask.common.Bytes
Converts a byte array to a long value.
toShort(byte[]) - Static method in class co.cask.common.Bytes
Converts a byte array to a short value.
toShort(byte[], int) - Static method in class co.cask.common.Bytes
Converts a byte array to a short value.
toShort(byte[], int, int) - Static method in class co.cask.common.Bytes
Converts a byte array to a short value.
toString(byte[]) - Static method in class co.cask.common.Bytes
This method will convert utf8 encoded bytes into a string.
toString(byte[], String, byte[]) - Static method in class co.cask.common.Bytes
Joins two byte arrays together using a separator.
toString(byte[], int, int) - Static method in class co.cask.common.Bytes
This method will convert utf8 encoded bytes into a string.
toString(ByteBuffer) - Static method in class co.cask.common.Bytes
This method will convert the remaining bytes of a UTF8 encoded byte buffer into a string.
toString() - Method in class co.cask.common.ImmutablePair
Returns a string representation of ImmutablePair object.
toStringBinary(byte[]) - Static method in class co.cask.common.Bytes
Write a printable representation of a byte array.
toStringBinary(ByteBuffer) - Static method in class co.cask.common.Bytes
Converts the given byte buffer, from its array offset to its limit, to a string.
toStringBinary(byte[], int, int) - Static method in class co.cask.common.Bytes
Write a printable representation of a byte array.

U

UTF8_ENCODING - Static variable in class co.cask.common.Bytes
When we encode strings, we always specify UTF8 encoding.

V

value - Variable in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
 
valueOf(String) - Static method in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
Returns the enum constant of this type with the specified name.
valueOf(char) - Static method in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
 
values() - Static method in enum co.cask.common.StringUtils.TraditionalBinaryPrefix
Returns an array containing the constants of this enum type, in the order they are declared.

W

writeStringFixedSize(DataOutput, String, int) - Static method in class co.cask.common.Bytes
Writes a string as a fixed-size field, padded with zeros.
A B C D E G H I M N O P R S T U V W 
Skip navigation links

Copyright © 2018 Cask Data, Inc. Licensed under the Apache License, Version 2.0.