congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
InetAddressType.decompose
Code IndexAdd Tabnine to your IDE (free)

How to use
decompose
method
in
org.apache.cassandra.db.marshal.InetAddressType

Best Java code snippets using org.apache.cassandra.db.marshal.InetAddressType.decompose (Showing top 5 results out of 315)

origin: jsevellec/cassandra-unit

public ByteBuffer fromString(String source) throws MarshalException
{
  // Return an empty ByteBuffer for an empty string.
  if (source.isEmpty())
    return ByteBufferUtil.EMPTY_BYTE_BUFFER;
  InetAddress address;
  try
  {
    address = InetAddress.getByName(source);
  }
  catch (Exception e)
  {
    throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e);
  }
  return decompose(address);
}
origin: com.netflix.sstableadaptor/sstable-adaptor-cassandra

public ByteBuffer fromString(String source) throws MarshalException
{
  // Return an empty ByteBuffer for an empty string.
  if (source.isEmpty())
    return ByteBufferUtil.EMPTY_BYTE_BUFFER;
  InetAddress address;
  try
  {
    address = InetAddress.getByName(source);
  }
  catch (Exception e)
  {
    throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e);
  }
  return decompose(address);
}
origin: com.strapdata.cassandra/cassandra-all

public ByteBuffer fromString(String source) throws MarshalException
{
  // Return an empty ByteBuffer for an empty string.
  if (source.isEmpty())
    return ByteBufferUtil.EMPTY_BYTE_BUFFER;
  InetAddress address;
  try
  {
    address = InetAddress.getByName(source);
  }
  catch (Exception e)
  {
    throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e);
  }
  return decompose(address);
}
origin: org.apache.cassandra/cassandra-all

public ByteBuffer fromString(String source) throws MarshalException
{
  // Return an empty ByteBuffer for an empty string.
  if (source.isEmpty())
    return ByteBufferUtil.EMPTY_BYTE_BUFFER;
  InetAddress address;
  try
  {
    address = InetAddress.getByName(source);
  }
  catch (Exception e)
  {
    throw new MarshalException(String.format("Unable to make inet address from '%s'", source), e);
  }
  return decompose(address);
}
origin: com.facebook.presto.cassandra/cassandra-server

public ByteBuffer fromString(String source) throws MarshalException
{
  // Return an empty ByteBuffer for an empty string.
  if (source.isEmpty())
    return ByteBufferUtil.EMPTY_BYTE_BUFFER;
  InetAddress address;
  try
  {
    address = InetAddress.getByName(source);
  }
  catch (Exception e)
  {
    throw new MarshalException(String.format("unable to make inetaddress from '%s'", source), e);
  }
  return decompose(address);
}
org.apache.cassandra.db.marshalInetAddressTypedecompose

Popular methods of InetAddressType

  • compose
  • fromString
  • getSerializer

Popular in Java

  • Finding current android device location
  • getContentResolver (Context)
  • findViewById (Activity)
  • putExtra (Intent)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
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