Package org.apache.parquet.schema
Class PrimitiveStringifier
- java.lang.Object
-
- org.apache.parquet.schema.PrimitiveStringifier
-
public abstract class PrimitiveStringifier extends Object
Class that provides string representations for the primitive values. These string values are to be used for logging/debugging purposes. The methodstringifyis overloaded for each primitive types. The overloaded methods not implemented for the related types throwOperationNotSupportedException.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringstringify(boolean value)Stringstringify(double value)Stringstringify(float value)Stringstringify(int value)Stringstringify(long value)Stringstringify(Binary value)StringtoString()
-
-
-
Method Detail
-
stringify
public String stringify(boolean value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
stringify
public String stringify(int value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
stringify
public String stringify(long value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
stringify
public String stringify(float value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
stringify
public String stringify(double value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
stringify
public String stringify(Binary value)
- Parameters:
value- the value to be stringified- Returns:
- the string representation for
value - Throws:
UnsupportedOperationException- if value type is not supported by this stringifier
-
-