com.netflix.astyanax.util
Class JsonRowsWriter
java.lang.Object
com.netflix.astyanax.util.JsonRowsWriter
- All Implemented Interfaces:
- RowsWriter
public class JsonRowsWriter
- extends java.lang.Object
- implements RowsWriter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JsonRowsWriter
public JsonRowsWriter(java.io.PrintWriter out,
SerializerPackage serializers)
throws com.netflix.astyanax.connectionpool.exceptions.ConnectionException
- Throws:
com.netflix.astyanax.connectionpool.exceptions.ConnectionException
setRowsName
public JsonRowsWriter setRowsName(java.lang.String fieldName)
setNamesName
public JsonRowsWriter setNamesName(java.lang.String fieldName)
setCountName
public JsonRowsWriter setCountName(java.lang.String fieldName)
setRowKeyName
public JsonRowsWriter setRowKeyName(java.lang.String fieldName)
setExtra
public JsonRowsWriter setExtra(java.lang.String extra)
setRowsAsArray
public JsonRowsWriter setRowsAsArray(boolean flag)
setIgnoreUndefinedColumns
public JsonRowsWriter setIgnoreUndefinedColumns(boolean flag)
setErrorValueText
@Deprecated
public JsonRowsWriter setErrorValueText(java.lang.String text)
- Deprecated.
setDynamicColumnNames
public JsonRowsWriter setDynamicColumnNames(boolean flag)
setFixedColumnNames
public JsonRowsWriter setFixedColumnNames(java.lang.String... columns)
setIgnoreColumnNames
public JsonRowsWriter setIgnoreColumnNames(java.lang.String... columns)
setExceptionCallback
@Deprecated
public JsonRowsWriter setExceptionCallback(com.netflix.astyanax.ExceptionCallback exceptionCallback)
- Deprecated.
setColumnsAsRows
public JsonRowsWriter setColumnsAsRows(boolean columnsAsRows)
addExtra
public JsonRowsWriter addExtra(java.lang.String name,
java.lang.String value)
setMaxLength
public JsonRowsWriter setMaxLength(int maxStringLength)
write
public void write(Rows<?,?> rows)
throws java.lang.Exception
- Specified by:
write
in interface RowsWriter
- Throws:
java.lang.Exception